CVE-2021-29457Heap-based Buffer Overflow in Exiv2

Severity
7.8HIGHNVD
EPSS
1.5%
top 18.78%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedApr 19
Latest updateMay 10

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 m

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9

Affected Packages7 packages

NVDexiv2/exiv2< 0.27.4
debiandebian/exiv2< exiv2 0.27.3-3.1 (bookworm)
Debianexiv2/exiv2< 0.27.3-3+deb11u1+3
Ubuntuexiv2/exiv2< 0.25-3.1ubuntu0.18.04.7+2

Also affects: Debian Linux 10.0, 9.0, Fedora 33, 34

Patches

🔴Vulnerability Details

2
OSV
exiv2 vulnerabilities2021-05-10
OSV
CVE-2021-29457: Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files2021-04-19

📋Vendor Advisories

4
Ubuntu
Exiv2 vulnerabilities2021-05-10
Red Hat
exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata2021-04-18
Microsoft
Heap buffer overflow in Exiv2::Jp2Image::doWriteMetadata2021-04-13
Debian
CVE-2021-29457: exiv2 - Exiv2 is a command-line utility and C++ library for reading, writing, deleting, ...2021