Skip to content

CVE-2025-26623 Use After Free in Exiv2

MediumCVSS 5.3 EPSS 0.92%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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