CVE-2026-45784: rust-openssl Potential Out-of-bounds Write Vulnerability

MODERATE
Advisory Identifier: GHSA-phqj-4mhp-q6mq
CWE-787 CWE-131
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-45784
GHSA Identifier GHSA-phqj-4mhp-q6mq
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-787: Out-of-bounds Write
Affected Product rust-openssl
Package Ecosystem crates.io
Published Date
Last Updated

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.

openssl fixed: 0.10.80
Upgrade openssl to 0.10.80
Verify Direct and Transitive Dependencies

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

`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

CVE-2026-45784 Affected rust-openssl Versions

1 component(s)
Fixed Versions:
0.10.80
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?
CVE-2026-45784 is a security vulnerability in rust-openssl involving Potential out-of-bounds write in `CipherCtxRef::cipher_update_inplace` for AES-KW-PAD ciphers under CWE-787: Out-of-bounds Write.
Which rust-openssl versions are affected?
Affected versions include releases prior to 0.10.80 across affected packages: openssl.
What version fixes CVE-2026-45784?
Upgrading to 0.10.80 (or the latest patched release for your respective branch) resolves the vulnerability.
Is openssl affected?
Yes, openssl is affected in releases prior to 0.10.80. Upgrade your dependency to 0.10.80 or later.
What CWE is associated with CVE-2026-45784?
CVE-2026-45784 is classified under CWE-787: Out-of-bounds Write (The product writes data past the end, or before the beginning, of the intended buffer.).
How can I check crates.io dependencies for CVE-2026-45784?
Run the dependency tree command: 'inspect dependencies for openssl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}