Skip to content
Fencer Intel
medium —

GHSA-ppjr-267j-5p9x json

NULL pointer derefernce in `stb_image`

published 3y ago modified 3y ago also RUSTSEC-2023-0021

cvss
—
not scored
cisa kev
Not listed
not in CISA's catalog
epss
—
no score, EPSS covers CVEs only
public exploits
0
none known

Summary

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.

Patch / fix

  • crates.io stb_image 0.2.5

Is GHSA-ppjr-267j-5p9x in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Affected packages

ecosystem package affected fixed in
crates.io stb_image
<0.2.5
>=0.0.0-0, <0.2.5
0.2.5

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.