{"id":"CVE-2026-41898","published":"2026-04-24T17:20:38Z","modified":"2026-04-24T18:01:47Z","title":"rust-openssl: Unchecked callback-returned length in PSK and cookie generate trampolines can cause OpenSSL to leak…","vendor":"rust-openssl","product":"rust-openssl","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.3,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00291,"percentile":0.22055,"provenance":"source"},"cwes":[{"id":"CWE-126","name":"Buffer Over-read"},{"id":"CWE-130","name":"Improper Handling of Length Parameter Inconsistency"}],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-hppc-g8h3-xhp3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rust-openssl/rust-openssl/pull/2607","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78","tags":["x_refsource_MISC"]}],"priority":{"score":10.2,"factors":[{"name":"EPSS percentile","points":4.41},{"name":"CVSS severity","points":5.81}]},"vendorSlug":"rust-openssl","affectedVersions":[{"vendor":"rust-openssl","product":"rust-openssl","versions":[">= 0.9.24, < 0.10.78"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-24T18:01:38.714785Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"openssl","vulnerableRanges":[">=0.9.24, <0.10.78"],"patched":["0.10.78"],"from":["GHSA-hppc-g8h3-xhp3","RUSTSEC-2026-0478"],"provenance":"source"}],"summary":{"text":"The rust-openssl crate (product rust-openssl) fails to validate the length returned by user closures passed to SslContextBuilder's PSK client/server and cookie generation callbacks, so the value is forwarded to OpenSSL unchecked against the buffer provided to the closure. An attacker who can reach a TLS endpoint that uses these callbacks, with no authentication or user interaction required, can trigger buffer over-read or overflow conditions, potentially leading to memory disclosure or other unintended effects, particularly when the application relies on these callbacks.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:00:31Z"},"euvd":{"id":"EUVD-2026-25587","exploited":false,"provenance":"source"}}