Advisory

GHSA-px9g-8hgv-jvg2

Also known as: CVE-2021-21235, RUSTSEC-2021-0143

Summary

kamadak-exif vulnerable to Infinite loop when parsing PNG files

Details

Impact
Reader::read_from_container can cause an infinite loop when a crafted PNG file is given.

Patches
Version 0.5.3 includes the fix.

Workarounds
No workaround is available.
Applications that do not pass files with the PNG signature to Reader::read_from_container are not affected.

References

For more information
If you have any questions or comments about this advisory:

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-10-06 19:53 UTC
Modified
2026-07-08 06:27 UTC

Affected packages and fixes

kamadak-exif

crates.io · All systems

Affected

  • introduced 0.5.2, fixed 0.5.3 (semver)

Fixed versions

0.5.3

Fix

  • Fixed version 0.5.3
    cargo update -p kamadak-exif --precise 0.5.3

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences