# CVE-2026-27631: Exiv2: Uncaught exception - cannot create std::vector larger than max_size()

- Severity: Low 2.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-03-02T19:40:45.351Z
- Modified: 2026-06-17T10:27:25.397Z
- Weaknesses: CWE-248
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. Prior to version 0.28.8, an uncaught exception was found in Exiv2. The vulnerability is in the preview component, which is only triggered when running Exiv2 with an extra command line argument, like -pp. Due to an integer overflow, the code attempts to create a huge std::vector, which causes Exiv2 to crash with an uncaught exception. This issue has been patched in version 0.28.8.

(As written by CVE List.)

## Affected

- Exiv2 exiv2: < 0.28.8; up to 0.28.8

## Every score

- GitHub_M: CVSS:4.0 2.7 Low `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/Exiv2/exiv2/security/advisories/GHSA-p2pw-7935-c73j> (patch, vendor-advisory)
- <https://github.com/Exiv2/exiv2/issues/3513> (issue-tracking)
- <https://github.com/Exiv2/exiv2/pull/3514> (issue-tracking, patch)
- <https://github.com/Exiv2/exiv2/commit/659db316eef745899a778a1e0b760a971d1b69df> (patch)

## Sources

- CVE List: [CVE-2026-27631](https://www.cve.org/CVERecord?id=CVE-2026-27631), CVE Terms of Use, modified 2026-03-02
- NVD: [CVE-2026-27631](https://nvd.nist.gov/vuln/detail/CVE-2026-27631), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27631 · Whole record: https://cve.day/CVE-2026-27631.json · Rebuilt by cve.day 2026-11-25T22:59:15.114Z
