{"cve":"CVE-2021-21235","nvd":{"published":"2021-01-06T02:15:12.967","modified":"2026-06-17T03:35:05.807","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":6.5},"cwes":["CWE-835","CWE-400"],"references":["https://crates.io/crates/kamadak-exif","https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48","https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2","https://crates.io/crates/kamadak-exif","https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48"],"products":["kamadak-exif_project:kamadak-exif"],"source":"nvd","synced_at":"2026-10-19T21:12:09.559580076+00:00"},"epss":{"cve":"CVE-2021-21235","score":0.01534,"percentile":0.74822,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-px9g-8hgv-jvg2","url":"https://osv.dev/vulnerability/GHSA-px9g-8hgv-jvg2","summary":"kamadak-exif vulnerable to Infinite loop when parsing PNG files","modified":"2026-07-08T06:27:46.767271337Z","packages":[{"ecosystem":"crates.io","name":"kamadak-exif","purl":"pkg:cargo/kamadak-exif","ranges":[">=0.5.2 <0.5.3"],"fixed":["0.5.3"]}]},{"id":"RUSTSEC-2021-0143","url":"https://osv.dev/vulnerability/RUSTSEC-2021-0143","summary":"kamadak-exif DoS with untrusted PNG data","modified":"2023-11-08T04:04:38.884291Z","packages":[{"ecosystem":"crates.io","name":"kamadak-exif","purl":"pkg:cargo/kamadak-exif","ranges":[">=0.5.2 <0.5.3"],"fixed":["0.5.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}