# CVE-2026-41678: rust-openssl: Incorrect bounds assertion in aes key wrap

- Severity: High 7.2 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2026-04-19T12:00:00.000Z
- Modified: 2026-11-11T23:10:00.263Z
- Also known as: GHSA-8c75-8mhr-p7r9, RUSTSEC-2026-0463
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- rust-openssl rust-openssl: >= 0.10.24, < 0.10.78
- openssl (crates.io): from 0.10.24 before 0.10.78
- rust-openssl_project rust-openssl: from 0.10.24 before 0.10.78

## Every score

- GitHub_M: CVSS:4.0 7.2 High `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`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-41678](https://www.cve.org/CVERecord?id=CVE-2026-41678), CVE Terms of Use, modified 2026-04-24
- GitHub Advisory Database: [GHSA-8c75-8mhr-p7r9](https://github.com/advisories/GHSA-8c75-8mhr-p7r9), CC-BY-4.0, modified 2026-11-09
- RustSec Advisory Database: [RUSTSEC-2026-0463](https://rustsec.org/advisories/RUSTSEC-2026-0463.html), CC0-1.0, modified 2026-11-09
- NVD: [CVE-2026-41678](https://nvd.nist.gov/vuln/detail/CVE-2026-41678), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-41678 · Whole record: https://cve.day/CVE-2026-41678.json · Rebuilt by cve.day 2026-11-25T22:59:19.552Z
