Unratedcrates.ioPublished
NULL pointer derefernce in stb_image
GHSA-ppjr-267j-5p9x
- Affected
- crates.io stb_image < 0.2.5
- Fixed in
- 0.2.5· Vendor fix available
- Issue
- A bug in error handling in the stbimage 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 stbimage Rust crate, by patching the C code to correctly handle NULL pointers.
Recommended action: Upgrade to 0.2.5 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.