Advisory

GHSA-hppc-g8h3-xhp3

Also known as: CVE-2026-41898, RUSTSEC-2026-0478

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-04-22 21:00 UTC
Modified
2026-11-10 14:10 UTC

Affected packages and fixes

openssl

crates.io · All systems

Affected

  • introduced 0.9.24, fixed 0.10.78 (semver)

Fixed versions

0.10.78

Fix

  • Fixed version 0.10.78
    cargo update -p openssl --precise 0.10.78

Fix 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

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences