{"id":"GHSA-px9g-8hgv-jvg2","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* \u003chttps://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2\u003e\n* \u003chttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-21235\u003e\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)","aliases":["CVE-2021-21235","RUSTSEC-2021-0143"],"modified":"2026-07-08T06:27:46.767271337Z","published":"2022-10-06T19:53:39Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-10-06T19:53:39Z","nvd_published_at":"2021-01-06T02:15:00Z","cwe_ids":["CWE-400","CWE-835"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21235"},{"type":"WEB","url":"https://github.com/kamadak/exif-rs/commit/1b05eab57e484cd7d576d4357b9cda7fdc57df8c"},{"type":"WEB","url":"https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48"},{"type":"WEB","url":"https://crates.io/crates/kamadak-exif"},{"type":"PACKAGE","url":"https://github.com/kamadak/exif-rs"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0143.html"}],"affected":[{"package":{"name":"kamadak-exif","ecosystem":"crates.io","purl":"pkg:cargo/kamadak-exif"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.5.2"},{"fixed":"0.5.3"}]}],"versions":["0.5.2"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-px9g-8hgv-jvg2/GHSA-px9g-8hgv-jvg2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"}]}