All reports
Medium

kamadak-exif vulnerable to Infinite loop when parsing PNG files

Affected versions

Version ranges need review.

Rust / Cargokamadak-exif
Affected versions
>=0.5.2 <0.5.3
Fixed version
0.5.3
Rust / Cargokamadak-exif
Affected versions
= 0.5.2
Fixed version
0.5.3

Exploitation

CVE-2021-21235

Probability of exploitation in the next 30 days: 1.53%

FIRST EPSS · 2026-11-23

Description

Impact

Reader::read_from_container can cause an infinite loop when a crafted PNG file is given.

Patches

Version 0.5.3 includes the fix.

Workarounds

No workaround is available. Applications that do not pass files with the PNG signature to Reader::read_from_container are not affected.

References
For more information

If you have any questions or comments about this advisory:

Links