# CVE-2026-45784: rust-openssl: Potential out-of-bounds write in \`CipherCtxRef::cipher\_update\_inplace\` for AES-KW-PAD ciphers

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.1
- **CVSS:** 5.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Attack requirements: None; Privileges required: None; User interaction: None; Confidentiality impact: None; Integrity impact: Low; Availability impact: Low; Confidentiality impact on other systems: None; Integrity impact on other systems: None; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **CWE:** CWE-131, CWE-787
- **Aliases:** GHSA-phqj-4mhp-q6mq, RUSTSEC-2026-0477
- **Published:** 2026-05-16T12:00:00.000Z
- **Modified:** 2026-11-10T14:10:52.035Z

## Who should check

- Projects that depend on crates.io package openssl (\>= 0.10.50, \< 0.10.80)
- Anyone running rust-openssl \>= 0.10.50, \< 0.10.80

## Description

rust-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.

## Affected and fixed versions

- crates.io `openssl`: affected \>= 0.10.50, \< 0.10.80; fixed 0.10.80 (osv)
- rust-openssl: \>= 0.10.50, \< 0.10.80 (cvelist)

## Mitigation

- Upgrade openssl to 0.10.80 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-45784. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-45784.md
Affected: openssl >= 0.10.50, < 0.10.80
Fixed in: 0.10.80

Steps:
1. Search this machine and project for openssl (crates.io), rust-openssl: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-45784 being exploited?

There is no confirmed exploitation: CVE-2026-45784 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-45784?

Medium: CVSS 5.1 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-45784?

openssl \>= 0.10.50, \< 0.10.80.

### Is there a fix for CVE-2026-45784?

Yes. Fixed in 0.10.80. Upgrade openssl to 0.10.80 or later.

### How do I check if I'm affected by CVE-2026-45784?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/rust-openssl/rust-openssl/security/advisories/GHSA-phqj-4mhp-q6mq>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2026-0477.html>
- patch: <https://github.com/rust-openssl/rust-openssl/pull/2638>
- patch: <https://github.com/rust-openssl/rust-openssl/commit/19eceb26f2404aae187e5444e65c404ebc1348a7>
- other: <https://github.com/rust-openssl/rust-openssl/releases/tag/openssl-v0.10.80>
- other: <https://github.com/rust-openssl/rust-openssl>
- other: <https://crates.io/crates/openssl>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-45784>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-phqj-4mhp-q6mq> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2026-0477> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-45784> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-45784>
