Skip to main content
MEDIUM

CVE-2021-29458

CVSS v3

5.5

MEDIUM

EPSS Score

1.6 %

exploit probability, as of 2026-10-18

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for exiv2.

Set up CVE WatchFree account · no credit card

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

  • CVE-2021-29458 Red Hat Product Security46 products fixed · 8 known affected

    exiv2: Out-of-bounds read in Exiv2::Internal::CrwMap::encode

    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

  • RHSA-2021:4173 Red Hat Product Security46 products fixed

    Red Hat Security Advisory: exiv2 security, bug fix, and enhancement update

Full record on NVD

Description

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.

Technical details

Published
2021-04-19

Frequently asked questions

What is CVE-2021-29458?

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.

Is CVE-2021-29458 actively exploited?

Active exploitation of CVE-2021-29458 has not been confirmed. Its EPSS score was 1.6% on 2026-10-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-29458?

CVE-2021-29458 has a CVSS v3 base score of 5.5 (MEDIUM severity).

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