CVE-2026-27631 PUBLISHED

Exiv2: Uncaught exception - cannot create std::vector larger than max_size()

Assigner: GitHub_M
Reserved: 20.02.2026 Published: 02.03.2026 Updated: 02.03.2026

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.

Metrics

CVSS 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
CVSS Score: 2.7

Product Status

Vendor Exiv2
Product exiv2
Versions
  • Version < 0.28.8 is affected

References

Problem Types

  • CWE-248: Uncaught Exception CWE