Read the docs
TI-2021-04338 Aliases CVE-2021-21235GHSA-px9g-8hgv-jvg2

Infinite loop in parsing PNG files in

Priority LOW 32CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
Required
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-400.

Summary

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.

Why it matters now

EPSS 0.01534 74th percentileScored 2026-11-07
Fix Fixed kamadak-exif (crates.io): 0.5.3

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
kamadakexif-rs= 0.5.2—No fix listedCNA
—kamadak-exif (crates.io)0.5.2 to before 0.5.30.5.3Patch availableGHSA-px9g-8hgv-jvg2
  • exif-rs Vendorkamadak Affected = 0.5.2 Fixed in — No fix listed CNA
  • kamadak-exif (crates.io) Vendor— Affected 0.5.2 to before 0.5.3 Fixed in 0.5.3 Patch available GHSA-px9g-8hgv-jvg2

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:kamadak-exif_project:kamadak-exif:0.5.2:*:*:*:*:rust:*:*0.5.2VulnerableKamadak-exif Project
  • cpe:2.3:a:kamadak-exif_project:kamadak-exif:0.5.2:*:*:*:*:rust:*:* Versions 0.5.2 Vulnerable ·Kamadak-exif Project

Remediation

  • Fix · GHSA-px9g-8hgv-jvg2 kamadak-exif (crates.io) Fixed in 0.5.3 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2021-21235
  2. 2026-10-03 Alias added: GHSA-px9g-8hgv-jvg2

References

Sources