CVE-2025-54080 Exiv2 Segmentation Faults in Exiv2::EpsImage::writeMetadata() via crafted EPS file
An out-of-bounds read in Exiv2 allows attackers to cause a denial of service via a crafted EPS file during metadata writing.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-54080?
CVE-2025-54080 is a low-severity denial of service vulnerability in Exiv2 Exiv2, published on 29 Aug 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
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.
Weakness: CWE-125
Which versions are affected by CVE-2025-54080?
3 open source packages ship an affected version, including exiv2 and Exiv2. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
exiv2 PyPI | All versions to 0.17.3 | None |
exiv2 PyPI | All versions to 0.17.3 | None |
Exiv2 PyPI | All versions to 0.17.3 | None |
Products include Exiv2 Exiv2.
How do I fix CVE-2025-54080?
Upgrade to a fixed version.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-54080 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-54080 exists.
Other vulnerabilities in Exiv2 Exiv2
Sources
Also known as AZL-66711, AZL-66764, CLSA-2025-1766499581, CLSA-2025-1766500438, DEBIAN-CVE-2025-54080, GHSA-496f-x7cq-cq39 and 5 more.