{"id":"CVE-2021-21235","aliases":["GHSA-px9g-8hgv-jvg2","RUSTSEC-2021-0143"],"url":"https://o3.security/vulnerability/CVE-2021-21235","summary":"kamadak-exif vulnerable to Infinite loop when parsing PNG files","details":"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.","published":"2021-01-06T02:15:12.967Z","modified":"2026-07-09T10:52:21.469199Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},"epss":{"score":0.01515,"percentile":0.72163,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"kamadak-exif","fixedVersion":"0.5.3"}],"fix":{"url":"https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48","label":"kamadak/exif-rs@f21df24"},"references":[{"type":"ADVISORY","url":"https://crates.io/crates/kamadak-exif"},{"type":"ADVISORY","url":"https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2"},{"type":"FIX","url":"https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-09T10:52:21.469199Z"}}