# CVE-2025-55304: Exiv2 has quadratic performance in ICC profile parsing in JpegBase::readMetadata

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** LOW 1.8
- **CVSS:** 1.8 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: Present; Privileges required: None; User interaction: Active; Confidentiality impact: None; Integrity impact: None; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** Yes (see exploit references)
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **CWE:** CWE-407
- **Aliases:** GHSA-m54q-mm9w-fp6g, PYSEC-2026-1355
- **Published:** 2025-08-29T14:59:37.000Z
- **Modified:** 2026-10-19T17:10:00.173Z

## Who should check

- Projects that depend on PyPI package exiv2 (\<= 0.17.3)
- Anyone running exiv2 \< 0.28.6

## 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 and fixed versions

- PyPI `exiv2`: affected \<= 0.17.3; fixed no fix listed yet (osv)
- exiv2: \< 0.28.6 (cvelist)

## Mitigation

- Upgrade exiv2 to 0.28.6 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-55304. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-55304.md
Affected: exiv2 <= 0.17.3
Fixed in: exiv2 0.28.6

Steps:
1. Search this machine and project for exiv2 (PyPI), exiv2: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-55304 being exploited?

There is no confirmed exploitation: CVE-2025-55304 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-55304?

Low: CVSS 1.8 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-55304?

exiv2 \<= 0.17.3.

### Is there a fix for CVE-2025-55304?

Yes. Fixed in exiv2 0.28.6. Upgrade exiv2 to 0.28.6 or later.

### How do I check if I'm affected by CVE-2025-55304?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/Exiv2/exiv2/security/advisories/GHSA-m54q-mm9w-fp6g>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-55304>
- vendor: <https://github.com/advisories/GHSA-m54q-mm9w-fp6g>
- patch: <https://github.com/Exiv2/exiv2/pull/3335>
- patch: <https://github.com/Exiv2/exiv2/pull/3345>
- exploit: <https://github.com/Exiv2/exiv2/issues/3333>
- other: <https://github.com/Exiv2/exiv2>
- other: <https://pypi.org/project/exiv2>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-55304>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-m54q-mm9w-fp6g> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2026-1355> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-55304> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-55304>
