rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers
cve-program · CVE-2026-45784
Publishedrust-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.
Read the publisher's advisoryeuvd · EUVD-2026-45322
Publishedrust-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.
Read the publisher's advisorynvd · CVE-2026-45784
Publishedrust-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.
Read the publisher's advisoryosv · GHSA-phqj-4mhp-q6mq
Published`CipherCtxRef::cipher_update_inplace` 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 only impacts users using AES key-wrap-with-padding ciphers. This method was missed in the fix for GHSA-xv59-967r-8726
Read the publisher's advisoryosv · RUSTSEC-2026-0477
Published`CipherCtxRef::cipher_update_inplace` had the same sizing error that 0.10.79 fixed in `cipher_update` (GHSA-xv59-967r-8726); that fix missed this method. It required room for `inlen + block_size` bytes, but with the AES key-wrap-with-padding ciphers OpenSSL writes up to 7 more bytes when `inlen` is not a multiple of 8, past the end of `data`. Only users of the AES key-wrap-with-padding ciphers are affected. `cipher_update_inplace` was added in 0.10.50, and 0.10.80 applies the corrected size check to it.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-45784 · CVE overview and exploitation status
cve-program · CVE-2026-45784
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-phqj-4mhp-q6mq
- https://github.com/rust-openssl/rust-openssl/pull/2638
- https://github.com/rust-openssl/rust-openssl/commit/19eceb26f2404aae187e5444e65c404ebc1348a7
- https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.80
euvd · EUVD-2026-45322
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-phqj-4mhp-q6mq
- https://github.com/rust-openssl/rust-openssl/pull/2638
- https://github.com/rust-openssl/rust-openssl/commit/19eceb26f2404aae187e5444e65c404ebc1348a7
- https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.80
nvd · CVE-2026-45784
- https://github.com/rust-openssl/rust-openssl/commit/19eceb26f2404aae187e5444e65c404ebc1348a7
- https://github.com/rust-openssl/rust-openssl/pull/2638
- https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.80
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-phqj-4mhp-q6mq
osv · GHSA-phqj-4mhp-q6mq
- https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-phqj-4mhp-q6mq
- https://github.com/rust-openssl/rust-openssl
osv · RUSTSEC-2026-0477
Related changes
Linked by CVE identifier- Buffer overflow with AES key wrap with padding in `cipher_update_inplace` · Newly collected advisory · 10 Nov 2026
- rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers · Advisory content revised · 10 Nov 2026