{"id":"CVE-2021-29464","aliases":["ALPINE-CVE-2021-29464","ALSA-2021:4173","AZL-7209","DEBIAN-CVE-2021-29464","EUVD-2021-16075","GHSA-jgm9-5fw5-pw9p","MGASA-2021-0240","OESA-2021-1183","RHSA-2021:4173","RLSA-2021:4173","UBUNTU-CVE-2021-29464","USN-4964-1"],"status":"published","title":"Heap buffer overflow in Exiv2::Jp2Image::encodeJp2Header","description":"Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.","severity":{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01499,"percentile":0.74441,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-122","CWE-787"],"published":"2021-04-30T00:00:00Z","modified":"2026-11-03T06:32:38Z","fixes":[{"ecosystem":"Alpine:v3.14","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"exiv2","fixed_in":["0.27.4-r0"],"sources":["osv"]},{"ecosystem":"Azure Linux:2","package":"exiv2","fixed_in":["0.27.5-1"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"exiv2","fixed_in":["0.27.5-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"exiv2","fixed_in":["0.27.5-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"exiv2","fixed_in":["0.27.5-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"exiv2","fixed_in":["0.27.2-8ubuntu2.4"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.14","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-r0"}]}]},{"source":"osv","ecosystem":"AlmaLinux:8","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"AlmaLinux:8","package":"exiv2-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"AlmaLinux:8","package":"exiv2-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"AlmaLinux:8","package":"exiv2-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Azure Linux:2","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.5-1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.5-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.5-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.5-1"}]}]},{"source":"osv","ecosystem":"Mageia:7","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.1-3.5.mga7"}]}],"bundled":9},{"source":"osv","ecosystem":"Mageia:8","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.3-1.1.mga8"}]}],"bundled":9},{"source":"osv","ecosystem":"openEuler:20.03-LTS-SP1","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.26-25.oe1"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"exiv2-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"exiv2-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"exiv2-libs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"exiv2-libs-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::crb","package":"exiv2-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::crb","package":"exiv2-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::crb","package":"exiv2-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::crb","package":"exiv2-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::crb","package":"exiv2-libs-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Rocky Linux:8","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.27.4-5.el8"}]}],"bundled":12},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.2-8ubuntu2.4"}]}],"versions":["0.25-4ubuntu2","0.25-4ubuntu3","0.27.2-8ubuntu2","0.27.2-8ubuntu2.2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.25-2.1ubuntu16.04.7+esm2"}]}],"versions":["0.25-1ubuntu1","0.25-2.1","0.25-2.1ubuntu16.04.1","0.25-2.1ubuntu16.04.2","0.25-2.1ubuntu16.04.3","0.25-2.1ubuntu16.04.4","0.25-2.1ubuntu16.04.5","0.25-2.1ubuntu16.04.6","0.25-2.1ubuntu16.04.7+esm1"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.25-3.1ubuntu0.18.04.9"}]}],"versions":["0.25-3.1","0.25-3.1ubuntu0.18.04.1","0.25-3.1ubuntu0.18.04.2","0.25-3.1ubuntu0.18.04.3","0.25-3.1ubuntu0.18.04.4","0.25-3.1ubuntu0.18.04.5","0.25-3.1ubuntu0.18.04.7"],"bundled":5},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"exiv2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.27.2-8ubuntu2.4"}]}],"versions":["0.25-4ubuntu2","0.25-4ubuntu3","0.27.2-8ubuntu2","0.27.2-8ubuntu2.2"],"bundled":5}],"products":[{"vendor":"exiv2","product":"exiv2"},{"vendor":"fedoraproject","product":"fedora"}],"references":[{"url":"https://github.com/Exiv2/exiv2/security/advisories/GHSA-jgm9-5fw5-pw9p","tags":["x_transferred","Third Party Advisory","advisory","report"]},{"url":"https://github.com/Exiv2/exiv2/commit/f9308839198aca5e68a65194f151a1de92398f54","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NDMZTVQAZSMLPTDVDYLBHAAF7I5QXVYQ/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K3HKXR6JOVKMBE4HY4FDXNVZGNCQG6T3/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://security.gentoo.org/glsa/202312-06","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-29464","tags":["advisory"]},{"url":"https://vulners.com/cve/CVE-2021-29457","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-29458","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-29463","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-29464","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-29470","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-29473","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-29623","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-31292","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-32617","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-3482","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-37618","tags":["report"]},{"url":"https://vulners.com/cve/CVE-2021-37619","tags":["report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29464","tags":["web","advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-29464","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0240.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29008","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-4941-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-4964-1","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/2XQT5F5IINTDYDAFGVGQZ7PMMLG7I5ZZ/","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/5I3RRZUGSBIUYZ5TIHLN55PKMAWCSJ5G/","tags":["web"]},{"url":"https://openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1183","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3482","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29457","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29458","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29470","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29473","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29463","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2021:4173","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.5_release_notes/","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1946314","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1952607","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1952612","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1953708","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1954065","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1961650","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1961691","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1978100","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1978105","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1989860","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1990330","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1992165","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1992174","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4173.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-3482","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3482","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-29457","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29457","tags":["advisory"]},{"url":"https://github.com/Exiv2/exiv2/security/advisories/GHSA-v74w-h496-cgqm","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-29458","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29458","tags":["advisory"]},{"url":"https://github.com/Exiv2/exiv2/security/advisories/GHSA-57jj-75fm-9rq5","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-29463","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29463","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-29464","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29464","tags":["advisory","report"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-29470","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29470","tags":["advisory"]},{"url":"https://github.com/Exiv2/exiv2/security/advisories/GHSA-8949-hhfh-j7rj","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-29473","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29473","tags":["advisory"]},{"url":"https://github.com/Exiv2/exiv2/security/advisories/GHSA-7569-phvm-vwc2","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-29623","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-29623","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-29623","tags":["advisory"]},{"url":"https://github.com/Exiv2/exiv2/security/advisories/GHSA-6253-qjwm-3q4v","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-31292","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31292","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31292","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-32617","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32617","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32617","tags":["advisory"]},{"url":"https://github.com/Exiv2/exiv2/security/advisories/GHSA-w8mv-g8qq-36mj","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-37618","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-37618","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37618","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-37619","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-37619","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-37619","tags":["advisory"]},{"url":"https://errata.rockylinux.org/RLSA-2021:4173","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-29464","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-29463","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-29473","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-29623","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-32617","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-29464","title":"Heap buffer overflow in Exiv2::Jp2Image::encodeJp2Header","description":"Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.","status":"published","published":"2021-04-30T00:00:00Z","modified":"2024-08-03T22:02:51.95Z","cvss":[{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"low","assessor":"cna"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T14:33:06.32268Z"}],"euvd":[{"id":"EUVD-2021-16075","description":"Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.","status":"published","published":"2021-04-30T00:00:00Z","modified":"2024-08-03T22:02:51Z","cvss":[{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-11-03T03:24:44.540278Z"}],"nvd":[{"id":"CVE-2021-29464","description":"Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.","status":"published","published":"2021-04-30T19:15:07.187Z","modified":"2026-06-17T03:47:41.7Z","cvss":[{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"low","assessor":"secondary"},{"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-122","CWE-787"],"updated_at":"2026-11-02T14:06:52.81233Z"}],"osv":[{"id":"ALPINE-CVE-2021-29464","description":"Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.","status":"published","published":"2021-04-30T19:15:07.187Z","modified":"2026-11-03T06:32:38.87090592Z","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-03T07:17:20.312441Z"},{"id":"AZL-7209","title":"CVE-2021-29464 affecting package exiv2 for versions less than 0.27.5-1","description":"Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.","status":"published","published":"2021-04-30T19:15:07Z","modified":"2026-04-21T04:36:41.389816Z","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:28:09.201912Z"},{"id":"CVE-2021-29464","description":"Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.","status":"published","published":"2021-04-30T19:15:07.187Z","modified":"2026-10-20T14:03:43.025916853Z","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-29464","description":"Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.","status":"published","published":"2021-04-30T19:15:07.187Z","modified":"2026-10-23T18:03:12.581058006Z","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":"OESA-2021-1183","title":"exiv2 security update","description":"Exiv2 is a Cross-platform C++ library and a command line utility to manage image metadata. It provides fast and easy read and write access to the Exif, IPTC and XMP metadata and the ICC Profile embedded within digital images in various formats.\r\n\r\nSecurity Fix(es):\r\n\r\nA flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.(CVE-2021-3482)\r\n\r\nExiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when _writing_ the metadata, which is a less frequently used Exiv2 operation than _reading_ the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.(CVE-2021-29457)\r\n\r\nExiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as insert. The bug is fixed in version v0.27.4.(CVE-2021-29458)\r\n\r\nExiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as insert. The bug is fixed in version v0.27.4.(CVE-2021-29470)\r\n\r\nExiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4. Please see our security policy for information about Exiv2 security.(CVE-2021-29473)\r\n\r\nExiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.(CVE-2021-29463)\r\n\r\nExiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.(CVE-2021-29464)","status":"published","published":"2021-05-15T11:04:25Z","modified":"2026-08-18T01:15:34.151362945Z","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:52:38.987987Z"},{"id":"RHSA-2021:4173","title":"Red Hat Security Advisory: exiv2 security, bug fix, and enhancement update","status":"published","published":"2024-09-16T05:43:10Z","modified":"2026-06-27T10:14:22Z","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:53:08.619234Z"},{"id":"RLSA-2021:4173","title":"Moderate: exiv2 security, bug fix, and enhancement update","description":"Exiv2 is a C++ library to access image metadata, supporting read and write access to the Exif, IPTC and XMP metadata, Exif MakerNote support, extract and delete methods for Exif thumbnails, classes to access Ifd, and support for various image formats.\n\nThe following packages have been upgraded to a later upstream version: exiv2 (0.27.4). (BZ#1989860)\n\nSecurity Fix(es):\n\n* exiv2: Heap-based buffer overflow in Jp2Image::readMetadata() (CVE-2021-3482)\n\n* exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29457)\n\n* exiv2: Out-of-bounds read in Exiv2::Internal::CrwMap::encode (CVE-2021-29458)\n\n* exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29464)\n\n* exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29470)\n\n* exiv2: Out-of-bounds read in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29473)\n\n* exiv2: Integer overflow in CrwMap:encode0x1810 leading to heap-based buffer overflow and DoS (CVE-2021-31292)\n\n* exiv2: Out-of-bounds read in Exiv2::WebPImage::doWriteMetadata (CVE-2021-29463)\n\n* exiv2: Use of uninitialized memory in isWebPType() may lead to information leak (CVE-2021-29623)\n\n* exiv2: DoS due to quadratic complexity in ProcessUTF8Portion (CVE-2021-32617)\n\n* exiv2: Out-of-bounds read in Exiv2::Jp2Image::printStructure (CVE-2021-37618)\n\n* exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-37619)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.\n\nAdditional Changes:\n\nFor detailed information on changes in this release, see the Rocky Linux 8.5 Release Notes linked from the References section.","status":"published","published":"2021-11-09T08:31:22Z","modified":"2026-02-04T23:30:02.729387Z","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:53:23.969672Z"},{"id":"UBUNTU-CVE-2021-29464","description":"Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.","status":"published","published":"2021-04-30T19:15:00Z","modified":"2026-04-22T12:51:44.399304Z","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"},{"version":"3.1","score":3.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-11-02T15:54:26.779273Z"},{"id":"ALSA-2021:4173","title":"Moderate: exiv2 security, bug fix, and enhancement update","description":"Exiv2 is a C++ library to access image metadata, supporting read and write access to the Exif, IPTC and XMP metadata, Exif MakerNote support, extract and delete methods for Exif thumbnails, classes to access Ifd, and support for various image formats.\n\nThe following packages have been upgraded to a later upstream version: exiv2 (0.27.4). (BZ#1989860)\n\nSecurity Fix(es):\n\n* exiv2: Heap-based buffer overflow in Jp2Image::readMetadata() (CVE-2021-3482)\n\n* exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29457)\n\n* exiv2: Out-of-bounds read in Exiv2::Internal::CrwMap::encode (CVE-2021-29458)\n\n* exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29464)\n\n* exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29470)\n\n* exiv2: Out-of-bounds read in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29473)\n\n* exiv2: Integer overflow in CrwMap:encode0x1810 leading to heap-based buffer overflow and DoS (CVE-2021-31292)\n\n* exiv2: Out-of-bounds read in Exiv2::WebPImage::doWriteMetadata (CVE-2021-29463)\n\n* exiv2: Use of uninitialized memory in isWebPType() may lead to information leak (CVE-2021-29623)\n\n* exiv2: DoS due to quadratic complexity in ProcessUTF8Portion (CVE-2021-32617)\n\n* exiv2: Out-of-bounds read in Exiv2::Jp2Image::printStructure (CVE-2021-37618)\n\n* exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-37619)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.\n\nAdditional Changes:\n\nFor detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.","status":"published","published":"2021-11-09T08:31:22Z","modified":"2026-10-29T11:01:02.239407907Z","updated_at":"2026-11-02T15:27:51.196609Z"},{"id":"MGASA-2021-0240","title":"Updated exiv2 packages fix security vulnerabilities","description":"The updated packages fix security vulnerabilities:\n\nHeap-based buffer overflow in Jp2Image::readMetadata(). (CVE-2021-3482)\n\nHeap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata.\n(CVE-2021-29457)\n\nOut-of-bounds read in Exiv2::Internal::CrwMap::encode. (CVE-2021-29458)\n\nExiv2 incorrectly handled certain files.  An attacker could possibly use\nthis issue to cause a denial of service. (CVE-2021-29463)\n\nExiv2 incorrectly handled certain files.  An attacker could possibly use\nthis issue to execute arbitrary code. (CVE-2021-29464)\n\nOut-of-bounds read in Exiv2::Jp2Image::encodeJp2Header. (CVE-2021-29470)\n\nOut-of-bounds read in Exiv2::Jp2Image::doWriteMetadata. (CVE-2021-29473)\n\nRead of uninitialized memory may lead to information leak. (CVE-2021-29623)\n\nDoS due to quadratic complexity in ProcessUTF8Portion. (CVE-2021-32617)\n","status":"published","published":"2021-06-08T16:46:03Z","modified":"2026-04-16T04:43:40.045638894Z","updated_at":"2026-11-02T15:49:41.509337Z"},{"id":"USN-4964-1","title":"exiv2 vulnerabilities","description":"It was discovered that Exiv2 incorrectly handled certain files.\nAn attacker could possibly use this issue to cause a denial of service.\nThis issue only affected Ubuntu 20.04 LTS, Ubuntu 20.10 and Ubuntu 21.04.\n(CVE-2021-29463)\n\nIt was discovered that Exiv2 incorrectly handled certain files.\nAn attacker could possibly use this issue to execute arbitrary code.\nThis issue only affected Ubuntu 20.04 LTS, Ubuntu 20.10 and Ubuntu 21.04.\n(CVE-2021-29464)\n\nIt was discovered that Exiv2 incorrectly handled certain files.\nAn attacker could possibly use this issue to cause a denial of service.\n(CVE-2021-29473, CVE-2021-32617)\n\nIt was discovered that Exiv2 incorrectly handled certain files.\nAn attacker could possibly use this issue to expose sensitive information.\nThis issue only affected Ubuntu 20.04 LTS, Ubuntu 20.10 and Ubuntu 21.04.\n(CVE-2021-29623)\n","status":"published","published":"2021-05-25T14:27:26Z","modified":"2026-06-25T13:30:37.03662772Z","updated_at":"2026-11-02T16:58:15.159055Z"}]}}
