Security mailing lists by PureSourceCode

CVE-2026-41681

HIGH 8.1CVSS 4.0

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

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.39 to before 0.10.78, 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. This vulnerability is fixed in 0.10.78.

Published
24 Apr 2026
Last modified
11 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-121
Also known as
GHSA-ghm9-cr32-g9qjRUSTSEC-2026-0475
Sources
NVDJSONOSV GHSA-ghm9-cr32-g9qjJSONOSV RUSTSEC-2026-0475JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 HIGH 8.1 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD rust-openssl_project rust-openssl
cpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:*
>= 0.10.39, < 0.10.78 0.10.78
OSV crates.io openssl >= 0.10.39, < 0.10.78 0.10.78

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Apr 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.