CVE-2026-41678
HIGH 7.2CVSS 4.0rust-openssl has incorrect bounds assertion in aes key wrap
rust-openssl provides OpenSSL bindings for the Rust programming language. From to before 0.10.78, 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. Because 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. This vulnerability is fixed in 0.10.78.
- Published
- 24 Apr 2026
- Last modified
- 11 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-787
- Also known as
- GHSA-8c75-8mhr-p7r9RUSTSEC-2026-0463
- Sources
- NVDJSONOSV GHSA-8c75-8mhr-p7r9JSONOSV RUSTSEC-2026-0463JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.2 | 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 |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | rust-openssl_project | rust-opensslcpe:2.3:a:rust-openssl_project:rust-openssl:*:*:*:*:*:rust:*:* |
>= 0.10.24, < 0.10.78 | 0.10.78 |
| OSV | crates.io | openssl | >= 0.10.24, < 0.10.78 | 0.10.78 |
References
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-8c75-8mhr-p7r9 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-41678 · ADVISORY
- https://github.com/rust-openssl/rust-openssl/pull/2604 · WEB
- https://github.com/rust-openssl/rust-openssl/commit/718d07ff8ff7be417d5b7a6a0047f1607520b3b6 · WEB
- https://github.com/rust-openssl/rust-openssl · PACKAGE
- https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.78 · WEB
- https://crates.io/crates/openssl · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0463.html · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 24 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Apr 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Apr 2026)