Advisory record · GHSA-px9g-8hgv-jvg2

kamadak-exif vulnerable to Infinite loop when parsing PNG files

CVSS 5.7 MediumEPSS 0.015 · 75th percentile

Published by the GitHub Advisory Database at 6 Oct 2022, 19:53 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
kamadak-exifcrates.io>=0.5.2, <0.5.30.5.3
Identifiers
GHSA-px9g-8hgv-jvg2 · CVE-2021-21235 · RUSTSEC-2021-0143
Weakness (CWE)
CWE-400 · CWE-835
Published
6 Oct 2022
Updated
8 Jul 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

kamadak-exif versions 0.5.2 before 0.5.3 can enter an infinite loop when Reader::read_from_container parses a crafted PNG file. An attacker who can supply such a file to an affected application can cause it to hang. Upgrade to kamadak-exif 0.5.3, which includes the fix. The source lists no workaround, though applications that never pass PNG files to this function are not affected.

Written 8 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
5.7 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.015, the 75th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:18 UTC First seen by agentprime
  2. 31 Oct 2026, 15:18 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.