{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-41898","id":"CVE-2026-41898","title":"rust-openssl: Unchecked callback-returned length in PSK and cookie generate trampolines can cause OpenSSL to leak adjacent memory to the network peer","description":"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.","descriptionLong":"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":"2026-04-24T17:20:38.073Z","updated":"2026-11-13T02:30:31.951507345Z","reserved":"2026-04-22T15:11:54.672Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":8.3,"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","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":8.3,"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","rating":"high","source":"GitHub_M"},{"version":"4.0","score":8.3,"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/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","rating":"high","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"high","source":"GitHub"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":["rust-openssl"],"affectedProducts":[{"vendor":"rust-openssl","product":"rust-openssl","defaultStatus":null,"versions":[{"version":">= 0.9.24, < 0.10.78","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"openssl","purl":"pkg:cargo/openssl","ranges":[">=0.9.24 <0.10.78"],"fixed":["0.10.78"],"advisory":"GHSA-hppc-g8h3-xhp3"}],"cwes":["CWE-126","CWE-130"],"aliases":["GHSA-hppc-g8h3-xhp3","RUSTSEC-2026-0478"],"references":[{"url":"https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-hppc-g8h3-xhp3","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://github.com/rust-openssl/rust-openssl/pull/2607","tags":["x_refsource_MISC","Issue Tracking","fix","web"]},{"url":"https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c","tags":["x_refsource_MISC","Patch","fix","web"]},{"url":"https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78","tags":["x_refsource_MISC","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41898.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41898","tags":["advisory"]},{"url":"https://github.com/rust-openssl/rust-openssl","tags":["package"]},{"url":"https://crates.io/crates/openssl","tags":["package"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0478.html","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.0028,"epssPercentile":0.20909,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-41898","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41898","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-41898","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-hppc-g8h3-xhp3","ok":true,"note":"GHSA-hppc-g8h3-xhp3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-41898","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["openssl"],"critical":[],"attention":null}