RUSTSEC-2024-0357

Source
https://rustsec.org/advisories/RUSTSEC-2024-0357
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2024-0357.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2024-0357
Published
2024-07-21T12:00:00Z
Modified
2024-07-21T17:28:48Z
Summary
`MemBio::get_buf` has undefined behavior with empty buffers
Details

Previously, MemBio::get_buf called slice::from_raw_parts with a null-pointer, which violates the functions invariants, leading to undefined behavior. In debug builds this would produce an assertion failure. This is now fixed.

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

Affected packages

crates.io / openssl

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.10.66

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "openssl::bio::MemBio::get_buf"
        ],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": null,
    "categories": []
}