# CVE-2021-29470: exiv2: Exiv2 is a C++ library to access image metadata, supporting read and write access to the Exif, IPTC and XMP metadata,...

CVE-2021-29470 is fixed in 5 products on 1 platform, first by exiv2 0.27.2-8ubuntu2.2, released April 23, 2021. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-29470
- Priority: High
- CVSS: 7.8 (Moderate)
- EPSS: 0.0157
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Apr 23, 2021

## Description

Exiv2 is a C++ library to access image metadata, supporting read and write access to the Exif, IPTC and XMP metadata, Exif MakerNote support, extract and delete methods for Exif thumbnails, classes to access Ifd, and support for various image formats.  The following packages have been upgraded to a later upstream version: exiv2 (0.27.4). (BZ#1989860)  Security Fix(es):  * exiv2: Heap-based buffer overflow in Jp2Image::readMetadata() (CVE-2021-3482)  * exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29457)  * exiv2: Out-of-bounds read in Exiv2::Internal::CrwMap::encode (CVE-2021-29458)  * exiv2: Heap-based buffer overflow in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29464)  * exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-29470)  * exiv2: Out-of-bounds read in Exiv2::Jp2Image::doWriteMetadata (CVE-2021-29473)  * exiv2: Integer overflow in CrwMap:encode0x1810 leading to heap-based buffer overflow and DoS (CVE-2021-31292)  * exiv2: Out-of-bounds read in Exiv2::WebPImage::doWriteMetadata (CVE-2021-29463)  * exiv2: Use of uninitialized memory in isWebPType() may lead to information leak (CVE-2021-29623)  * exiv2: DoS due to quadratic complexity in ProcessUTF8Portion (CVE-2021-32617)  * exiv2: Out-of-bounds read in Exiv2::Jp2Image::printStructure (CVE-2021-37618)  * exiv2: Out-of-bounds read in Exiv2::Jp2Image::encodeJp2Header (CVE-2021-37619)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.  Additional Changes:  For detailed information on changes in this release, see the Red Hat Enterprise Linux 8.5 Release Notes linked from the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | exiv2 RHEL 8 | 0:0.27.4-5.el8 | [RHSA-2021:4173](https://patchblox.com/security/data/fix/linux/rhsa-2021-4173.md) | Nov 9, 2021 |
| Linux | exiv2 Ubuntu 20.04 LTS (focal) | 0.27.2-8ubuntu2.2 | [exiv2 0.27.2-8ubuntu2.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-exiv2-0.27.2-8ubuntu2.2.md) | Apr 23, 2021 |
| Linux | exiv2 almalinux 8 | 0.27.4-5.el8 | [ALSA-2021:4173](https://patchblox.com/security/data/fix/linux/alsa-2021-4173.md) | Nov 9, 2021 |
| Linux | exiv2 rocky 8 | 0:0.27.4-5.el8 | [RLSA-2021:4173](https://patchblox.com/security/data/fix/linux/rlsa-2021-4173.md) | Nov 9, 2021 |
| Linux | exiv2-devel RHEL 8 | 0:0.27.4-5.el8 | [RHSA-2021:4173](https://patchblox.com/security/data/fix/linux/rhsa-2021-4173.md) | Nov 9, 2021 |
| Linux | exiv2-devel almalinux 8 | 0.27.4-5.el8 | [ALSA-2021:4173](https://patchblox.com/security/data/fix/linux/alsa-2021-4173.md) | Nov 9, 2021 |
| Linux | exiv2-doc RHEL 8 | 0:0.27.4-5.el8 | [RHSA-2021:4173](https://patchblox.com/security/data/fix/linux/rhsa-2021-4173.md) | Nov 9, 2021 |
| Linux | exiv2-doc almalinux 8 | 0.27.4-5.el8 | [ALSA-2021:4173](https://patchblox.com/security/data/fix/linux/alsa-2021-4173.md) | Nov 9, 2021 |
| Linux | exiv2-libs RHEL 8 | 0:0.27.4-5.el8 | [RHSA-2021:4173](https://patchblox.com/security/data/fix/linux/rhsa-2021-4173.md) | Nov 9, 2021 |
| Linux | exiv2-libs almalinux 8 | 0.27.4-5.el8 | [ALSA-2021:4173](https://patchblox.com/security/data/fix/linux/alsa-2021-4173.md) | Nov 9, 2021 |
| Linux | libexiv2-27 Ubuntu 20.04 LTS (focal) | 0.27.2-8ubuntu2.2 | [libexiv2-27 0.27.2-8ubuntu2.2](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libexiv2-27-0.27.2-8ubuntu2.2.md) | Apr 23, 2021 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
