NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Rust (crates.io)

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

highCVSS 4.0 8.3GHSA-hppc-g8h3-xhp3

The FFI trampolines behind SslContextBuilder::setpskclientcallback, setpskservercallback, setcookiegeneratecb, and setstatelesscookiegeneratecb 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.

Published Apr 22, 2026 · Updated Apr 27, 2026

Affected packages

openssl

Ecosystem
Rust (crates.io)
Affected
>= 0.9.24, < 0.10.78
Fixed in
0.10.78
Check
cargo tree -i openssl

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Rust (crates.io) vulnerabilities

All Rust (crates.io) entries