{"id":"GHSA-pqf5-4pqq-29f5","aliases":["CVE-2026-41676","RUSTSEC-2026-0473"],"title":"rust-openssl: Deriver::derive and PkeyCtxRef::derive can overflow short buffers on OpenSSL 1.1.1","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"`Deriver::derive` (and `PkeyCtxRef::derive`) sets `len = buf.len()` and passes it as the in/out length to `EVP_PKEY_derive`, relying on OpenSSL to honor it. On OpenSSL 1.1.x, X25519, X448, DH and HKDF-extract  ignore the incoming `*keylen`, unconditionally writing the full shared secret (32/56/prime-size bytes). A caller passing a short slice gets a heap/stack overflow from safe code. OpenSSL 3.x providers do check, so this only impacts older OpenSSL.","severity":"high","score":7.2,"published":"2026-04-19T12:00:00.000Z","modified":"2026-11-10T14:10:59.704Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"openssl","sources":[{"name":"OSV · GHSA-pqf5-4pqq-29f5","url":"https://osv.dev/vulnerability/GHSA-pqf5-4pqq-29f5"}],"ranges":[{"events":[{"introduced":"0.9.27"},{"fixed":"0.10.78"}],"type":"SEMVER"}],"versions":[],"fixed":["0.10.78"]},{"ecosystem":"crates.io","name":"openssl","sources":[{"name":"OSV · RUSTSEC-2026-0473","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0473"}],"ranges":[{"events":[{"introduced":"0.9.27"},{"fixed":"0.10.78"}],"type":"SEMVER"}],"versions":[],"fixed":["0.10.78"]}],"sourceAffected":[],"references":["https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-pqf5-4pqq-29f5","https://nvd.nist.gov/vuln/detail/CVE-2026-41676","https://github.com/rust-openssl/rust-openssl/pull/2606","https://github.com/rust-openssl/rust-openssl/commit/09b425e5f59a2466d806e71a83a9a449c914c596","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-0473.html"],"sources":[{"name":"OSV","id":"GHSA-pqf5-4pqq-29f5","modified":"2026-11-10T14:10:59.704101108Z","url":"https://osv.dev/vulnerability/GHSA-pqf5-4pqq-29f5"},{"name":"OSV","id":"RUSTSEC-2026-0473","modified":"2026-11-10T14:00:02.488005222Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0473"}],"assessments":[{"source":"OSV","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","score":7.2}],"products":[],"remediation":[],"observedAt":"2026-11-10T14:21:58.723Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T02:15:33.662Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-10T14:25:34.405Z","attemptedAt":"2026-11-10T14:25:34.405Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-10T14:25:34.556Z","attemptedAt":"2026-11-10T14:25:34.556Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-10T14:25:34.590Z","attemptedAt":"2026-11-10T14:25:34.590Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-10T14:25:34.675Z","attemptedAt":"2026-11-10T14:25:34.675Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-41676","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41676","modified":"2026-07-15T16:17:18.250","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/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:34.405Z"},{"source":"NVD","id":"CVE-2026-41676","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41676","modified":"2026-07-15T16:17:18.250","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","checkedAt":"2026-11-10T14:25:34.405Z"},{"source":"GitHub Advisory Database","id":"GHSA-pqf5-4pqq-29f5","url":"https://github.com/advisories/GHSA-pqf5-4pqq-29f5","modified":"2026-04-27T16:42:06Z","checkedAt":"2026-11-10T14:25:34.556Z"},{"source":"ENISA EUVD","id":"EUVD-2026-25582","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-25582","modified":"Apr 24, 2026, 5:43:20 PM","score":7.2,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","checkedAt":"2026-11-10T14:25:34.590Z"},{"source":"FIRST EPSS","id":"CVE-2026-41676","url":"https://www.first.org/epss/","probability":0.00285,"percentile":0.21155,"date":"2026-11-09","checkedAt":"2026-11-10T14:25:34.675Z"}],"aiSummary":null}