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

Published May 19, 2026
·
Updated

CipherCtxRef::cipherupdateinplace incorrectly sized output buffers when used with AES key-wrap-with-padding ciphers (EVPaes{128,192,256}wrappad). 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

Other sources

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.50 until 0.10.80, CipherCtxRef::cipherupdateinplace in openssl/src/cipherctx.rs incorrectly sized output buffers when used with AES key-wrap-with-padding ciphers EVPaes{128,192,256}wrappad. 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.

— MITRE

Affected Software

2 affected componentsFixes available
rust/openssl>=0.10.50<0.10.80
0.10.80
Sfackler Openssl Rust>=0.10.50<0.10.80

Event History

May 19, 2026
Advisory Published
via GitHub·07:50 PM
Data Sourced
via GitHub·07:50 PM
DescriptionWeaknessAffected Software
Jul 17, 2026
CVE Published
via MITRE·08:26 PM
Data Sourced
via MITRE·08:26 PM
DescriptionWeakness
Data Sourced
via NVD·09:17 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-45784?

CVE-2026-45784 has a risk rating of 62, indicating a moderate severity vulnerability.

2

How do I fix CVE-2026-45784?

To fix CVE-2026-45784, you should update to the latest version of rust-openssl that includes the patch for this vulnerability.

3

What causes CVE-2026-45784?

CVE-2026-45784 is caused by incorrectly sized output buffers in the CipherCtxRef::cipher_update_inplace function when using AES key-wrap-with-padding ciphers.

4

What impact does CVE-2026-45784 have on my application?

The impact of CVE-2026-45784 can lead to heap corruption, potentially allowing an attacker to control memory beyond the allocated buffers.

5

Who is affected by CVE-2026-45784?

CVE-2026-45784 affects applications using rust-openssl with AES key-wrap-with-padding ciphers that do not handle non-multiple-of-8 inputs correctly.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203