Security mailing lists by PureSourceCode

RUSTSEC-2023-0021

MEDIUM

NULL pointer derefernce in `stb_image`

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.

Published
19 Mar 2023
Last modified
8 Nov 2023
Weakness
CWE-476
Also known as
GHSA-ppjr-267j-5p9x
Sources
OSV GHSA-ppjr-267j-5p9xJSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io stb_image < 0.2.5 0.2.5
OSV crates.io stb_image >= 0.0.0-0, < 0.2.5 0.2.5

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Mar 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Mar 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.