# CVE-2026-41898: rust-openssl: Unchecked callback-returned length in PSK and cookie generate trampolines can cause OpenSSL to leak adjacent memory to the network peer

- Priority: **Prioritise**
- Reason: Severe, CVSS 8.3 (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-41898, DEBIAN-CVE-2026-41898, CGA-8frp-qrmp-7jxv, CGA-925x-v7rc-4crq, CGA-hgh4-rvmx-g5c8, CGA-j95c-gqxm-qpp8, CGA-mh28-24w3-9w4g, CGA-vr7m-fm82-9c2f, CGA-xrrg-grvf-4mpp, CGA-xvhp-gf37-9v74, CGA-27fw-xc7v-2968, CGA-3jpr-fpr3-4frh, CGA-6225-cg76-qjg3, CGA-773h-83gr-jx2h, CGA-7rrc-7cfg-xv5g, CGA-8j8h-3v6c-x459, CGA-97h9-794g-89p7, CGA-9cqq-gh6x-vj2c, CGA-9h7j-22xh-jvg5, CGA-9x89-mp2p-cqmr, CGA-cm4p-4pxr-xpq6, CGA-f3vc-vqwc-8p3w, CGA-f4c3-mjgr-8gw9, CGA-h3gw-vgp3-7h83, CGA-h3h3-vfgm-349p, CGA-h4p5-q549-v6rx, CGA-jg53-9f9p-2jxw, CGA-jqcw-8mq2-h6r4, CGA-mrwm-2pjg-8825, GHSA-hppc-g8h3-xhp3, CGA-q5hm-7m76-q9r6, CGA-q67w-8p45-wfcm, CGA-qpfp-5qf5-4wc2, CGA-qvr3-7wrc-59fg, CGA-rcpc-wvjj-vff8, CGA-w6gx-86mg-5wfw, CGA-xxw7-6fpp-24hf, RUSTSEC-2026-0478
- Record: https://cvemate.com/vulnerability/CVE-2026-41898 · JSON: https://cvemate.com/vulnerability/CVE-2026-41898/json

## Description

```text
rust-openssl provides OpenSSL bindings for the Rust programming language.  From 0.9.24 to before 0.10.78, the FFI trampolines behind SslContextBuilder::set_psk_client_callback, set_psk_server_callback, set_cookie_generate_cb, and set_stateless_cookie_generate_cb forwarded the user closure's returned usize directly to OpenSSL without checking it against the &mut [u8] that was handed to the closure. This can lead to buffer overflows and other unintended consequences. This vulnerability is fixed in 0.10.78.
```

## Signals

- CVSS: 8.3 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
- EPSS: 0.291%, percentile 23.323%, 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.42-r2 \| \< 1.0.43-r0
- 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-hppc-g8h3-xhp3>
- <https://github.com/rust-openssl/rust-openssl/pull/2607>
- <https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c>
- <https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78>
- <https://ubuntu.com/security/CVE-2026-41898>
- <https://www.cve.org/CVERecord?id=CVE-2026-41898>
- <https://security-tracker.debian.org/tracker/CVE-2026-41898>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41898.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-41898>
- <https://github.com/rust-openssl/rust-openssl>
- <https://crates.io/crates/openssl>
- <https://rustsec.org/advisories/RUSTSEC-2026-0478.html>

---

Data as of 2026-12-05T08:24:16.244Z. 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
