CVE-2021-29457
CVSS v3
7.8
HIGH
EPSS Score
2.2 %
exploit probability, as of 2026-10-19
CISA KEV
No
known exploited
Exploitation
—
SSVC status
Get an alert for each new CVE published for exiv2.
Affected and fixed versions
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- exiv2AlmaLinux:8all versions · fixed in 0.27.4-5.el8and 3 other packages
Vendor advisories
exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata
exiv2-devel as a component of Red Hat Enterprise Linux 6 · exiv2-libs as a component of Red Hat Enterprise Linux 6 · exiv2.src as a component of Red Hat Enterprise Linux 6
Red Hat Security Advisory: exiv2 security, bug fix, and enhancement update
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.
Technical details
- Published
- 2021-04-19
Frequently asked questions
What is CVE-2021-29457?
Is CVE-2021-29457 actively exploited?
What is the CVSS score for CVE-2021-29457?
Running exiv2? Hear about its next vulnerability
CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.
Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? CVE Watch alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.