{"id":"CVE-2021-28277","aliases":["DEBIAN-CVE-2021-28277","EUVD-2021-14966","GHSA-95g4-8wpg-6c5r","UBUNTU-CVE-2021-28277","USN-6110-1"],"status":"published","title":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer...","description":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.","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-10","score":0.00867,"percentile":0.59026,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2022-03-23T00:00:00Z","modified":"2026-10-23T18:03:37Z","fixes":[{"ecosystem":"Debian:12","package":"jhead","fixed_in":["1:3.06.0.1-2"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"jhead","fixed_in":["1:3.06.0.1-2"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"jhead","fixed_in":["1:3.06.0.1-2"],"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"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.06.0.1-2"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.06.0.1-2"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.06.0.1-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"]},{"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}],"products":[{"vendor":"jhead_project","product":"jhead"}],"references":[{"url":"https://github.com/Matthias-Wandel/jhead/issues/16","tags":["x_transferred","Exploit","Issue Tracking","Third Party Advisory","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-28277"},{"url":"https://github.com/advisories/GHSA-95g4-8wpg-6c5r"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-28277","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-28277","tags":["report"]},{"url":"https://github.com/Matthias-Wandel/jhead/commit/b8d78e5ec982e86cdd70ebfc1ebbb2273c982eea","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-6110-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28277","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-3496","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-28275","tags":["report"]},{"url":"https://launchpad.net/bugs/2020068","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-28277","description":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.","status":"published","published":"2022-03-23T00:00:00Z","modified":"2024-08-03T21:40:14.198Z","updated_at":"2026-11-02T14:33:08.811269Z"}],"euvd":[{"id":"EUVD-2021-14966","description":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.","status":"published","published":"2022-03-23T00:00:00Z","modified":"2024-08-03T21:40:14Z","updated_at":"2026-11-03T03:24:47.350261Z"}],"ghsa":[{"id":"GHSA-95g4-8wpg-6c5r","title":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer...","description":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.","status":"published","published":"2022-03-24T00:00:15Z","modified":"2023-01-30T05:00:27Z","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:12.604648Z"}],"nvd":[{"id":"CVE-2021-28277","description":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.","status":"published","published":"2022-03-23T21:15:07.77Z","modified":"2026-06-17T03:46:06.97Z","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-787"],"updated_at":"2026-11-02T14:07:05.581807Z"}],"osv":[{"id":"CVE-2021-28277","description":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.","status":"published","published":"2022-03-23T21:15:07.77Z","modified":"2026-03-14T08:23:50.571936Z","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:19.129331Z"},{"id":"DEBIAN-CVE-2021-28277","description":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.","status":"published","published":"2022-03-23T21:15:07.77Z","modified":"2026-10-23T18:03:37.157956759Z","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:34.94143Z"},{"id":"UBUNTU-CVE-2021-28277","description":"A Heap-based Buffer Overflow vulnerabilty exists in jhead 3.04 and 3.05 is affected by: Buffer Overflow via the RemoveUnknownSections function in jpgfile.c.","status":"published","published":"2022-03-23T21:15:00Z","modified":"2026-02-04T02:53:39.552793Z","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:26.779273Z"},{"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"}]}}
