CVE-2026-27631: Exiv2: Uncaught exception - cannot create std::vector larger than max_size()
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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2026-27631?
CVE-2026-27631 has a moderate severity level due to the potential for application crashes when handling large image metadata.
How do I fix CVE-2026-27631?
To fix CVE-2026-27631, update Exiv2 to version 0.28.8 or later.
What causes CVE-2026-27631?
CVE-2026-27631 is caused by an uncaught exception when trying to create a std::vector larger than its maximum allowable size in Exiv2.
Which versions of Exiv2 are affected by CVE-2026-27631?
CVE-2026-27631 affects Exiv2 versions prior to 0.28.8.
Is CVE-2026-27631 exploitable in production environments?
Yes, CVE-2026-27631 could be exploited in production environments leading to application instability.