CVE-2021-21235 MEDIUM

CVE-2021-21235: Infinite loop in parsing PNG files in

Vendor Kamadak
Product exif-rs
Weakness CWE-400
Published January 6, 2021
Last update August 3, 2024

CVSS base score

5.7/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction Required
Confidentiality None
Integrity None

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:N/A:H

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

January 6, 2021 CVE published
August 3, 2024 Record updated