CVE-2025-26623 Use After Free in Exiv2
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- Debian
Description
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.
Upgrade path
7 packages: 7 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/exiv2(Alpine v3.22) | >= 0.28.0, < 0.28.5-r0 | 0.28.5-r0 | Fixed |
| alpine/exiv2(Alpine v3.23) | >= 0.28.0, < 0.28.5-r0 | 0.28.5-r0 | Fixed |
| alpine/exiv2(Alpine v3.24) | >= 0.28.0, < 0.28.5-r0 | 0.28.5-r0 | Fixed |
| debian/exiv2(Debian 13) | < 0.28.4+dfsg-2 | 0.28.4+dfsg-2 | Fixed |
| debian/exiv2(Debian 14) | < 0.28.4+dfsg-2 | 0.28.4+dfsg-2 | Fixed |
| exiv2 | = >= 0.28.0, < 0.28.5; >= 0.28.0, < 0.28.5 | 0.28.5 | Fixed |
| pypi exiv2(PyPI) | >= 0.28.0, < 0.28.5 | 0.28.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi exiv2(PyPI) | >= 0.28.0, < 0.28.5 | 0.28.5 |
| debian/exiv2(Debian:13) | < 0.28.4+dfsg-2 | 0.28.4+dfsg-2 |
| debian/exiv2(Debian:14) | < 0.28.4+dfsg-2 | 0.28.4+dfsg-2 |
| exiv2 | = >= 0.28.0, < 0.28.5 | No fix listed |
| alpine/exiv2(Alpine:v3.22) | >= 0.28.0, < 0.28.5-r0 | 0.28.5-r0 |
| alpine/exiv2(Alpine:v3.23) | >= 0.28.0, < 0.28.5-r0 | 0.28.5-r0 |
| alpine/exiv2(Alpine:v3.24) | >= 0.28.0, < 0.28.5-r0 | 0.28.5-r0 |
| exiv2 | >= 0.28.0, < 0.28.5 | 0.28.5 |
References
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-38h4-fx85-qcx7 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/Exiv2/exiv2/issues/3168 exploit issue-tracking
- github.com patch
- github.com patch
- github.com product
- pypi.org product
- github.com vendor-advisory
- Debian Security Tracker CVE-2025-26623 vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking