{"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":"### Impact\nReader::read_from_container can cause an infinite loop when a crafted PNG file is given.\n\n### Patches\nVersion 0.5.3 includes the fix.\n\n### Workarounds\nNo workaround is available.\nApplications that do not pass files with the PNG signature to Reader::read_from_container are not affected.\n\n### References\n* <https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2>\n* <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21235>\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [github.com/kamadak/exif-rs](https://github.com/kamadak/exif-rs)","published":"2021-01-06T02:15:12.967Z","modified":"2026-10-20T10:54:28.158422428Z","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"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21235"},{"type":"WEB","url":"https://github.com/kamadak/exif-rs/commit/1b05eab57e484cd7d576d4357b9cda7fdc57df8c"},{"type":"PACKAGE","url":"https://github.com/kamadak/exif-rs"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0143.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-20T10:54:28.158422428Z"}}