Vulnerability · Published Aug 29, 2025 · Assigned by GitHub_M
CVE-2025-54080Exiv2 Segmentation Faults in Exiv2::EpsImage::writeMetadata() via crafted EPS file
Low 1.8
In plain English
A low-severity out-of-bounds read in exiv2 from Exiv2. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Exiv2 is a C++ library and a command-line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. An out-of-bounds read was found in Exiv2 versions 0.28.5 and earlier. The out-of-bounds read is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, 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. The bug is fixed in version 0.28.6.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.22 | exiv2 | 0.28.6-r0 | ALPINE-CVE-2025-54080 |
| Alpine:v3.23 | exiv2 | 0.28.6-r0 | ALPINE-CVE-2025-54080 |
| Alpine:v3.24 | exiv2 | 0.28.6-r0 | ALPINE-CVE-2025-54080 |
| Debian:12 | exiv2 | no fix listed | DEBIAN-CVE-2025-54080 |
| Debian:13 | exiv2 | no fix listed | DEBIAN-CVE-2025-54080 |
| Debian:14 | exiv2 | 0.28.7+dfsg-2 | DEBIAN-CVE-2025-54080 |
| PyPI | exiv2 | no fix listed | GHSA-496f-x7cq-cq39 |
| PyPI | exiv2 | no fix listed | PYSEC-2026-1354 |
| Ubuntu:22.04:LTS | exiv2 | 0.27.5-3ubuntu1.1 | UBUNTU-CVE-2025-54080 |
| Ubuntu:24.04:LTS | exiv2 | 0.27.6-1ubuntu0.1 | UBUNTU-CVE-2025-54080 |
| Ubuntu:25.10 | exiv2 | 0.28.5+dfsg-1ubuntu0.1 | UBUNTU-CVE-2025-54080 |
Affected products (as reported)
Weakness: CWE-125 · Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-496f-x7cq-cq39 x_refsource_CONFIRM
- https://github.com/Exiv2/exiv2/commit/e737332427711f15bcdc4e903203d6b7493eaec0 x_refsource_MISC