{"id":"CVE-2021-21235","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.","aliases":["GHSA-px9g-8hgv-jvg2","RUSTSEC-2021-0143"],"modified":"2026-07-09T10:52:21.469199Z","published":"2021-01-06T02:15:12.967Z","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"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/kamadak/exif-rs","events":[{"introduced":"0807862f0f8b77293a4ee41f37ea0a65252ecd05"},{"last_affected":"0807862f0f8b77293a4ee41f37ea0a65252ecd05"},{"fixed":"f21df24616ea611c5d5d0e0e2f8042eb74d5ff48"}],"database_specific":{"cpe":"cpe:2.3:a:kamadak-exif_project:kamadak-exif:0.5.2:*:*:*:*:rust:*:*","extracted_events":[{"introduced":"0.5.2"},{"last_affected":"0.5.2"}],"source":["CPE_STRING","REFERENCES"]}}],"versions":["0.5.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21235.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}