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

CVE-2021-31291 is fixed in 7 products on 1 platform, first by exiv2 0.25-3.1ubuntu0.18.04.10, released July 26, 2021. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2021-31291
- Priority: High
- CVSS: 8.1 (Important)
- EPSS: n/a
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 26, 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.  Security Fix(es):  * exiv2: Heap-based buffer overflow vulnerability in jp2image.cpp (CVE-2021-31291)  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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | compat-exiv2-026 RHEL 8 | 0:0.26-4.el8_4 | [RHSA-2021:3153](https://patchblox.com/security/data/fix/linux/rhsa-2021-3153.md) | Aug 16, 2021 |
| Linux | compat-exiv2-026 ol 8 | 0:0.26-4.el8_4 | [ELSA-2021-3153](https://patchblox.com/security/data/fix/linux/elsa-2021-3153.md) | Aug 17, 2021 |
| Linux | exiv2 RHEL 8 | 0:0.27.3-3.el8_4 | [RHSA-2021:3152](https://patchblox.com/security/data/fix/linux/rhsa-2021-3152.md) | Aug 16, 2021 |
| Linux | exiv2 Ubuntu 18.04.6 LTS (bionic) | 0.25-3.1ubuntu0.18.04.10 | [exiv2 0.25-3.1ubuntu0.18.04.10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-exiv2-0.25-3.1ubuntu0.18.04.10.md) | Jul 26, 2021 |
| Linux | exiv2 Ubuntu 20.04 LTS (focal) | 0.27.2-8ubuntu2.5 | [exiv2 0.27.2-8ubuntu2.5](https://patchblox.com/security/data/fix/linux/ubuntu-focal-exiv2-0.27.2-8ubuntu2.5.md) | Jul 26, 2021 |
| Linux | exiv2 ol 8 | 0:0.27.3-3.el8_4 | [ELSA-2021-3152](https://patchblox.com/security/data/fix/linux/elsa-2021-3152.md) | Aug 17, 2021 |
| Linux | exiv2-devel RHEL 8 | 0:0.27.3-3.el8_4 | [RHSA-2021:3152](https://patchblox.com/security/data/fix/linux/rhsa-2021-3152.md) | Aug 16, 2021 |
| Linux | exiv2-devel ol 8 | 0:0.27.3-3.el8_4 | [ELSA-2021-3152](https://patchblox.com/security/data/fix/linux/elsa-2021-3152.md) | Aug 17, 2021 |
| Linux | exiv2-doc RHEL 8 | 0:0.27.3-3.el8_4 | [RHSA-2021:3152](https://patchblox.com/security/data/fix/linux/rhsa-2021-3152.md) | Aug 16, 2021 |
| Linux | exiv2-doc ol 8 | 0:0.27.3-3.el8_4 | [ELSA-2021-3152](https://patchblox.com/security/data/fix/linux/elsa-2021-3152.md) | Aug 17, 2021 |
| Linux | exiv2-libs RHEL 8 | 0:0.27.3-3.el8_4 | [RHSA-2021:3152](https://patchblox.com/security/data/fix/linux/rhsa-2021-3152.md) | Aug 16, 2021 |
| Linux | exiv2-libs ol 8 | 0:0.27.3-3.el8_4 | [ELSA-2021-3152](https://patchblox.com/security/data/fix/linux/elsa-2021-3152.md) | Aug 17, 2021 |
| Linux | libexiv2-14 Ubuntu 18.04.6 LTS (bionic) | 0.25-3.1ubuntu0.18.04.10 | [libexiv2-14 0.25-3.1ubuntu0.18.04.10](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libexiv2-14-0.25-3.1ubuntu0.18.04.10.md) | Jul 26, 2021 |
| Linux | libexiv2-27 Ubuntu 20.04 LTS (focal) | 0.27.2-8ubuntu2.5 | [libexiv2-27 0.27.2-8ubuntu2.5](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libexiv2-27-0.27.2-8ubuntu2.5.md) | Jul 26, 2021 |

---

Data as of 2026-11-08T00:53:09Z 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.
