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)
EPSS: 0.015 (71.9th percentile) — read the EPSS interpretation.
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.
Affected products
- Kamadak Exif-rs — versions = 0.5.2
- Kamadak-exif_project Kamadak-exif — versions 0.5.2
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory)
- security-advisories@github.com (Product, Third Party Advisory, x_refsource_MISC)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
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.