{"id":"GHSA-hppc-g8h3-xhp3","aliases":["CVE-2026-41898","RUSTSEC-2026-0478"],"title":"rust-openssl: Unchecked callback length in PSK/cookie trampolines leaks adjacent memory to peer","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"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.","severity":"high","score":8.3,"published":"2026-04-19T12:00:00.000Z","modified":"2026-11-10T14:10:47.500Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"openssl","sources":[{"name":"OSV · GHSA-hppc-g8h3-xhp3","url":"https://osv.dev/vulnerability/GHSA-hppc-g8h3-xhp3"}],"ranges":[{"events":[{"introduced":"0.9.24"},{"fixed":"0.10.78"}],"type":"SEMVER"}],"versions":[],"fixed":["0.10.78"]},{"ecosystem":"crates.io","name":"openssl","sources":[{"name":"OSV · RUSTSEC-2026-0478","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0478"}],"ranges":[{"events":[{"introduced":"0.9.24"},{"fixed":"0.10.78"}],"type":"SEMVER"}],"versions":[],"fixed":["0.10.78"]}],"sourceAffected":[],"references":["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/pull/2607","https://github.com/rust-openssl/rust-openssl/commit/1d109020d98fff2fb2e45c39a373af3dff99b24c","https://github.com/rust-openssl/rust-openssl","https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78","https://crates.io/crates/openssl","https://rustsec.org/advisories/RUSTSEC-2026-0478.html"],"sources":[{"name":"OSV","id":"GHSA-hppc-g8h3-xhp3","modified":"2026-11-10T14:10:47.500432370Z","url":"https://osv.dev/vulnerability/GHSA-hppc-g8h3-xhp3"},{"name":"OSV","id":"RUSTSEC-2026-0478","modified":"2026-11-10T14:00:02.480903309Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0478"}],"assessments":[{"source":"OSV","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","score":8.3}],"products":[],"remediation":[],"observedAt":"2026-11-10T14:22:03.251Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T02:30:32.619Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-10T14:25:35.884Z","attemptedAt":"2026-11-10T14:25:35.884Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-10T14:25:36.268Z","attemptedAt":"2026-11-10T14:25:36.268Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-10T14:25:36.140Z","attemptedAt":"2026-11-10T14:25:36.140Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-10T14:25:35.956Z","attemptedAt":"2026-11-10T14:25:35.956Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-41898","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41898","modified":"2026-07-15T16:17:15.797","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","checkedAt":"2026-11-10T14:25:35.884Z"},{"source":"NVD","id":"CVE-2026-41898","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41898","modified":"2026-07-15T16:17:15.797","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","checkedAt":"2026-11-10T14:25:35.884Z"},{"source":"FIRST EPSS","id":"CVE-2026-41898","url":"https://www.first.org/epss/","probability":0.0028,"percentile":0.20689,"date":"2026-11-09","checkedAt":"2026-11-10T14:25:35.956Z"},{"source":"ENISA EUVD","id":"EUVD-2026-25587","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-25587","modified":"Apr 24, 2026, 6:01:47 PM","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","checkedAt":"2026-11-10T14:25:36.140Z"},{"source":"GitHub Advisory Database","id":"GHSA-hppc-g8h3-xhp3","url":"https://github.com/advisories/GHSA-hppc-g8h3-xhp3","modified":"2026-04-27T16:29:44Z","checkedAt":"2026-11-10T14:25:36.268Z"}],"aiSummary":null}