GHSA-ppjr-267j-5p9x

Suggest an improvement
Source
https://github.com/advisories/GHSA-ppjr-267j-5p9x
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-ppjr-267j-5p9x/GHSA-ppjr-267j-5p9x.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-ppjr-267j-5p9x
Aliases
Published
2023-03-20T21:11:58Z
Modified
2023-11-08T04:21:46Z
Summary
NULL pointer derefernce in `stb_image`
Details

A bug in error handling in the stb_image C library could cause a NULL pointer dereference when attempting to load an invalid or unsupported image file. This is fixed in version 0.2.5 and later of the stb_image Rust crate, by patching the C code to correctly handle NULL pointers.

Database specific
{
    "cwe_ids":  [
        "CWE-476"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2023-03-20T21:11:58Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

crates.io / stb_image

Package

Name
stb_image
View open source insights on deps.dev
Purl
pkg:cargo/stb_image

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.2.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-ppjr-267j-5p9x/GHSA-ppjr-267j-5p9x.json"