# CVE-2026-41681: rust-openssl: MdCtxRef::digest\_final() writes past caller buffer with no length check

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0.10.78 (CNA); fix release not confirmed
- Status: published
- Published: 2026-04-24 · Modified: 2026-04-24
- Aliases: UBUNTU-CVE-2026-41681, DEBIAN-CVE-2026-41681, CGA-2hfm-7xv2-mv4h, CGA-633p-j3m2-99vh, CGA-f96p-fx7j-78pc, CGA-hvp9-c9g3-2p57, CGA-mc79-rc3r-mv9p, CGA-p3cp-v435-cwq7, CGA-rv93-r34w-rxm3, CGA-x627-cr3g-pm65, CGA-2rm7-68hj-qh98, CGA-33g7-v6r6-6jwc, CGA-47xf-fj3c-hx6r, CGA-5v85-hpm8-xcwh, CGA-63pp-g4w5-rw28, CGA-6r96-xq76-53fg, CGA-757v-r4fx-9qhv, CGA-7c2m-4fm9-rxxr, CGA-7qq9-ch9c-8hv5, CGA-8fmw-98jg-4p5v, CGA-8pj3-9gr5-7frm, CGA-9rp5-prw4-9v86, CGA-fx94-f4g3-q46j, CGA-j9fp-v7vf-2chx, CGA-jvqf-rw7c-fwp5, CGA-m523-j9qp-7435, CGA-mg77-m7r8-2f27, CGA-mq8c-5cvp-69w2, CGA-mr6w-xrcr-g5fv, CGA-pjjq-qp43-76mw, GHSA-ghm9-cr32-g9qj, CGA-q723-wfv7-376c, CGA-rmvp-v3xr-f97g, CGA-wr3p-4fr8-5wvf, CGA-x9j7-pf5q-p82g, CGA-xhcg-v3jv-5q4x, CGA-xm4v-5rxx-7w7v, RUSTSEC-2026-0475
- Record: https://cvemate.com/vulnerability/CVE-2026-41681 · JSON: https://cvemate.com/vulnerability/CVE-2026-41681/json

## 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.
```

## Signals

- CVSS: 8.1 high (v4.0, CVE.org) 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
- EPSS: 0.373%, percentile 33.341%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 32)

- chainguard bootc-binary (Chainguard): \< 1.10.0-r5
- chainguard deno (Chainguard): \< 2.7.13-r0
- chainguard guestproxyagent (Chainguard): \< 1.0.43-r0 \| \< 1.0.42-r2
- chainguard komodo-cli (Chainguard): \< 2.1.2-r2
- chainguard komodo-core (Chainguard): \< 2.1.2-r2
- chainguard komodo-periphery (Chainguard): \< 2.1.2-r2
- chainguard rpm-sequoia (Chainguard): \< 1.10.1-r10
- chainguard rustls-openssl-client (Chainguard): \< 1.0.0-r4
- chainguard rustup (Chainguard): \< 1.29.0-r5
- chainguard sccache (Chainguard): \< 0.14.0-r4
- chainguard sdp-identity-service (Chainguard): \< 1.3.10-r5
- chainguard sentry-cli (Chainguard): \< 3.4.0-r0
- chainguard sqlx (Chainguard): \< 0.8.6-r5
- chainguard typst (Chainguard): \< 0.14.2-r7
- chainguard valkey-ldap (Chainguard): \< 1.0.0-r5
- chainguard vector (Chainguard): \< 0.55.0-r1
- chainguard ztunnel-fips-1.26 (Chainguard): All versions (No fix recorded)
- chainguard ztunnel-fips-1.27 (Chainguard): \< 1.27.9-r7
- chainguard ztunnel-fips-1.28 (Chainguard): \< 1.28.5-r2
- chainguard ztunnel-fips-1.29 (Chainguard): \< 1.29.1-r3

## References

- <https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-ghm9-cr32-g9qj>
- <https://github.com/rust-openssl/rust-openssl/pull/2608>
- <https://github.com/rust-openssl/rust-openssl/commit/826c3888b77add418b394770e2b2e3a72d9f92fe>
- <https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78>
- <https://ubuntu.com/security/CVE-2026-41681>
- <https://www.cve.org/CVERecord?id=CVE-2026-41681>
- <https://security-tracker.debian.org/tracker/CVE-2026-41681>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41681.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41681>
- <https://github.com/rust-openssl/rust-openssl>
- <https://crates.io/crates/openssl>
- <https://rustsec.org/advisories/RUSTSEC-2026-0475.html>

---

Data as of 2026-12-05T08:09:15.908Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
