{"id":"CVE-2021-3496","aliases":["DEBIAN-CVE-2021-3496","EUVD-2021-26817","GHSA-rvxv-5pj2-85pq","MGASA-2021-0328","UBUNTU-CVE-2021-3496","USN-6110-1","openSUSE-SU-2021:0594-1","openSUSE-SU-2021:0620-1","openSUSE-SU-2021:0743-1","openSUSE-SU-2021:0752-1","openSUSE-SU-2024:10880-1"],"status":"published","title":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when...","description":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.","severity":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01065,"percentile":0.64927,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-119","CWE-787"],"published":"2021-04-22T00:00:00Z","modified":"2026-10-23T18:04:00Z","fixes":[{"ecosystem":"Debian:12","package":"jhead","fixed_in":["1:3.04-6"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"jhead","fixed_in":["1:3.04-6"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"jhead","fixed_in":["1:3.04-6"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"jhead","fixed_in":["1:2.97-1+deb8u2ubuntu0.1~esm3"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"jhead","fixed_in":["1:3.00-4+deb9u1ubuntu0.1~esm3"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"jhead","fixed_in":["1:3.00-8~ubuntu0.2+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"jhead","fixed_in":["1:3.04-1ubuntu0.2+esm1"],"sources":["osv"]},{"ecosystem":"openSUSE:Leap 15.2","package":"jhead","fixed_in":["3.00-lp152.7.3.1"],"sources":["osv"]},{"ecosystem":"SUSE:Package Hub 15 SP2","package":"jhead","fixed_in":["3.00-bp152.4.3.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.04-6"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.04-6"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.04-6"}]}]},{"source":"osv","ecosystem":"Mageia:7","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.06.0.1-1.mga7"}]}],"bundled":3},{"source":"osv","ecosystem":"Mageia:8","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.06.0.1-1.mga8"}]}],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.97-1+deb8u2ubuntu0.1~esm3"}]}],"versions":["1:2.97-1","1:2.97-1+deb8u1build0.14.04.1","1:2.97-1+deb8u2build0.14.04.1~esm1","1:2.97-1+deb8u2ubuntu0.1~esm1","1:2.97-1+deb8u2ubuntu0.1~esm2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-4+deb9u1ubuntu0.1~esm3"}]}],"versions":["1:3.00-1","1:3.00-2","1:3.00-3","1:3.00-4+deb9u1build0.16.04.1","1:3.00-4+deb9u1ubuntu0.1~esm1","1:3.00-4+deb9u1ubuntu0.1~esm2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-8~ubuntu0.2+esm1"}]}],"versions":["1:3.00-4","1:3.00-5","1:3.00-6","1:3.00-8~build0.18.04.1","1:3.00-8~ubuntu0.1","1:3.00-8~ubuntu0.2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.04-1ubuntu0.2+esm1"}]}],"versions":["1:3.03-3","1:3.04-1","1:3.04-1ubuntu0.1","1:3.04-1ubuntu0.2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.97-1+deb8u2ubuntu0.1~esm3"}]}],"versions":["1:2.97-1","1:2.97-1+deb8u1build0.14.04.1","1:2.97-1+deb8u2build0.14.04.1~esm1","1:2.97-1+deb8u2ubuntu0.1~esm1","1:2.97-1+deb8u2ubuntu0.1~esm2"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-4+deb9u1ubuntu0.1~esm3"}]}],"versions":["1:3.00-1","1:3.00-2","1:3.00-3","1:3.00-4+deb9u1build0.16.04.1","1:3.00-4+deb9u1ubuntu0.1~esm1","1:3.00-4+deb9u1ubuntu0.1~esm2"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-8~ubuntu0.2+esm1"}]}],"versions":["1:3.00-4","1:3.00-5","1:3.00-6","1:3.00-8~build0.18.04.1","1:3.00-8~ubuntu0.1","1:3.00-8~ubuntu0.2"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.04-1ubuntu0.2+esm1"}]}],"versions":["1:3.03-3","1:3.04-1","1:3.04-1ubuntu0.1","1:3.04-1ubuntu0.2"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.06.0.1-2ubuntu0.22.04.1+esm1"}]}],"versions":["1:3.04-6","1:3.06.0.1-2","1:3.06.0.1-2ubuntu0.22.04.1"],"bundled":3},{"source":"osv","ecosystem":"openSUSE:Leap 15.2","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.00-lp152.7.3.1"}]}]},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP2","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.00-bp152.4.3.1"}]}]},{"source":"osv","ecosystem":"openSUSE:Leap 15.2","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.06.0.1-lp152.7.6.1"}]}],"bundled":9},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP2","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.06.0.1-bp152.4.6.1"}]}],"bundled":9},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.06.0.1-1.3"}]}],"bundled":5}],"products":[{"vendor":"jhead_project","product":"jhead"},{"vendor":"matthias-wandel","product":"jhead"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1949245","tags":["x_transferred","Issue Tracking","Third Party Advisory","report"]},{"url":"https://github.com/Matthias-Wandel/jhead/issues/33","tags":["x_transferred","Exploit","Patch","Third Party Advisory","fix","report"]},{"url":"https://security.gentoo.org/glsa/202210-17","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3496"},{"url":"https://github.com/advisories/GHSA-rvxv-5pj2-85pq"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3496","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0328.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29053","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/SCW5XBSBEM6OUDLCSLS5UW7BSRNESS4J/","tags":["web","advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/JPTEPBJVJFSKKHSTZER2JVIMRP7MGN2C/","tags":["web","advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3496","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-6110-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3496","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-28275","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-28277","tags":["report"]},{"url":"https://launchpad.net/bugs/2020068","tags":["report"]},{"url":"https://bugzilla.suse.com/1184756","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2021-3496","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/ZXG5OVP6VGZDHK4MFFT7R3RG7DSWAZ4D/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1144316","tags":["report"]},{"url":"https://bugzilla.suse.com/1144354","tags":["report"]},{"url":"https://bugzilla.suse.com/1160544","tags":["report"]},{"url":"https://bugzilla.suse.com/1160547","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2016-3822","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-16554","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-17088","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2018-6612","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-1010301","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2019-1010302","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-6624","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2020-6625","tags":["web"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/3GBTHCPCHWJ3JG5IDEDAYSW5LVUEVXYH/","tags":["advisory"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-3496","description":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.","status":"published","published":"2021-04-22T00:00:00Z","modified":"2024-08-03T16:53:17.982Z","cwes":["CWE-119"],"updated_at":"2026-11-02T14:33:03.671751Z"}],"euvd":[{"id":"EUVD-2021-26817","description":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.","status":"published","published":"2021-04-22T00:00:00Z","modified":"2024-08-03T16:53:17Z","updated_at":"2026-11-03T03:25:13.052236Z"}],"ghsa":[{"id":"GHSA-rvxv-5pj2-85pq","title":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when...","description":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.","status":"published","published":"2022-05-24T17:48:09Z","modified":"2023-01-30T05:01:30Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:46:25.569206Z"}],"nvd":[{"id":"CVE-2021-3496","description":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.","status":"published","published":"2021-04-22T19:15:07.45Z","modified":"2026-06-17T04:05:12.537Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-119","CWE-787"],"updated_at":"2026-11-02T14:06:52.03307Z"}],"osv":[{"id":"CVE-2021-3496","description":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.","status":"published","published":"2021-04-22T19:15:07.45Z","modified":"2026-10-20T10:50:08.416207361Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:20.13324Z"},{"id":"DEBIAN-CVE-2021-3496","description":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.","status":"published","published":"2021-04-22T19:15:07.45Z","modified":"2026-10-23T18:04:00.153609128Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:35.233346Z"},{"id":"UBUNTU-CVE-2021-3496","description":"A heap-based buffer overflow was found in jhead in version 3.06 in Get16u() in exif.c when processing a crafted file.","status":"published","published":"2021-04-22T19:15:00Z","modified":"2026-02-04T03:13:45.490927Z","cvss":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:54:27.870979Z"},{"id":"MGASA-2021-0328","title":"Updated jhead packages fix security vulnerabilities","description":"Updated jhead package fixes security vulnerabilities:\n\njhead through 3.04 has a heap-based buffer over-read in process_DQT in\njpgqguess.c (CVE-2020-6624).\n\njhead through 3.04 has a heap-based buffer over-read in Get32s when called\nfrom ProcessGpsInfo in gpsinfo.c (CVE-2020-6625).\n\nA heap-based buffer overflow was found in jhead in version 3.06 in Get16u()\nin exif.c when processing a crafted file (CVE-2021-3496).\n","status":"published","published":"2021-07-10T12:56:54Z","modified":"2026-04-16T04:40:42.593098059Z","updated_at":"2026-11-02T15:49:41.509337Z"},{"id":"openSUSE-SU-2021:0594-1","title":"Security update for jhead","description":"This update for jhead fixes the following issues:\n\n- CVE-2021-3496: Fixed heap-based buffer overflow in Get16u() in exif.c (bsc#1184756)\n","status":"published","published":"2021-04-22T18:05:18Z","modified":"2025-05-07T18:12:57.841026Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:0620-1","title":"Security update for jhead","description":"This update for jhead fixes the following issues:\n\n- CVE-2021-3496: Fixed heap-based buffer overflow in Get16u() in exif.c (bsc#1184756)\n\nThis update was imported from the openSUSE:Leap:15.2:Update update project.","status":"published","published":"2021-04-26T04:05:12Z","modified":"2026-02-04T02:33:24.705079Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:0743-1","title":"Security update for jhead","description":"This update for jhead fixes the following issues:\n\njhead was updated to 3.06.0.1\n\n* lot of fuzztest fixes\n* Apply a whole bunch of patches from Debian.\n* Spell check and fuzz test stuff from Debian, nothing useful to\n  human users.\n* Add option to set exif date from date from another file.\n* Bug fixes relating to fuzz testing.\n* Fix bug where thumbnail replacement DID NOT WORK.\n* Fix bug when no orientation tag is present\n* Fix bug of not clearing exif information when processing images\n  with an without exif data in one invocation.\n* Remove some unnecessary warnings with some types of GPS data\n* Remove multiple copies of the same type of section when deleting\n  section types\n","status":"published","published":"2021-05-16T14:04:45Z","modified":"2026-02-04T03:30:44.335378Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2021:0752-1","title":"Security update for jhead","description":"This update for jhead fixes the following issues:\n\njhead was updated to 3.06.0.1\n\n* lot of fuzztest fixes\n* Apply a whole bunch of patches from Debian.\n* Spell check and fuzz test stuff from Debian, nothing useful to\n  human users.\n* Add option to set exif date from date from another file.\n* Bug fixes relating to fuzz testing.\n* Fix bug where thumbnail replacement DID NOT WORK.\n* Fix bug when no orientation tag is present\n* Fix bug of not clearing exif information when processing images\n  with an without exif data in one invocation.\n* Remove some unnecessary warnings with some types of GPS data\n* Remove multiple copies of the same type of section when deleting\n  section types\n\nThis update was imported from the openSUSE:Leap:15.2:Update update project.","status":"published","published":"2021-05-19T16:05:20Z","modified":"2025-05-07T18:09:19.930154Z","updated_at":"2026-11-02T16:58:31.879684Z"},{"id":"openSUSE-SU-2024:10880-1","title":"jhead-3.06.0.1-1.3 on GA media","description":"These are all security issues fixed in the jhead-3.06.0.1-1.3 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2026-02-04T02:46:31.338596Z","updated_at":"2026-11-02T16:58:34.894275Z"},{"id":"USN-6110-1","title":"Jhead vulnerabilities","description":"It was discovered that Jhead did not properly handle certain crafted Canon\nimages when processing them. An attacker could possibly use this issue to\ncrash Jhead, resulting in a denial of service. This issue only affected\nUbuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS.\n(CVE-2021-3496)\n\nIt was discovered that Jhead did not properly handle certain crafted images\nwhen printing Canon-specific information. An attacker could possibly use this\nissue to crash Jhead, resulting in a denial of service. This issue only\naffected Ubuntu 20.04. (CVE-2021-28275)\n\nIt was discovered that Jhead did not properly handle certain crafted images\nwhen removing unknown sections. An attacker could possibly use this issue to\ncrash Jhead, resulting in a denial of service. This issue only affected\nUbuntu 14.04 LTS, Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04\nLTS. (CVE-2021-28277)\n\nKyle Brown discovered that Jhead did not properly handle certain crafted\nimages when editing their comments. An attacker could possibly use this to\ncrash Jhead, resulting in a denial of service. (LP: #2020068)\n","status":"published","published":"2023-05-29T09:11:19Z","modified":"2026-06-29T13:50:48.089659083Z","updated_at":"2026-11-02T16:58:16.738762Z"}]}}
