{"id":"GHSA-px9g-8hgv-jvg2","revision":"25d15da0f1e14799960be1f22997a447","records":[{"revision":"25d15da0f1e14799960be1f22997a447","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-px9g-8hgv-jvg2","aliases":["CVE-2021-21235","RUSTSEC-2021-0143"],"title":"kamadak-exif vulnerable to Infinite loop when parsing PNG files","description":"### 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)","state":0,"publishedAt":"2022-10-06T19:53:39+00:00","modifiedAt":"2026-07-08T06:27:46.7672713+00:00","affected":[{"ecosystem":"crates.io","name":"kamadak-exif","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.5.2"},{"kind":"fixed","version":"0.5.3"}]}],"versions":["0.5.2"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2","https://nvd.nist.gov/vuln/detail/CVE-2021-21235","https://github.com/kamadak/exif-rs/commit/1b05eab57e484cd7d576d4357b9cda7fdc57df8c","https://github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48","https://crates.io/crates/kamadak-exif","https://github.com/kamadak/exif-rs","https://rustsec.org/advisories/RUSTSEC-2021-0143.html"],"sourceUrl":"https://github.com/advisories/GHSA-px9g-8hgv-jvg2","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-px9g-8hgv-jvg2","identifiers":["GHSA-px9g-8hgv-jvg2","CVE-2021-21235","RUSTSEC-2021-0143"]},"retained":false,"historicalAffected":[]}],"coverage":[]}