Vulnerability GHSA-hppc-g8h3-xhp3

High Risk
HIGH RISK
CVSS Score: 8.0
Score Range: 7.0–8.9
High severity vulnerabilities (CVSS 7.0–8.9). Serious vulnerabilities that should be prioritized soon after critical fixes.
6 months ago
April 22, 2026 at 09:00 PM UTC
rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer
>=0.9.24 <0.10.78
>=0.9.24 <0.10.78

Summary

rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer

Details

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.

Impacted packages

Timeline

Published
6 months ago
April 22, 2026 at 09:00 PM UTC
Fixed (0.10.78)
6 months ago
April 19, 2026 at 08:02 PM UTC
Last Modified
14 hours ago
November 10, 2026 at 02:10 PM UTC