CVE-2026-27631Exiv2: 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.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | exiv2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | exiv2 | Fixed | 0.28.5+dfsg-1ubuntu0.1 | UBUNTU-CVE-2026-27631 |
| Ubuntu 24.04 | exiv2 | Fixed | 0.27.6-1ubuntu0.1 | UBUNTU-CVE-2026-27631 |
| Ubuntu 22.04 | exiv2 | Fixed | 0.27.5-3ubuntu1.1 | UBUNTU-CVE-2026-27631 |
| Ubuntu 20.04 | exiv2 | Fix pending | 0.27.2-8ubuntu2.7+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-27631 |
| Ubuntu 18.04 | exiv2 | Fix pending | 0.25-3.1ubuntu0.18.04.11+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-27631 |
| Ubuntu 16.04 | exiv2 | Fix pending | 0.25-2.1ubuntu16.04.7+esm5 (Ubuntu Pro) | UBUNTU-CVE-2026-27631 |
| Debian 14 | exiv2 | Fixed | 0.28.8+dfsg-1 | DEBIAN-CVE-2026-27631 |
| Debian 13 | exiv2 | Fix pending | DEBIAN-CVE-2026-27631 | |
| Debian 12 | exiv2 | Fix pending | DEBIAN-CVE-2026-27631 | |
| Red Hat Enterprise Linux 10 | exiv2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | exiv2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | exiv2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 10 | exiv2-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | exiv2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | exiv2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | exiv2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 9 | exiv2-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | compat-exiv2-026 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | exiv2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | exiv2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | exiv2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | exiv2-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | compat-exiv2-023 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | compat-exiv2-026 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | exiv2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | exiv2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | exiv2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | exiv2-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | exiv2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | exiv2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 6 | exiv2-libs | Fix pending Fix deferred | ||
| Alpine Linux 3.24 | exiv2 | Fixed | 0.28.9-r0 | ALPINE-CVE-2026-27631 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- exiv2: affected: < 0.28.8
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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.