RUSTSEC-2026-0475

Source
https://rustsec.org/advisories/RUSTSEC-2026-0475
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0475.json
JSON Data
https://api.test.osv.dev/v1/vulns/RUSTSEC-2026-0475
Aliases
Published
2026-04-19T12:00:00Z
Modified
2026-11-10T14:00:04Z
Summary
Buffer overflow in `MdCtxRef::digest_final`
Details

MdCtxRef::digest_final passed the caller's output slice to OpenSSL's EVP_DigestFinal without checking its length. EVP_DigestFinal always writes the full digest (EVP_MD_CTX_size bytes), so an output slice shorter than the digest is overrun. With a stack buffer this usually corrupts the stack. The overflow is reachable from safe code.

MdCtxRef was added in 0.10.39. 0.10.78 checks the slice length first and returns an error when the slice is too short for the digest.

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

Affected packages

crates.io / openssl

Package

Name
openssl
View open source insights on deps.dev
Purl
pkg:cargo/openssl

Affected ranges

Type
SEMVER
Events
Introduced
0.10.39
Fixed
0.10.78

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "arch": [],
        "functions": [
            "openssl::md_ctx::MdCtxRef::digest_final"
        ],
        "os": []
    }
}

Database specific

categories
[
    "memory-corruption"
]
cvss
null
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0475.json"