IntelligenceAdvisoriesAdvisory
GHSA-hppc-g8h3-xhp3
rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer
In short
What to know.
- Package
- openssl crates.iofrom 0.9.24 before 0.10.78
- What to do
- Upgrade openssl to 0.10.78 or later.
- Source's rating
- HighNoumen has not assessed it.
- Noumen finding
- NMN-2026-0121Candidate. Severity high, confidence high.
3 December 2026
Source
- OSV record GHSA-hppc-g8h3-xhp3osv.devRetrieved 3 December 2026
Full record
- Identifier
- GHSA-hppc-g8h3-xhp3
- Aliases
- CVE-2026-41898, RUSTSEC-2026-0478
- Severity
- High, as rated by the source. Noumen has not assessed it.
- CVSS
- 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
- Fixed versions
- 0.10.78
- Published
- 22 April 2026
- Modified
- 10 November 2026
- Source
- OSV record GHSA-hppc-g8h3-xhp3, retrieved 3 December 2026, 00:00 UTC
Affected packages and ranges
| Package | Affected versions | Fixed in |
|---|---|---|
| openssl crates.io | from 0.9.24 before 0.10.78 | 0.10.78 |
Affected means inside a published range, not that the code path is reachable in your project.
Details, as published by the source
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.
References
- webgithub.com/rust-openssl/rust-openssl/security/advisories/GHSA-hppc-g8h3-xhp3
- advisorynvd.nist.gov/vuln/detail/CVE-2026-41898
- webgithub.com/rust-openssl/rust-openssl/pull/2607
- webgithub.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c
- packagegithub.com/rust-openssl/rust-openssl
- webgithub.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78
