{"id":"CVE-2026-41681","published":"2026-04-24T17:19:15Z","modified":"2026-04-24T17:42:54Z","title":"rust-openssl: MdCtxRef::digest_final() writes past caller buffer with no length check","vendor":"rust-openssl","product":"rust-openssl","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00644,"percentile":0.45458,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-ghm9-cr32-g9qj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rust-openssl/rust-openssl/pull/2608","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-openssl/rust-openssl/commit/826c3888b77add418b394770e2b2e3a72d9f92fe","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78","tags":["x_refsource_MISC"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.09},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"rust-openssl","affectedVersions":[{"vendor":"rust-openssl","product":"rust-openssl","versions":[">= 0.10.39, < 0.10.78"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-04-24T17:42:49.447277Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"openssl","vulnerableRanges":[">=0.10.39, <0.10.78"],"patched":["0.10.78"],"from":["GHSA-ghm9-cr32-g9qj","RUSTSEC-2026-0475"],"provenance":"source"}],"summary":{"text":"The flaw is in the rust-openssl crate's MdCtxRef::digest_final() method, which, due to how EVP_DigestFinal() always writes the full digest size, can write past the end of a caller-supplied output buffer that is smaller than the digest. An attacker who can trigger the call with such a buffer can cause a write past the buffer's end, usually corrupting the stack, and this is reachable from safe Rust code without requiring authentication, user interaction, or any special configuration beyond the affected code path being invoked.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:06Z"},"euvd":{"id":"EUVD-2026-25586","exploited":false,"provenance":"source"}}