CVE-2021-3496
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when...
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.
- Record
CVE-2021-3496- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-119, CWE-787
- Updated
- 2026-11-02
CVE List No score
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.
- Record
CVE-2021-3496- Weakness
- CWE-119
- Updated
- 2026-11-02
EUVDEUVD-2021-26817 No score
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.
- Record
EUVD-2021-26817- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-rvxv-5pj2-85pq
7.8
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when...
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.
- Record
GHSA-rvxv-5pj2-85pq- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
7.8
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.
- Record
CVE-2021-3496- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-3496
7.8
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.
- Record
DEBIAN-CVE-2021-3496- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 8 moreShow less
OSVUBUNTU-CVE-2021-3496
7.8
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.
- Record
UBUNTU-CVE-2021-3496- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2021-0328 No score
Updated jhead packages fix security vulnerabilities
Updated jhead package fixes security vulnerabilities:
jhead through 3.04 has a heap-based buffer over-read in process_DQT in jpgqguess.c (CVE-2020-6624).
jhead through 3.04 has a heap-based buffer over-read in Get32s when called from ProcessGpsInfo in gpsinfo.c (CVE-2020-6625).
A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file (CVE-2021-3496).
- Record
MGASA-2021-0328- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0594-1 No score
Security update for jhead
This update for jhead fixes the following issues:
- CVE-2021-3496: Fixed heap-based buffer overflow in Get16u() in exif.c (bsc#1184756)
- Record
openSUSE-SU-2021:0594-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0620-1 No score
Security update for jhead
This update for jhead fixes the following issues:
- CVE-2021-3496: Fixed heap-based buffer overflow in Get16u() in exif.c (bsc#1184756)
This update was imported from the openSUSE:Leap:15.2:Update update project.
- Record
openSUSE-SU-2021:0620-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0743-1 No score
Security update for jhead
This update for jhead fixes the following issues:
jhead was updated to 3.06.0.1
- lot of fuzztest fixes
- Apply a whole bunch of patches from Debian.
- Spell check and fuzz test stuff from Debian, nothing useful to human users.
- Add option to set exif date from date from another file.
- Bug fixes relating to fuzz testing.
- Fix bug where thumbnail replacement DID NOT WORK.
- Fix bug when no orientation tag is present
- Fix bug of not clearing exif information when processing images with an without exif data in one invocation.
- Remove some unnecessary warnings with some types of GPS data
- Remove multiple copies of the same type of section when deleting section types
- Record
openSUSE-SU-2021:0743-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2021:0752-1 No score
Security update for jhead
This update for jhead fixes the following issues:
jhead was updated to 3.06.0.1
- lot of fuzztest fixes
- Apply a whole bunch of patches from Debian.
- Spell check and fuzz test stuff from Debian, nothing useful to human users.
- Add option to set exif date from date from another file.
- Bug fixes relating to fuzz testing.
- Fix bug where thumbnail replacement DID NOT WORK.
- Fix bug when no orientation tag is present
- Fix bug of not clearing exif information when processing images with an without exif data in one invocation.
- Remove some unnecessary warnings with some types of GPS data
- Remove multiple copies of the same type of section when deleting section types
This update was imported from the openSUSE:Leap:15.2:Update update project.
- Record
openSUSE-SU-2021:0752-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10880-1 No score
jhead-3.06.0.1-1.3 on GA media
These are all security issues fixed in the jhead-3.06.0.1-1.3 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10880-1- Updated
- 2026-11-02
OSVUSN-6110-1 No score
Jhead vulnerabilities
It was discovered that Jhead did not properly handle certain crafted Canon images when processing them. An attacker could possibly use this issue to crash Jhead, resulting in a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2021-3496)
It was discovered that Jhead did not properly handle certain crafted images when printing Canon-specific information. An attacker could possibly use this issue to crash Jhead, resulting in a denial of service. This issue only affected Ubuntu 20.04. (CVE-2021-28275)
It was discovered that Jhead did not properly handle certain crafted images when removing unknown sections. An attacker could possibly use this issue to crash Jhead, resulting in a denial of service. This issue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2021-28277)
Kyle Brown discovered that Jhead did not properly handle certain crafted images when editing their comments. An attacker could possibly use this to crash Jhead, resulting in a denial of service. (LP: #2020068)
- Record
USN-6110-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
jheadDebian:12 |
before 1:3.04-6 | 1:3.04-6 |
jheadDebian:13 |
before 1:3.04-6 | 1:3.04-6 |
jheadDebian:14 |
before 1:3.04-6 | 1:3.04-6 |
jheadMageia:7 From an advisory covering 3 CVEs |
before 3.06.0.1-1.mga7 | 3.06.0.1-1.mga7 |
jheadMageia:8 From an advisory covering 3 CVEs |
before 3.06.0.1-1.mga8 | 3.06.0.1-1.mga8 |
jheadUbuntu:Pro:14.04:LTS |
before 1:2.97-1+deb8u2ubuntu0.1~esm3, plus listed versions 1:2.97-11:2.97-1+deb8u1build0.14.04.11:2.97-1+deb8u2build0.14.04.1~esm11:2.97-1+deb8u2ubuntu0.1~esm11:2.97-1+deb8u2ubuntu0.1~esm2 |
1:2.97-1+deb8u2ubuntu0.1~esm3 |
jheadUbuntu:Pro:16.04:LTS |
before 1:3.00-4+deb9u1ubuntu0.1~esm3, plus listed versions 1:3.00-11:3.00-21:3.00-31:3.00-4+deb9u1build0.16.04.11:3.00-4+deb9u1ubuntu0.1~esm11:3.00-4+deb9u1ubuntu0.1~esm2 |
1:3.00-4+deb9u1ubuntu0.1~esm3 |
jheadUbuntu:Pro:18.04:LTS |
before 1:3.00-8~ubuntu0.2+esm1, plus listed versions 1:3.00-41:3.00-51:3.00-61:3.00-8~build0.18.04.11:3.00-8~ubuntu0.11:3.00-8~ubuntu0.2 |
1:3.00-8~ubuntu0.2+esm1 |
jheadUbuntu:Pro:20.04:LTS |
before 1:3.04-1ubuntu0.2+esm1, plus listed versions 1:3.03-31:3.04-11:3.04-1ubuntu0.11:3.04-1ubuntu0.2 |
1:3.04-1ubuntu0.2+esm1 |
jheadUbuntu:Pro:14.04:LTS From an advisory covering 3 CVEs |
before 1:2.97-1+deb8u2ubuntu0.1~esm3, plus listed versions 1:2.97-11:2.97-1+deb8u1build0.14.04.11:2.97-1+deb8u2build0.14.04.1~esm11:2.97-1+deb8u2ubuntu0.1~esm11:2.97-1+deb8u2ubuntu0.1~esm2 |
1:2.97-1+deb8u2ubuntu0.1~esm3 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
jheadUbuntu:Pro:16.04:LTS From an advisory covering 3 CVEs |
before 1:3.00-4+deb9u1ubuntu0.1~esm3, plus listed versions 1:3.00-11:3.00-21:3.00-31:3.00-4+deb9u1build0.16.04.11:3.00-4+deb9u1ubuntu0.1~esm11:3.00-4+deb9u1ubuntu0.1~esm2 |
1:3.00-4+deb9u1ubuntu0.1~esm3 |
jheadUbuntu:Pro:18.04:LTS From an advisory covering 3 CVEs |
before 1:3.00-8~ubuntu0.2+esm1, plus listed versions 1:3.00-41:3.00-51:3.00-61:3.00-8~build0.18.04.11:3.00-8~ubuntu0.11:3.00-8~ubuntu0.2 |
1:3.00-8~ubuntu0.2+esm1 |
jheadUbuntu:Pro:20.04:LTS From an advisory covering 3 CVEs |
before 1:3.04-1ubuntu0.2+esm1, plus listed versions 1:3.03-31:3.04-11:3.04-1ubuntu0.11:3.04-1ubuntu0.2 |
1:3.04-1ubuntu0.2+esm1 |
jheadUbuntu:Pro:22.04:LTS From an advisory covering 3 CVEs |
before 1:3.06.0.1-2ubuntu0.22.04.1+esm1, plus listed versions 1:3.04-61:3.06.0.1-21:3.06.0.1-2ubuntu0.22.04.1 |
1:3.06.0.1-2ubuntu0.22.04.1+esm1 |
jheadopenSUSE:Leap 15.2 |
before 3.00-lp152.7.3.1 | 3.00-lp152.7.3.1 |
jheadSUSE:Package Hub 15 SP2 |
before 3.00-bp152.4.3.1 | 3.00-bp152.4.3.1 |
jheadopenSUSE:Leap 15.2 From an advisory covering 9 CVEs |
before 3.06.0.1-lp152.7.6.1 | 3.06.0.1-lp152.7.6.1 |
jheadSUSE:Package Hub 15 SP2 From an advisory covering 9 CVEs |
before 3.06.0.1-bp152.4.6.1 | 3.06.0.1-bp152.4.6.1 |
jheadopenSUSE:Tumbleweed From an advisory covering 5 CVEs |
before 3.06.0.1-1.3 | 3.06.0.1-1.3 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-3496 is a high vulnerability (CVSS 7.8) in Jhead Project Jhead, published April 22, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.06%, the 64th percentile. Fixed in jhead 1:3.04-6.
References
bugzilla.redhat.com/show_bug.cgi?id=1949245
github.com/Matthias-Wandel/jhead/issues/33
security.gentoo.org/glsa/202210-17
nvd.nist.gov/vuln/detail/CVE-2021-3496
github.com/advisories/GHSA-rvxv-5pj2-85pq
security-tracker.debian.org/tracker/CVE-2021-3496
Show 26 moreShow less
advisories.mageia.org/MGASA-2021-0328.html
bugs.mageia.org/show_bug.cgi?id=29053
lists.opensuse.org/archives/list/[email protected]/thread/SCW5XBSBEM6OUDLCSLS5UW7BSRNESS4J
lists.opensuse.org/archives/list/[email protected]/thread/JPTEPBJVJFSKKHSTZER2JVIMRP7MGN2C
ubuntu.com/security/CVE-2021-3496
ubuntu.com/security/notices/USN-6110-1
cve.org/CVERecord?id=CVE-2021-3496
ubuntu.com/security/CVE-2021-28275
ubuntu.com/security/CVE-2021-28277
launchpad.net/bugs/2020068
bugzilla.suse.com/1184756
suse.com/security/cve/CVE-2021-3496
lists.opensuse.org/archives/list/[email protected]/thread/ZXG5OVP6VGZDHK4MFFT7R3RG7DSWAZ4D
bugzilla.suse.com/1144316
bugzilla.suse.com/1144354
bugzilla.suse.com/1160544
bugzilla.suse.com/1160547
suse.com/security/cve/CVE-2016-3822
suse.com/security/cve/CVE-2018-16554
suse.com/security/cve/CVE-2018-17088
suse.com/security/cve/CVE-2018-6612
suse.com/security/cve/CVE-2019-1010301
suse.com/security/cve/CVE-2019-1010302
suse.com/security/cve/CVE-2020-6624
suse.com/security/cve/CVE-2020-6625
lists.opensuse.org/archives/list/[email protected]/thread/3GBTHCPCHWJ3JG5IDEDAYSW5LVUEVXYH