Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-41898

rust-openssl: Unchecked callback-returned length in PSK and cookie generate trampolines can cause OpenSSL to leak adjacent memory to the network peer
Back to all
CVE

CVE-2026-41898

rust-openssl: Unchecked callback-returned length in PSK and cookie generate trampolines can cause OpenSSL to leak adjacent memory to the network 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::setpskclientcallback, setpskservercallback, setcookiegeneratecb, and setstatelesscookiegenerate_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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.3
-
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/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
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78, https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41898.json, https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-hppc-g8h3-xhp3, https://nvd.nist.gov/vuln/detail/CVE-2026-41898, https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c, https://github.com/rust-openssl/rust-openssl/pull/2607

Severity

0

CVSS Score
0
10

Basic Information

Base CVSS
0
EPSS Probability
0.0028%
EPSS Percentile
0.20235%
Introduced Version
95c7bf3cbadf7cbb37dd27ea706740f01559c435,0
Fix Available
1d109020d98fff2fb2e45c39a373af3dff99b24c,1.10.0-r5,2.7.13-r0,1.0.43-r0,2.1.2-r2,1.10.1-r10,1.0.0-r4,1.29.0-r5,0.14.0-r4,1.3.10-r5,3.4.0-r0,0.8.6-r5,0.14.2-r7,1.0.0-r5,0.55.0-r1,1.28.5-r2,1.29.1-r3

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading