{"id":"CVE-2020-26208","aliases":["DEBIAN-CVE-2020-26208","EUVD-2020-18833","GHSA-7pr6-xq4f-qhgc","UBUNTU-CVE-2020-26208","USN-6098-1"],"status":"published","title":"Heap-buffer-overflow in jhead","description":"JHEAD is a simple command line tool for displaying and some manipulation of EXIF header data embedded in Jpeg images from digital cameras. In affected versions there is a heap-buffer-overflow on jhead-3.04/jpgfile.c:285 ReadJpegSections. Crafted jpeg images can be provided to the user resulting in a program crash or potentially incorrect exif information retrieval. Users are advised to upgrade. There is no known workaround for this issue.","severity":{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.0089,"percentile":0.59796,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-787"],"published":"2022-02-02T11:51:22Z","modified":"2026-10-26T12:02:40Z","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~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"jhead","fixed_in":["1:3.00-4+deb9u1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"jhead","fixed_in":["1:3.00-8~ubuntu0.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"jhead","fixed_in":["1:3.04-1ubuntu0.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":"Ubuntu:Pro:14.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.97-1+deb8u2ubuntu0.1~esm1"}]}],"versions":["1:2.97-1","1:2.97-1+deb8u1build0.14.04.1","1:2.97-1+deb8u2build0.14.04.1~esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-4+deb9u1ubuntu0.1~esm1"}]}],"versions":["1:3.00-1","1:3.00-2","1:3.00-3","1:3.00-4+deb9u1build0.16.04.1"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-8~ubuntu0.1"}]}],"versions":["1:3.00-4","1:3.00-5","1:3.00-6","1:3.00-8~build0.18.04.1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.04-1ubuntu0.1"}]}],"versions":["1:3.03-3","1:3.04-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:2.97-1+deb8u2ubuntu0.1~esm1"}]}],"versions":["1:2.97-1","1:2.97-1+deb8u1build0.14.04.1","1:2.97-1+deb8u2build0.14.04.1~esm1"],"bundled":8},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-4+deb9u1ubuntu0.1~esm1"}]}],"versions":["1:3.00-1","1:3.00-2","1:3.00-3","1:3.00-4+deb9u1build0.16.04.1"],"bundled":8},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.00-8~ubuntu0.1"}]}],"versions":["1:3.00-4","1:3.00-5","1:3.00-6","1:3.00-8~build0.18.04.1"],"bundled":8},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"jhead","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1:3.04-1ubuntu0.1"}]}],"versions":["1:3.03-3","1:3.04-1"],"bundled":8}],"products":[{"vendor":"jhead_project","product":"jhead"}],"references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/jhead/+bug/1900821","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://github.com/Matthias-Wandel/jhead/issues/7","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://github.com/F-ZhaoYang/jhead/commit/5186ddcf9e35a7aa0ff0539489a930434a1325f4","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/F-ZhaoYang/jhead/security/advisories/GHSA-7pr6-xq4f-qhgc","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-26208","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-26208","tags":["report"]},{"url":"https://github.com/Matthias-Wandel/jhead/commit/5186ddcf9e35a7aa0ff0539489a930434a1325f4","tags":["report"]},{"url":"https://sources.debian.org/src/jhead/1%3A3.04-6/debian/patches/allocate-extra.patch/","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-6098-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-26208","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-19035","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-1010301","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2019-1010302","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-6624","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2020-6625","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-28276","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-28278","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2020-26208","title":"Heap-buffer-overflow in jhead","description":"JHEAD is a simple command line tool for displaying and some manipulation of EXIF header data embedded in Jpeg images from digital cameras. In affected versions there is a heap-buffer-overflow on jhead-3.04/jpgfile.c:285 ReadJpegSections. Crafted jpeg images can be provided to the user resulting in a program crash or potentially incorrect exif information retrieval. Users are advised to upgrade. There is no known workaround for this issue.","status":"published","published":"2022-02-02T11:51:22Z","modified":"2025-05-05T17:07:29.955Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:35:46.129376Z"}],"euvd":[{"id":"EUVD-2020-18833","description":"JHEAD is a simple command line tool for displaying and some manipulation of EXIF header data embedded in Jpeg images from digital cameras. In affected versions there is a heap-buffer-overflow on jhead-3.04/jpgfile.c:285 ReadJpegSections. Crafted jpeg images can be provided to the user resulting in a program crash or potentially incorrect exif information retrieval. Users are advised to upgrade. There is no known workaround for this issue.","status":"published","published":"2022-02-02T11:51:22Z","modified":"2025-05-05T17:07:29Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T20:32:55.636374Z"}],"nvd":[{"id":"CVE-2020-26208","description":"JHEAD is a simple command line tool for displaying and some manipulation of EXIF header data embedded in Jpeg images from digital cameras. In affected versions there is a heap-buffer-overflow on jhead-3.04/jpgfile.c:285 ReadJpegSections. Crafted jpeg images can be provided to the user resulting in a program crash or potentially incorrect exif information retrieval. Users are advised to upgrade. There is no known workaround for this issue.","status":"published","published":"2022-02-02T12:15:07.783Z","modified":"2026-06-17T03:07:49.58Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:06:46.951463Z"}],"osv":[{"id":"CVE-2020-26208","description":"JHEAD is a simple command line tool for displaying and some manipulation of EXIF header data embedded in Jpeg images from digital cameras. In affected versions there is a heap-buffer-overflow on jhead-3.04/jpgfile.c:285 ReadJpegSections. Crafted jpeg images can be provided to the user resulting in a program crash or potentially incorrect exif information retrieval. Users are advised to upgrade. There is no known workaround for this issue.","status":"published","published":"2022-02-02T12:15:07.783Z","modified":"2026-10-20T13:17:06.638966981Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:15.879068Z"},{"id":"DEBIAN-CVE-2020-26208","description":"JHEAD is a simple command line tool for displaying and some manipulation of EXIF header data embedded in Jpeg images from digital cameras. In affected versions there is a heap-buffer-overflow on jhead-3.04/jpgfile.c:285 ReadJpegSections. Crafted jpeg images can be provided to the user resulting in a program crash or potentially incorrect exif information retrieval. Users are advised to upgrade. There is no known workaround for this issue.","status":"published","published":"2022-02-02T12:15:07.783Z","modified":"2026-10-26T12:02:40.849970819Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:33.729655Z"},{"id":"UBUNTU-CVE-2020-26208","description":"JHEAD is a simple command line tool for displaying and some manipulation of EXIF header data embedded in Jpeg images from digital cameras. In affected versions there is a heap-buffer-overflow on jhead-3.04/jpgfile.c:285 ReadJpegSections. Crafted jpeg images can be provided to the user resulting in a program crash or potentially incorrect exif information retrieval. Users are advised to upgrade. There is no known workaround for this issue.","status":"published","published":"2022-02-02T12:15:00Z","modified":"2026-02-04T03:40:43.610456Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H","level":"medium"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:54:23.905183Z"},{"id":"USN-6098-1","title":"Jhead vulnerabilities","description":"It was discovered that Jhead did not properly handle certain crafted images\nwhile processing the JFIF markers. An attacker could cause Jhead to crash. This\nissue only affected Ubuntu 14.04 LTS, Ubuntu 16.04 LTS, and Ubuntu 18.04 LTS.\n(CVE-2019-19035)\n\nIt was discovered that Jhead did not properly handle certain crafted images\nwhile processing longitude tags. An attacker could cause Jhead to crash. This\nissue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2019-1010301)\n\nIt was discovered that Jhead did not properly handle certain crafted images\nwhile processing IPTC data. An attacker could cause Jhead to crash. This\nissue only affected Ubuntu 16.04 LTS and Ubuntu 18.04 LTS. (CVE-2019-1010302)\n\nBinbin Li discovered that Jhead did not properly handle certain crafted images\nwhile processing the DQT data. An attacker could cause Jhead to crash.\n(CVE-2020-6624)\n\nBinbin Li discovered that Jhead did not properly handle certain crafted images\nwhile processing longitude data. An attacker could cause Jhead to crash.\n(CVE-2020-6625)\n\nFeng Zhao Yang discovered that Jhead did not properly handle certain crafted\nimages while reading JPEG sections. An attacker could cause Jhead to crash.\n(CVE-2020-26208)\n\nIt was discovered that Jhead did not properly handle certain crafted images\nwhile processing Canon images. An attacker could cause Jhead to crash.\n(CVE-2021-28276)\n\nIt was discovered that Jhead did not properly handle certain crafted images\nwhen removing a certain type of sections. An attacker could cause Jhead to\ncrash. (CVE-2021-28278)\n","status":"published","published":"2023-05-23T14:23:32Z","modified":"2026-06-29T13:50:52.211537126Z","updated_at":"2026-11-02T16:58:16.738762Z"}]}}
