GHSA-px9g-8hgv-jvg2

Suggest an improvement
Source
https://github.com/advisories/GHSA-px9g-8hgv-jvg2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-px9g-8hgv-jvg2/GHSA-px9g-8hgv-jvg2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-px9g-8hgv-jvg2
Aliases
Published
2022-10-06T19:53:39Z
Modified
2026-07-08T06:27:46Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
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:

Database specific
{
    "cwe_ids":  [
        "CWE-400",
        "CWE-835"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-10-06T19:53:39Z",
    "nvd_published_at":  "2021-01-06T02:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

crates.io / kamadak-exif

Package

Name
kamadak-exif
View open source insights on deps.dev
Purl
pkg:cargo/kamadak-exif

Affected ranges

Type
SEMVER
Events
Introduced
0.5.2
Fixed
0.5.3

Affected versions

0.*
0.5.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-px9g-8hgv-jvg2/GHSA-px9g-8hgv-jvg2.json"