CVE-2021-29457
published 2021-04-19CVE-2021-29457: 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…
PriorityP341high7.8CVSS 3.1
AVLACLPRNUIRSUCHIHAH
EPSS
2.15%
80.1th percentile
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.
Affected
16 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | debian_linux | — | — |
| debian | debian_linux | — | — |
| debian | exiv2 | < exiv2 0.27.3-3.1 (bookworm) | exiv2 0.27.3-3.1 (bookworm) |
| exiv2 | exiv2 | < 0.27.4 | 0.27.4 |
| exiv2 | exiv2 | >= 0 < 0.27.3-3+deb11u1 | 0.27.3-3+deb11u1 |
| exiv2 | exiv2 | >= 0 < 0.27.3-3.1 | 0.27.3-3.1 |
| exiv2 | exiv2 | >= 0 < 0.27.3-3.1 | 0.27.3-3.1 |
| exiv2 | exiv2 | >= 0 < 0.27.3-3.1 | 0.27.3-3.1 |
| exiv2 | exiv2 | >= 0 < 0.25-3.1ubuntu0.18.04.7 | 0.25-3.1ubuntu0.18.04.7 |
| exiv2 | exiv2 | >= 0 < 0.27.2-8ubuntu2.2 | 0.27.2-8ubuntu2.2 |
| exiv2 | exiv2 | >= 0 < 0.25-2.1ubuntu16.04.7+esm1 | 0.25-2.1ubuntu16.04.7+esm1 |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| msrc | cbl2_exiv2_0.27.5-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
CVSS provenance
nvdv3.17.8HIGHCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
nvdv2.06.8MEDIUMAV:N/AC:M/Au:N/C:P/I:P/A:P
osv7.8HIGH
vendor_debian7.8HIGH
vendor_msrc7.8HIGH
vendor_redhat7.8HIGH
vendor_ubuntu7.8HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Ubuntu
Exiv2 vulnerabilities
vendor_ubuntu·2021-05-10·CVSS 7.8
CVE-2021-29458 [HIGH] Exiv2 vulnerabilities
Title: Exiv2 vulnerabilities
Summary: Several security issues were fixed in Exiv2.
It was discovered that Exiv2 incorrectly handled certain images.
An attacker could possibly use this issue to execute arbitrary code or cause
a crash. (CVE-2021-29457)
It was discovered that Exiv2 incorrectly handled certain images.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2021-29458, CVE-2021-29470)
It was discovered that Exiv2 incorrectly handled certain images.
An attacker could possibly use this issue to execute arbitrary code or
cause a crash. (CVE-2021-3482)
Instructions: In general, a standard system update will make all the necessary changes.
Red Hat
exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata
vendor_redhat·2021-04-18·CVSS 7.8
CVE-2021-29457 [HIGH] CWE-20 exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata
exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata
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
Microsoft
Heap buffer overflow in Exiv2::Jp2Image::doWriteMetadata
vendor_msrc·2021-04-13·CVSS 7.8
CVE-2021-29457 [HIGH] CWE-122 Heap buffer overflow in Exiv2::Jp2Image::doWriteMetadata
Heap buffer overflow in Exiv2::Jp2Image::doWriteMetadata
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
GitHub_M: GitHub_M
Customer Action Required: Yes
Remediation: CBL-Mariner Releases
Reference: https:
Debian
CVE-2021-29457: exiv2 - Exiv2 is a command-line utility and C++ library for reading, writing, deleting, ...
vendor_debian·2021·CVSS 7.8
CVE-2021-29457 [HIGH] CVE-2021-29457: exiv2 - Exiv2 is a command-line utility and C++ library for reading, writing, deleting, ...
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.
Scope: local
bookworm: resolved (fixed in
OSV
exiv2 vulnerabilities
osv·2021-05-10·CVSS 7.8
CVE-2021-29457 [HIGH] exiv2 vulnerabilities
exiv2 vulnerabilities
It was discovered that Exiv2 incorrectly handled certain images.
An attacker could possibly use this issue to execute arbitrary code or cause
a crash. (CVE-2021-29457)
It was discovered that Exiv2 incorrectly handled certain images.
An attacker could possibly use this issue to cause a denial of service.
(CVE-2021-29458, CVE-2021-29470)
It was discovered that Exiv2 incorrectly handled certain images.
An attacker could possibly use this issue to execute arbitrary code or
cause a crash. (CVE-2021-3482)
OSV
CVE-2021-29457: Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files
osv·2021-04-19·CVSS 7.8
CVE-2021-29457 [HIGH] CVE-2021-29457: Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/Exiv2/exiv2/issues/1529https://github.com/Exiv2/exiv2/pull/1534https://github.com/Exiv2/exiv2/security/advisories/GHSA-v74w-h496-cgqmhttps://lists.debian.org/debian-lts-announce/2021/08/msg00028.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2XQT5F5IINTDYDAFGVGQZ7PMMLG7I5ZZ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P2A5GMJEXQ5Q76JK6F6VKK5JYCLVFGKN/https://security.gentoo.org/glsa/202312-06https://www.debian.org/security/2021/dsa-4958https://github.com/Exiv2/exiv2/issues/1529https://github.com/Exiv2/exiv2/pull/1534https://github.com/Exiv2/exiv2/security/advisories/GHSA-v74w-h496-cgqmhttps://lists.debian.org/debian-lts-announce/2021/08/msg00028.htmlhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2XQT5F5IINTDYDAFGVGQZ7PMMLG7I5ZZ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P2A5GMJEXQ5Q76JK6F6VKK5JYCLVFGKN/https://security.gentoo.org/glsa/202312-06https://www.debian.org/security/2021/dsa-4958
2021-04-19
Published