rust-openssl provides OpenSSL bindings for the Rust programming language. (CVE-2026-45784)
A vulnerability in rust-openssl versions from 0.10.50 up to but not including 0.10.80 causes incorrect sizing of output buffers in the CipherCtxRef::cipher_update_inplace function when used with AES key-wrap-with-padding ciphers. This leads to OpenSSL writing up to 7 bytes beyond the end of the caller's buffer or Vec for non-multiple-of-8 inputs, resulting in attacker-controllable heap corruption. The issue is fixed in version 0.10.80.
AI Analysis
Technical Summary
The rust-openssl library, which provides OpenSSL bindings for Rust, contains a buffer sizing flaw in versions 0.10.50 through 0.10.79 in the CipherCtxRef::cipher_update_inplace function. When used with AES key-wrap-with-padding ciphers (EVP_aes_{128,192,256}_wrap_pad), the function incorrectly sizes output buffers. For plaintext inputs whose length is not a multiple of 8, OpenSSL may write up to 7 bytes beyond the allocated buffer, causing heap corruption that can be influenced by an attacker. This vulnerability is resolved in rust-openssl version 0.10.80.
Potential Impact
This vulnerability allows an attacker who can control the plaintext length to cause heap corruption by triggering out-of-bounds writes of up to 7 bytes beyond the buffer. The corruption can lead to denial of service or potentially arbitrary code execution. The CVSS 3.1 score is 7.1 (medium severity) with local attack vector, low complexity, low privileges required, no user interaction, unchanged scope, no confidentiality impact, high integrity impact, and high availability impact.
Mitigation Recommendations
A fix is available in rust-openssl version 0.10.80. Users should upgrade to version 0.10.80 or later to remediate this vulnerability. No vendor advisory indicates alternative mitigations or that no action is required.
rust-openssl provides OpenSSL bindings for the Rust programming language. (CVE-2026-45784)
Description
A vulnerability in rust-openssl versions from 0.10.50 up to but not including 0.10.80 causes incorrect sizing of output buffers in the CipherCtxRef::cipher_update_inplace function when used with AES key-wrap-with-padding ciphers. This leads to OpenSSL writing up to 7 bytes beyond the end of the caller's buffer or Vec for non-multiple-of-8 inputs, resulting in attacker-controllable heap corruption. The issue is fixed in version 0.10.80.
CVSS v3.1
Score 7.1high
Affected software
pkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps/focalpkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps/jammypkg:deb/ubuntu/rust-openssl?arch=source&distro=esm-apps/noblepkg:deb/ubuntu/rust-openssl?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The rust-openssl library, which provides OpenSSL bindings for Rust, contains a buffer sizing flaw in versions 0.10.50 through 0.10.79 in the CipherCtxRef::cipher_update_inplace function. When used with AES key-wrap-with-padding ciphers (EVP_aes_{128,192,256}_wrap_pad), the function incorrectly sizes output buffers. For plaintext inputs whose length is not a multiple of 8, OpenSSL may write up to 7 bytes beyond the allocated buffer, causing heap corruption that can be influenced by an attacker. This vulnerability is resolved in rust-openssl version 0.10.80.
Potential Impact
This vulnerability allows an attacker who can control the plaintext length to cause heap corruption by triggering out-of-bounds writes of up to 7 bytes beyond the buffer. The corruption can lead to denial of service or potentially arbitrary code execution. The CVSS 3.1 score is 7.1 (medium severity) with local attack vector, low complexity, low privileges required, no user interaction, unchanged scope, no confidentiality impact, high integrity impact, and high availability impact.
Mitigation Recommendations
A fix is available in rust-openssl version 0.10.80. Users should upgrade to version 0.10.80 or later to remediate this vulnerability. No vendor advisory indicates alternative mitigations or that no action is required.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-45784
- Osv Schema Version
- 1.7.0
- Ecosystems
- ["Ubuntu:Pro:20.04:LTS","Ubuntu:Pro:22.04:LTS","Ubuntu:Pro:24.04:LTS","Ubuntu:26.04:LTS"]
- Cvss Version
- 3.1
Threat ID: 6a6cc1541aa972dd320aa3e9
Added to database: 07/31/2026, 15:37:56 UTC
Last enriched: 08/01/2026, 02:55:49 UTC
Last updated: 09/14/2026, 22:01:34 UTC
Views: 24
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.