Skip to content
OpenAdvisories
Medium · 5.7 CVE-2021-21235 EUVD-2022-7148GHSA-px9g-8hgv-jvg2RUSTSEC-2021-0143

Infinite loop in parsing PNG files in

Published Jan 6, 2021 · Updated Aug 3, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
kamadak exif-rs = 0.5.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-kamadak-exif No fix yet —
Ubuntu 26.04 LTS rust-kamadak-exif No fix yet —
Ubuntu 25.10 rust-kamadak-exif No fix yet —
Ubuntu 24.04 LTS rust-kamadak-exif No fix yet —
Ubuntu 22.04 LTS rust-kamadak-exif No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS rust-kamadak-exif No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io kamadak-exif >= 0.5.2, < 0.5.3 0.5.3 GHSA-px9g-8hgv-jvg2

References