Vulnerabilities / CVE-2025-26623

critical

CVE-2025-26623

exiv2: Use After Free in Exiv2

Published Modified CWE 416
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA5.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Red Hat6.3CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (medium), Red Hat (medium), Amazon (medium), Oracle (medium), Rocky Linux (medium), Ubuntu (medium).

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.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.22exiv20.28.5-r0
alpine 3.23exiv20.28.5-r0
alpine 3.24exiv20.28.5-r0
alpine edgeexiv20.28.5-r0
amazon linux 2023exiv2, exiv2-debuginfo, exiv2-debugsource and 4 more0.28.5-128.amzn2023
debian 13exiv20.28.4+dfsg-2
debian 14exiv20.28.4+dfsg-2
pip::GitHub Security Advisory pipexiv20.28.5
rapidfort amazon linux 2023exiv2, exiv2-devel, exiv2-doc and 1 more0.28.5-128.amzn2023
rapidfort debian 12exiv20:0.28.4+dfsg-2
rapidfort debian 13exiv20:0.28.4+dfsg-2
rapidfort Oracle Linux 10exiv2, exiv2-libs0:0.28.3-3.el10_0.2
Show all 31 entries from 15 sources
SourcePackageFixed in
alpine 3.22exiv20.28.5-r0
alpine 3.23exiv20.28.5-r0
alpine 3.24exiv20.28.5-r0
alpine edgeexiv20.28.5-r0
amazon linux 2023exiv20.28.5-128.amzn2023
amazon linux 2023exiv2-debuginfo0.28.5-128.amzn2023
amazon linux 2023exiv2-debugsource0.28.5-128.amzn2023
amazon linux 2023exiv2-devel0.28.5-128.amzn2023
amazon linux 2023exiv2-doc0.28.5-128.amzn2023
amazon linux 2023exiv2-libs0.28.5-128.amzn2023
amazon linux 2023exiv2-libs-debuginfo0.28.5-128.amzn2023
debian 13exiv20.28.4+dfsg-2
debian 14exiv20.28.4+dfsg-2
pip::GitHub Security Advisory pipexiv20.28.5
rapidfort amazon linux 2023exiv20.28.5-128.amzn2023
rapidfort amazon linux 2023exiv2-devel0.28.5-128.amzn2023
rapidfort amazon linux 2023exiv2-doc0.28.5-128.amzn2023
rapidfort amazon linux 2023exiv2-libs0.28.5-128.amzn2023
rapidfort debian 12exiv20:0.28.4+dfsg-2
rapidfort debian 13exiv20:0.28.4+dfsg-2
rapidfort Oracle Linux 10exiv20:0.28.3-3.el10_0.2
rapidfort Oracle Linux 10exiv2-libs0:0.28.3-3.el10_0.2
Red Hatcompat-exiv2-023no fix listed
Red Hatcompat-exiv2-026no fix listed
Red Hatexiv2no fix listed
Red Hatexiv2-develno fix listed
Red Hatexiv2-docno fix listed
Red Hatexiv2-libsno fix listed
rocky 10exiv20.28.3-3.el10_0.2
rocky 10exiv2-libs0.28.3-3.el10_0.2
ubuntu 25.04exiv20.28.4+dfsg-2

References

All 15 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.