{"id":"CVE-2021-21235","published":"2021-01-06T01:15:14Z","modified":"2024-08-03T18:09:14Z","title":"Infinite loop in parsing PNG files in","vendor":"kamadak","product":"exif-rs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.7,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01534,"percentile":0.7544,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2","tags":["x_refsource_CONFIRM"]},{"url":"https://crates.io/crates/kamadak-exif","tags":["x_refsource_MISC"]},{"url":"https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48","tags":["x_refsource_MISC"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":15.09},{"name":"CVSS severity","points":3.99}]},"vendorSlug":"kamadak","affectedVersions":[{"vendor":"kamadak","product":"exif-rs","versions":["= 0.5.2"]}],"affected":[{"ecosystem":"crates.io","package":"kamadak-exif","vulnerableRanges":[">=0.5.2, <0.5.3"],"patched":["0.5.3"],"from":["GHSA-px9g-8hgv-jvg2","RUSTSEC-2021-0143"],"provenance":"source"}],"summary":{"text":"The kamadak-exif library (product exif-rs, by kamadak) contains an infinite loop in its PNG parsing path, reachable through reader::read_from_container. An attacker who can get a crafted PNG file to an application that calls Reader::read_from_container can make it hang, which requires network access, low privileges, and user interaction; applications that never pass PNG-signature files to that function are not affected.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:25Z"},"euvd":{"id":"EUVD-2022-7148","exploited":false,"provenance":"source"}}