Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. openssl
  4. ›
  5. CVE-2026-41681

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

April 22, 2026 (updated April 27, 2026)

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.

References

  • github.com/advisories/GHSA-ghm9-cr32-g9qj
  • github.com/rust-openssl/rust-openssl
  • github.com/rust-openssl/rust-openssl/commit/826c3888b77add418b394770e2b2e3a72d9f92fe
  • github.com/rust-openssl/rust-openssl/pull/2608
  • github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78
  • github.com/rust-openssl/rust-openssl/security/advisories/GHSA-ghm9-cr32-g9qj
  • nvd.nist.gov/vuln/detail/CVE-2026-41681

Code Behaviors & Features

Detect and mitigate CVE-2026-41681 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.10.39 before 0.10.78

Fixed versions

  • 0.10.78

Solution

Upgrade to version 0.10.78 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-121: Stack-based Buffer Overflow

Source file

cargo/openssl/CVE-2026-41681.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:33 +0000.