Vulnerability · Published Aug 29, 2025 · Assigned by GitHub_M
CVE-2025-55304Exiv2 has quadratic performance in ICC profile parsing in JpegBase::readMetadata
Low 1.8
In plain English
A low-severity security flaw in exiv2 from Exiv2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% 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. A denial-of-service was found in Exiv2 version 0.28.5: a quadratic algorithm in the ICC profile parsing code in jpegBase::readMetadata() can cause Exiv2 to run for a long time. The denial-of-service is triggered when Exiv2 is used to read the metadata of a crafted jpg image file. 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-55304 |
| Alpine:v3.23 | exiv2 | 0.28.6-r0 | ALPINE-CVE-2025-55304 |
| Alpine:v3.24 | exiv2 | 0.28.6-r0 | ALPINE-CVE-2025-55304 |
| Debian:12 | exiv2 | no fix listed | DEBIAN-CVE-2025-55304 |
| Debian:13 | exiv2 | no fix listed | DEBIAN-CVE-2025-55304 |
| Debian:14 | exiv2 | 0.28.7+dfsg-2 | DEBIAN-CVE-2025-55304 |
| PyPI | exiv2 | no fix listed | PYSEC-2026-1355 |
| PyPI | exiv2 | no fix listed | GHSA-m54q-mm9w-fp6g |
| Ubuntu:22.04:LTS | exiv2 | no fix listed | UBUNTU-CVE-2025-55304 |
| Ubuntu:22.04:LTS | exiv2 | 0.27.5-3ubuntu1.3 | USN-8103-2 |
| Ubuntu:24.04:LTS | exiv2 | 0.27.6-1ubuntu0.3 | USN-8103-2 |
| Ubuntu:24.04:LTS | exiv2 | no fix listed | UBUNTU-CVE-2025-55304 |
| Ubuntu:25.10 | exiv2 | no fix listed | UBUNTU-CVE-2025-55304 |
| Ubuntu:25.10 | exiv2 | 0.28.5+dfsg-1ubuntu0.3 | USN-8103-2 |
Affected products (as reported)
Weakness: CWE-407 · 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-m54q-mm9w-fp6g x_refsource_CONFIRM
- https://github.com/Exiv2/exiv2/issues/3333 x_refsource_MISC
- https://github.com/Exiv2/exiv2/pull/3335 x_refsource_MISC
- https://github.com/Exiv2/exiv2/pull/3345 x_refsource_MISC