{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-21235","published":"2021-01-06T02:15:12.967000Z","last_modified":"2026-06-17T03:35:05.807000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-400","CWE-835"],"cpes":[{"criteria":"cpe:2.3:a:kamadak-exif_project:kamadak-exif:0.5.2:*:*:*:*:rust:*:*","part":"a","vendor":"kamadak-exif_project","product":"kamadak-exif","version":"0.5.2"}],"cpes_truncated":false,"vendors":["kamadak-exif_project"],"products":["kamadak-exif_project/kamadak-exif"],"epss":{"score":0.01534,"percentile":0.75168,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-px9g-8hgv-jvg2","ecosystem":"crates.io","name":"kamadak-exif","purl":"pkg:cargo/kamadak-exif","ranges":[{"introduced":"0.5.2","fixed":"0.5.3"}],"versions":["0.5.2"],"versions_truncated":false},{"advisory":"RUSTSEC-2021-0143","ecosystem":"crates.io","name":"kamadak-exif","purl":"pkg:cargo/kamadak-exif","ranges":[{"introduced":"0.5.2","fixed":"0.5.3"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":54,"links":{"html_es":"/es/cve/CVE-2021-21235/","html_en":"/en/cve/CVE-2021-21235/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-21235","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-21235"},"untrusted":{"vendor_name":"Kamadak-exif Project","product_name":"Kamadak-exif","desc_en":"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.","affected":[{"untrusted_vendor":"kamadak","untrusted_product":"exif-rs","versions":[]}],"references":[{"url":"https://crates.io/crates/kamadak-exif","tags":["Product","Third Party Advisory"]},{"url":"https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2","tags":["Third Party Advisory"]}]}}