2.7low
Exiv2: Uncaught exception - cannot create std::vector larger than max_size()
- Severity
- 2.7low CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.30% (higher than 24% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Exiv2 exiv2 | < 0.28.8, up to 0.28.8 | CVE List, NVD |
All scores
| GitHub_M | 2.7low CVSS:4.0 | 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 | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Exiv2 es una librería de C++ y una utilidad de línea de comandos para leer, escribir, eliminar y modificar metadatos de imagen Exif, IPTC, XMP e ICC. Antes de la versión 0.28.8, se encontró una excepción no capturada en Exiv2. La vulnerabilidad está en el componente de vista previa, que solo se activa al ejecutar Exiv2 con un argumento adicional de línea de comandos, como -pp. Debido a un desbordamiento de entero, el código intenta crear un std::vector enorme, lo que provoca que Exiv2 falle con una excepción no capturada. Este problema ha sido parcheado en la versión 0.28.8.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-27631 changed 2026-03-02 | CVE Terms of Use |
| NVD | CVE-2026-27631 changed 2026-06-17 | Public domain |