# CVE-2026-45784: rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- 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.13%, higher than 3% of CVEs (2026-12-02)
- Published: 2026-05-16T12:00:00.000Z
- Modified: 2026-11-10T14:10:52.035Z
- Also known as: GHSA-phqj-4mhp-q6mq, RUSTSEC-2026-0477
- Weaknesses: CWE-131, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.50 until 0.10.80, CipherCtxRef::cipher_update_inplace in openssl/src/cipher_ctx.rs incorrectly sized output buffers when used with AES key-wrap-with-padding ciphers EVP_aes_{128,192,256}_wrap_pad. For a non-multiple-of-8 input, OpenSSL writes up to 7 bytes past the end of the caller's buffer or Vec, producing attacker-controllable heap corruption when the plaintext length is attacker-influenced. This issue is fixed in version 0.10.80.

(As written by CVE List.)

## Affected

- rust-openssl rust-openssl: >= 0.10.50, < 0.10.80
- openssl (crates.io): from 0.10.50 before 0.10.80
- sfackler openssl: from 0.10.50 before 0.10.80

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-phqj-4mhp-q6mq> (vendor-advisory, web)
- <https://github.com/rust-openssl/rust-openssl/pull/2638> (issue-tracking, patch, web)
- <https://github.com/rust-openssl/rust-openssl/commit/19eceb26f2404aae187e5444e65c404ebc1348a7> (patch)
- <https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.80> (product, release-notes)
- <https://github.com/rust-openssl/rust-openssl> (package)
- <https://crates.io/crates/openssl> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0477.html> (advisory)

## Sources

- CVE List: [CVE-2026-45784](https://www.cve.org/CVERecord?id=CVE-2026-45784), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-phqj-4mhp-q6mq](https://github.com/advisories/GHSA-phqj-4mhp-q6mq), CC-BY-4.0, modified 2026-11-10
- RustSec Advisory Database: [RUSTSEC-2026-0477](https://rustsec.org/advisories/RUSTSEC-2026-0477.html), CC0-1.0, modified 2026-11-10
- NVD: [CVE-2026-45784](https://nvd.nist.gov/vuln/detail/CVE-2026-45784), Public domain, modified 2026-07-29

---

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