Security mailing lists by PureSourceCode

CVE-2026-41898

HIGH 8.3CVSS 4.0

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

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.9.24 to before 0.10.78, 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. This vulnerability is fixed in 0.10.78.

Published
24 Apr 2026
Last modified
11 Nov 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-126CWE-130
Also known as
GHSA-hppc-g8h3-xhp3RUSTSEC-2026-0478
Sources
NVDJSONOSV GHSA-hppc-g8h3-xhp3JSONOSV RUSTSEC-2026-0478JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 4.0 HIGH 8.3 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD rust-openssl_project rust-openssl
cpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:*
>= 0.9.24, < 0.10.78 0.10.78
OSV crates.io openssl >= 0.9.24, < 0.10.78 0.10.78

References

History

  • 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Apr 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Apr 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.