Exiv2: Uncaught exception - cannot create std::vector larger than max_size()
Summary
Exiv2: Uncaught exception - cannot create std::vector larger than max_size()
Original description
The description as published by the source.
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.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2026-27631 exiv2
- Ubuntu UBUNTU-CVE-2026-27631 exiv2 Fixed in: 0.25-2.1ubuntu16.04.7+esm5
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- report github.com