{"id":"RUSTSEC-2023-0021","summary":"NULL pointer dereference 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.\n\nThank you to GitHub user 0xdd96 for finding and fixing this vulnerability.","aliases":["GHSA-ppjr-267j-5p9x"],"modified":"2023-11-08T04:21:46.866404Z","published":"2023-03-19T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/stb_image"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2023-0021.html"},{"type":"WEB","url":"https://github.com/servo/rust-stb-image/pull/102"}],"affected":[{"package":{"name":"stb_image","ecosystem":"crates.io","purl":"pkg:cargo/stb_image"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.2.5"}]}],"ecosystem_specific":{"affects":{"os":[],"arch":[],"functions":[]},"affected_functions":null},"database_specific":{"informational":null,"categories":["memory-corruption"],"cvss":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2023-0021.json"}}],"schema_version":"1.7.3"}