{"id":"RUSTSEC-2026-0463","aliases":["CVE-2026-41678","GHSA-8c75-8mhr-p7r9"],"title":"Out-of-bounds write in `aes::unwrap_key`","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"HIGH","description":"### Summary\n``aes::unwrap_key()`` has an incorrect bounds assertion on the out buffer size, which can lead to out-of-bounds write.\n\n### Details\n``aes::unwrap_key()`` contains an incorrect assertion: it checks that `out.len() + 8 <= in_.len()`, but this condition is reversed. The intended invariant is `out.len() >= in_.len() - 8`, ensuring the output buffer is large enough.\n\nBecause of the inverted check, the function only accepts buffers at or below the minimum required size and rejects larger ones. If a smaller buffer is provided the function will write past the end of `out` by `in_.len() - 8 - out.len()` bytes, causing an out-of-bounds write from a safe public function.\n\n### Impact\nVulnerable applications using AES keywrap and allowing attacker controlled buffer sizes could have an attacker trigger an out-of-bounds write.","severity":"high","score":7.2,"published":"2026-04-19T12:00:00.000Z","modified":"2026-11-09T16:26:14.394Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"crates.io","name":"openssl","sources":[{"name":"OSV · RUSTSEC-2026-0463","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0463"}],"ranges":[{"events":[{"introduced":"0.10.24"},{"fixed":"0.10.78"}],"type":"SEMVER"}],"versions":[],"fixed":["0.10.78"]},{"ecosystem":"crates.io","name":"openssl","sources":[{"name":"OSV · GHSA-8c75-8mhr-p7r9","url":"https://osv.dev/vulnerability/GHSA-8c75-8mhr-p7r9"}],"ranges":[{"events":[{"introduced":"0.10.24"},{"fixed":"0.10.78"}],"type":"SEMVER"}],"versions":[],"fixed":["0.10.78"]}],"sourceAffected":[],"references":["https://crates.io/crates/openssl","https://rustsec.org/advisories/RUSTSEC-2026-0463.html","https://github.com/rust-openssl/rust-openssl/pull/2604","https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-8c75-8mhr-p7r9","https://nvd.nist.gov/vuln/detail/CVE-2026-41678","https://github.com/rust-openssl/rust-openssl/commit/718d07ff8ff7be417d5b7a6a0047f1607520b3b6","https://github.com/rust-openssl/rust-openssl","https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78"],"sources":[{"name":"OSV","id":"RUSTSEC-2026-0463","modified":"2026-11-09T16:15:02.466558018Z","url":"https://osv.dev/vulnerability/RUSTSEC-2026-0463"},{"name":"OSV","id":"GHSA-8c75-8mhr-p7r9","modified":"2026-11-09T16:26:14.394973598Z","url":"https://osv.dev/vulnerability/GHSA-8c75-8mhr-p7r9"}],"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-09T16:35:42.813Z","kev":{"status":"not-listed","checkedAt":"2026-11-29T00:35:30.798Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-09T16:25:36.996Z","attemptedAt":"2026-11-09T16:25:36.996Z"},{"source":"GHSA","status":"available","checkedAt":"2026-11-09T16:25:37.174Z","attemptedAt":"2026-11-09T16:25:37.174Z"},{"source":"EUVD","status":"available","checkedAt":"2026-11-09T16:25:37.830Z","attemptedAt":"2026-11-09T16:25:37.830Z"},{"source":"EPSS","status":"available","checkedAt":"2026-11-09T16:25:37.154Z","attemptedAt":"2026-11-09T16:25:37.154Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-41678","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41678","modified":"2026-07-17T19:24:37.190","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-09T16:25:36.996Z"},{"source":"NVD","id":"CVE-2026-41678","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41678","modified":"2026-07-17T19:24:37.190","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","checkedAt":"2026-11-09T16:25:36.996Z"},{"source":"FIRST EPSS","id":"CVE-2026-41678","url":"https://www.first.org/epss/","probability":0.00251,"percentile":0.16585,"date":"2026-11-09","checkedAt":"2026-11-09T16:25:37.154Z"},{"source":"GitHub Advisory Database","id":"GHSA-8c75-8mhr-p7r9","url":"https://github.com/advisories/GHSA-8c75-8mhr-p7r9","modified":"2026-04-27T16:41:56Z","checkedAt":"2026-11-09T16:25:37.174Z"},{"source":"ENISA EUVD","id":"EUVD-2026-25584","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-25584","modified":"Apr 24, 2026, 6:33:14 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-09T16:25:37.830Z"}],"aiSummary":null}