CVE-2026-45784: rust-openssl Potential Out-of-bounds Write Vulnerability
MODERATECVE-2026-45784 is a MODERATE potential out-of-bounds write vulnerability (CWE-787: Out-of-bounds Write) affecting rust-openssl libraries in the crates.io ecosystem. The issue involves potential out-of-bounds write in `cipherctxref::cipher_update_inplace` for aes-kw-pad ciphers. Remediation is available by upgrading affected packages to version 0.10.80.
CVE-2026-45784 at a Glance
How to Fix CVE-2026-45784
To remediate this vulnerability, upgrade all affected rust-openssl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade openssl to 0.10.80
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for openssl
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-45784, inspect your project dependencies for rust-openssl:
inspect dependencies for openssl
Analyze the terminal output to locate any version of rust-openssl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.10.80), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-787: Out-of-bounds Write, where the product writes data past the end, or before the beginning, of the intended buffer. In rust-openssl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-45784 Affected rust-openssl Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
openssl
|
crates.io |
≥ 0.10.50
< 0.10.80
|
0.10.80
|
References
Frequently Asked Questions
What is CVE-2026-45784?
Which rust-openssl versions are affected?
What version fixes CVE-2026-45784?
Is openssl affected?
What CWE is associated with CVE-2026-45784?
How can I check crates.io dependencies for CVE-2026-45784?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-phqj-4mhp-q6mq",
"modified" : "2026-05-19T19:50:11Z",
"published" : "2026-05-19T19:50:11Z",
"aliases" : [ "CVE-2026-45784" ],
"summary" : "rust-openssl: Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers",
"details" : "`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.\n\nThis only impacts users using AES key-wrap-with-padding ciphers.\n\nThis method was missed in the fix for GHSA-xv59-967r-8726",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "openssl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.10.50"
}, {
"fixed" : "0.10.80"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-phqj-4mhp-q6mq"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rust-openssl/rust-openssl"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-131", "CWE-787" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-19T19:50:11Z",
"nvd_published_at" : null
}
}