CVE-2021-29470
published 2021-04-23CVE-2021-29470: Exiv2 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…
PriorityP430medium6.5CVSS 3.1
AVNACLPRNUIRSUCNINAH
EPSS
1.57%
72.6th percentile
Exiv2 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.
Affected
14 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | exiv2 | < exiv2 0.27.5-1 (bookworm) | exiv2 0.27.5-1 (bookworm) |
| exiv2 | exiv2 | <= 0.27.3 | — |
| exiv2 | exiv2 | >= 0 < 0.27.3-3+deb11u2 | 0.27.3-3+deb11u2 |
| exiv2 | exiv2 | >= 0 < 0.27.5-1 | 0.27.5-1 |
| exiv2 | exiv2 | >= 0 < 0.27.5-1 | 0.27.5-1 |
| exiv2 | exiv2 | >= 0 < 0.27.5-1 | 0.27.5-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.16.5MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
nvdv2.04.3MEDIUMAV:N/AC:M/Au:N/C:N/I:N/A:P
osv7.8HIGH
vendor_ubuntu7.8HIGH
vendor_msrc6.5MEDIUM
vendor_debian4.7MEDIUM
vendor_redhat4.7MEDIUM
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: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header
vendor_redhat·2021-04-23·CVSS 4.7
CVE-2021-29470 [MEDIUM] CWE-125 exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header
exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header
Exiv2 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 i
Microsoft
Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header
vendor_msrc·2021-04-13·CVSS 6.5
CVE-2021-29470 [MEDIUM] CWE-125 Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header
Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header
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-29470: exiv2 - Exiv2 is a command-line utility and C++ library for reading, writing, deleting, ...
vendor_debian·2021·CVSS 4.7
CVE-2021-29470 [MEDIUM] CVE-2021-29470: 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. 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.
Scope: local
bookwo
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-29470: Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files
osv·2021-04-23·CVSS 6.5
CVE-2021-29470 [MEDIUM] CVE-2021-29470: 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. 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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/Exiv2/exiv2/pull/1581https://github.com/Exiv2/exiv2/security/advisories/GHSA-8949-hhfh-j7rjhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2XQT5F5IINTDYDAFGVGQZ7PMMLG7I5ZZ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JWZLDECIXXW3CCZ3RS4A3NG5X5VE4WZM/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBKWLTXM7IKZ4PVGKLUQVAVFAYGGF7QR/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P2A5GMJEXQ5Q76JK6F6VKK5JYCLVFGKN/https://security.gentoo.org/glsa/202312-06https://github.com/Exiv2/exiv2/pull/1581https://github.com/Exiv2/exiv2/security/advisories/GHSA-8949-hhfh-j7rjhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2XQT5F5IINTDYDAFGVGQZ7PMMLG7I5ZZ/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JWZLDECIXXW3CCZ3RS4A3NG5X5VE4WZM/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LBKWLTXM7IKZ4PVGKLUQVAVFAYGGF7QR/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P2A5GMJEXQ5Q76JK6F6VKK5JYCLVFGKN/https://security.gentoo.org/glsa/202312-06
2021-04-23
Published