Resource exhaustion in Kamadak Exif-Rs
CVE-2021-21235
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.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.7 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.015 (73.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 74th percentile — 73.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.015 · newest: 0.015 · change: 0.000
Affected products
- Kamadak Exif-Rs — versions = 0.5.2
- Kamadak-Exif Project — versions 0.5.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/kamadak/exif-rs/security/advisories/GHSA-px9g-8hgv-jvg2 (Third Party Advisory)
- crates.io/crates/kamadak-exif (Product, Third Party Advisory)
- github.com/kamadak/exif-rs/commit/f21df24616ea611c5d5d0e0e2f8042eb74d5ff48 (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-21235?
- CVE-2021-21235 is a medium-severity vulnerability in Kamadak Exif-Rs, classified under Uncontrolled Resource Consumption. CVSS score: 5.7/10. Published 2021-01-06.
- How severe is CVE-2021-21235?
- Medium severity. CVSS v3 base score is 5.7 out of 10.
- Is CVE-2021-21235 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.