CVE-2026-41898
HIGH 8.3CVSS 4.0rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer
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.
- Published
- 24 Apr 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-126CWE-130
- Also known as
- GHSA-hppc-g8h3-xhp3RUSTSEC-2026-0478
- Sources
- NVDJSONOSV GHSA-hppc-g8h3-xhp3JSONOSV RUSTSEC-2026-0478JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.3 | 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/E:X/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:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rust-openssl_project | rust-opensslcpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:* |
>= 0.9.24, < 0.10.78 | 0.10.78 |
| OSV | crates.io | openssl | >= 0.9.24, < 0.10.78 | 0.10.78 |
References
- https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c · Patch, WEB
- https://github.com/rust-openssl/rust-openssl/pull/2607 · Issue Tracking, WEB
- https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78 · Release Notes, WEB
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-hppc-g8h3-xhp3 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41898 · ADVISORY
- https://github.com/rust-openssl/rust-openssl · PACKAGE
- https://crates.io/crates/openssl · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0478.html · ADVISORY
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)