openssl
Affected
- introduced
0.9.24, fixed0.10.78(semver)
Fixed versions
0.10.78
Fix
- Fixed version
0.10.78cargo update -p openssl --precise 0.10.78
Advisory
Also known as: CVE-2026-41898, RUSTSEC-2026-0478
rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer
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.
High Basis: The source's own band: HIGH
0.9.24, fixed 0.10.78 (semver)0.10.78
0.10.78cargo update -p openssl --precise 0.10.78Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0