Read the docs
TI-2021-10186 Aliases CVE-2021-29473

Out-of-bounds read in Exiv2::Jp2Image::doWriteMetadata

Priority LOW 16CWE-125Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Required
Attack complexity
High
Impact type
—
Confidentiality · integrity · availability
None · None · Low
Fix status
Partial Red Hat: 2 fixed, 3 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.

Summary

Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. An out-of-bounds read was found in Exiv2 versions v0.27.3 and earlier. Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. 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. Please see our security policy for information about Exiv2 security.

Why it matters now

EPSS 0.01677 77th percentileScored 2026-11-07
Fix Partial exiv2 (Exiv2): 0.27.4Red Hat: 1 advisoryRed Hat: 2 fixed, 3 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
Exiv2exiv2before 0.27.40.27.4Patch availableCNA
  • exiv2 VendorExiv2 Affected before 0.27.4 Fixed in 0.27.4 Patch available CNA

CPE configurations NVD · 5

CPEVersionsRoleVendor
cpe:2.3:a:exiv2:exiv2:*:*:*:*:*:*:*:*before 0.27.4VulnerableExiv2
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*33VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*34VulnerableFedoraproject
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*9.0VulnerableDebian
cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*10.0VulnerableDebian
  • cpe:2.3:a:exiv2:exiv2:*:*:*:*:*:*:*:* Versions before 0.27.4 Vulnerable ·Exiv2
  • cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* Versions 33 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* Versions 34 Vulnerable ·Fedoraproject
  • cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Debian
  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* Versions 10.0 Vulnerable ·Debian

Remediation

  • Fix · CNA exiv2 (Exiv2) Fixed in 0.27.4

Red Hat 1 advisory

  • RHSA-2021:4173 Released 2021-11-09 · Red Hat rating Moderate
    exiv2 security, bug fix, and enhancement update
    • Red Hat CodeReady Linux Builder (v. 8) exiv2-devel-0.27.4-5.el8, exiv2-doc-0.27.4-5.el8
    • Red Hat Enterprise Linux AppStream (v. 8) exiv2-0.27.4-5.el8, exiv2-libs-0.27.4-5.el8

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Advisory ·

    exiv2 — FEDORA-2021-2d860da728

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2021-10183 Out-of-bounds read in Exiv2::Jp2Image::encodeJp2HeaderPriority LOW 32
  • Advisory ·

    exiv2 — FEDORA-2021-96a5dabcfa

    2 records Highest priority Priority LOW 2 LOW

    Other records, highest priority first

    • TI-2021-10183 Out-of-bounds read in Exiv2::Jp2Image::encodeJp2HeaderPriority LOW 32

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Enterprise Linux 6AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 7AffectedNo fix planned: Out of support scope
Red Hat Enterprise Linux 8AffectedNo fix planned: Will not fix
Red Hat CodeReady Linux Builder (v. 8)Fixed RHSA-2021:4173
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2021:4173
Not affected: 1 product
  • Red Hat Enterprise Linux 9

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-29473

References

  • TI-2020-13478 Buffer Overflow vulnerability in tEXtToDataBuf function in pngimage.cpp in Exiv2 0.27.1… CVSS 3.1HIGH 7.8
  • TI-2025-19560 Use After Free in Exiv2 CVSS 4.0MEDIUM 5.3
  • TI-2020-13491 An uncontrolled memory allocation in DataBufdata(subBox.length-sizeof(box)) function of… CVSS 3.1MEDIUM 6.5
  • TI-2018-08245 Exiv2 0.26 has a heap-based buffer overflow in getData in preview.cpp. CVSS 3.0CRITICAL 9.8
  • TI-2025-33923 Exiv2 Segmentation Faults in Exiv2::EpsImage::writeMetadata() via crafted EPS file CVSS 4.0LOW 1.8
  • TI-2019-06608 An issue was discovered in Exiv2 0.27. CVSS 3.0HIGH 8.8
See all 123 →

Sources