Infinite loop in parsing PNG files in
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-400.
Summary
kamadak-exif is an exif parsing library written in pure Rust. In kamadak-exif version 0.5.2, there is an infinite loop in parsing crafted PNG files. Specifically, reader::read_from_container can cause an infinite loop when a crafted PNG file is given. This is fixed in version 0.5.3. No workaround is available. Applications that do not pass files with the PNG signature to Reader::read_from_container are not affected.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| kamadak | exif-rs | = 0.5.2 | — | No fix listed | CNA |
| — | kamadak-exif (crates.io) | 0.5.2 to before 0.5.3 | 0.5.3 | Patch available | GHSA-px9g-8hgv-jvg2 |
- exif-rs Vendorkamadak Affected = 0.5.2 Fixed in — No fix listed CNA
- kamadak-exif (crates.io) Vendor— Affected 0.5.2 to before 0.5.3 Fixed in 0.5.3 Patch available GHSA-px9g-8hgv-jvg2
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:kamadak-exif_project:kamadak-exif:0.5.2:*:*:*:*:rust:*:* | 0.5.2 | Vulnerable | Kamadak-exif Project |
- cpe:2.3:a:kamadak-exif_project:kamadak-exif:0.5.2:*:*:*:*:rust:*:* Versions 0.5.2 Vulnerable ·Kamadak-exif Project
Remediation
- Fix · GHSA-px9g-8hgv-jvg2 kamadak-exif (crates.io) Fixed in 0.5.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-21235
- 2026-10-03 Alias added: GHSA-px9g-8hgv-jvg2
References
Advisory 3
Sources
- CVE-2021-21235 · CVE Program
- CVE-2021-21235 · NVD
- FIRST EPSS
- GHSA-px9g-8hgv-jvg2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences