Advisory

GHSA-ghm9-cr32-g9qj

Also known as: CVE-2026-41681, RUSTSEC-2026-0475

Summary

rust-openssl: rustMdCtxRef::digest_final() writes past caller buffer with no length check

Details

EVP_DigestFinal() always writes EVP_MD_CTX_size(ctx) to the out buffer. If out is smaller than that, MdCtxRef::digest_final() writes past its end, usually corrupting the stack. This is reachable from safe Rust.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-04-22 21:05 UTC
Modified
2026-11-10 14:10 UTC

Affected packages and fixes

openssl

crates.io · All systems

Affected

  • introduced 0.10.39, fixed 0.10.78 (semver)

Fixed versions

0.10.78

Fix

  • Fixed version 0.10.78
    cargo update -p openssl --precise 0.10.78

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences