All CVEs / Kamadak-exif Project
CVE-2021-21235Kamadak-exif Project Kamadak-exif
Medium 6.5 No auth needed
Follow: this CVE · Kamadak-exif Project · Kamadak-exif Project Kamadak-exif We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Kamadak-exif.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| kamadak-exif_project | kamadak-exif | 0.5.2 |
Official sources
References
Links published by the sources. Open them with care.
- crates.io Product Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory