RUSTSEC-2023-0021

Source
https://rustsec.org/advisories/RUSTSEC-2023-0021
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2023-0021.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2023-0021
Aliases
Published
2023-03-19T12:00:00Z
Modified
2023-11-08T04:21:46.866404Z
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.

Thank you to GitHub user 0xdd96 for finding and fixing this vulnerability.

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / stb_image

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.2.5

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": [
        "memory-corruption"
    ]
}