RUSTSEC-2025-0022

Source
https://rustsec.org/advisories/RUSTSEC-2025-0022
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2025-0022.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2025-0022
Published
2025-04-04T12:00:00Z
Modified
2025-04-04T13:49:29Z
Summary
Use-After-Free in `Md::fetch` and `Cipher::fetch`
Details

When a Some(...) value was passed to the properties argument of either of these functions, a use-after-free would result.

In practice this would nearly always result in OpenSSL treating the properties as an empty string (due to CString::drop's behavior).

The maintainers thank quitbug for reporting this vulnerability to us.

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

Affected packages

crates.io / openssl

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.10.39
Fixed
0.10.72

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [
            "openssl::cipher::Cipher::fetch",
            "openssl::md::Md::fetch"
        ],
        "arch": []
    }
}

Database specific

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