CVE-2021-21235

MEDIUM

kamadak-exif <0.5.2 - Buffer Overflow

Title source: llm
STIX 2.1

Description

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.

References (3)

Core 3
Core References
Product, Third Party Advisory x_refsource_misc
https://crates.io/crates/kamadak-exif

Scores

CVSS v3 5.7
EPSS 0.0044
EPSS Percentile 63.1%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H

Details

CWE
CWE-400 CWE-835
Status published
Products (2)
crates.io/kamadak-exif 0.5.2 - 0.5.3crates.io
kamadak-exif_project/kamadak-exif 0.5.2
Published Jan 06, 2021
Tracked Since Feb 18, 2026