{"id":"GHSA-ppjr-267j-5p9x","aliases":["GHSA-ppjr-267j-5p9x","RUSTSEC-2023-0021"],"related":[],"kind":"vulnerability","state":"published","title":"NULL pointer derefernce in `stb_image`","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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"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.\n\nThank you to GitHub user 0xdd96 for finding and fixing this vulnerability.","format":"markdown","source":"rustsec"}],"published":"2023-03-19T12:00:00.000Z","modified":"2023-11-08T04:21:46.866Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.5"}],"ecosystem":"crates.io","package":"stb_image","purl":"pkg:cargo/stb_image","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.2.5"}],"ecosystem":"crates.io","package":"stb_image","purl":"pkg:cargo/stb_image","source":"rustsec"}],"references":[{"url":"https://github.com/servo/rust-stb-image/pull/102","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/servo/rust-stb-imag","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0021.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/stb_image","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-ppjr-267j-5p9x","url":"https://github.com/advisories/GHSA-ppjr-267j-5p9x","licence":"CC-BY-4.0","modified":"2023-11-08T04:21:46.866Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0021","url":"https://rustsec.org/advisories/RUSTSEC-2023-0021.html","licence":"CC0-1.0","modified":"2023-11-08T04:21:46.866Z"}],"updatedAt":"2026-11-25T22:56:43.142Z"}