CVE-2025-26623Use After Free in Exiv2
Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. A heap buffer overflow was found in Exiv2 versions v0.28.0 to v0.28.4. Versions prior to v0.28.0, such as v0.27.7, are **not** affected. Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when writing the metadata, which is a less frequently used Exiv2 operation than reading the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `fixiso`. The bug is fixed in version v0.28.5. Users are advised to upgrade. There are no known workarounds for this vulnerability.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, PyPI, Red Hat, Rocky Linux: see the table below for the fixed version per release.
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 24.04 | exiv2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | exiv2 | Not affected vulnerable_code_not_present | ||
| Debian 14 | exiv2 | Fixed | 0.28.4+dfsg-2 | DEBIAN-CVE-2025-26623 |
| Debian 13 | exiv2 | Fixed | 0.28.4+dfsg-2 | DEBIAN-CVE-2025-26623 |
| Red Hat Enterprise Linux 10 | exiv2 | Fixed | 0:0.28.3-3.el10_0.2 | RHSA-2025:7457 |
| Red Hat Enterprise Linux 10 | exiv2-devel | Fixed | 0:0.28.3-3.el10_0.2 | RHSA-2025:7457 |
| Red Hat Enterprise Linux 10 | exiv2-doc | Fixed | 0:0.28.3-3.el10_0.2 | RHSA-2025:7457 |
| Red Hat Enterprise Linux 10 | exiv2-libs | Fixed | 0:0.28.3-3.el10_0.2 | RHSA-2025:7457 |
| Red Hat Enterprise Linux 9 | exiv2 | Not affected | ||
| Red Hat Enterprise Linux 9 | exiv2-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | exiv2-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | exiv2-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | compat-exiv2-026 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | exiv2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | exiv2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | exiv2-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 8 | exiv2-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | compat-exiv2-023 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | compat-exiv2-026 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | exiv2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | exiv2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | exiv2-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | exiv2-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | exiv2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | exiv2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | exiv2-libs | Will not fix Out of support scope | ||
| AlmaLinux 10 | exiv2 | Fixed | 0.28.3-3.el10_0.2 | ALSA-2025:7457 |
| AlmaLinux 10 | exiv2-devel | Fixed | 0.28.3-3.el10_0.2 | ALSA-2025:7457 |
| AlmaLinux 10 | exiv2-doc | Fixed | 0.28.3-3.el10_0.2 | ALSA-2025:7457 |
| AlmaLinux 10 | exiv2-libs | Fixed | 0.28.3-3.el10_0.2 | ALSA-2025:7457 |
| Rocky Linux 10 | exiv2 | Fixed | 0:0.28.3-3.el10_0.2 | RLSA-2025:7457 |
| Alpine Linux 3.24 | exiv2 | Fixed | 0.28.5-r0 | ALPINE-CVE-2025-26623 |
| Alpine Linux 3.23 | exiv2 | Fixed | 0.28.5-r0 | ALPINE-CVE-2025-26623 |
| Alpine Linux 3.22 | exiv2 | Fixed | 0.28.5-r0 | ALPINE-CVE-2025-26623 |
| PyPI library | exiv2 | Fixed | 0.28.5 | PYSEC-2026-1353 |
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.0, < 0.28.5
References
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-38h4-fx85-qcx7
- https://github.com/Exiv2/exiv2/issues/3168
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.