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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | rust-kamadak-exif | No fix yet | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | kamadak-exif | >= 0.5.2, < 0.5.3 | 0.5.3 | GHSA-px9g-8hgv-jvg2 |