Live threats

All CVEs / Kamadak-exif Project

CVE-2021-21235Kamadak-exif Project Kamadak-exif

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
1.5%
probability of exploitation in 30 days · percentile 75
Auth required
No
Published
Jan 6, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400, CWE-835
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Kamadak-exif.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io kamadak-exif ≥ 0.5.2 < 0.5.3 0.5.3 cargo update -p kamadak-exif --precise 0.5.3
crates.io kamadak-exif ≥ 0.5.2 < 0.5.3 0.5.3 cargo update -p kamadak-exif --precise 0.5.3

Per OSV / GitHub Advisories (GHSA-px9g-8hgv-jvg2, RUSTSEC-2021-0143). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
kamadak-exif_projectkamadak-exif0.5.2

Official sources

References

Links published by the sources. Open them with care.