# CVE-2026-44662: rust-openssl: Heap buffer overflow when encrypting with AES key-wrap-with-padding

> Heap buffer overflow in rust-openssl allows attacker-controlled corruption when using AES key-wrap-with-padding, potentially leading to code execution or crashes.

- **Severity:** Medium 5.1 (`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`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 14 May 2026
- **Updated:** 16 May 2026
- **Also known as:** AZL-86814, DEBIAN-CVE-2026-44662, GHSA-xv59-967r-8726, MINI-4r32-rqmm-pmq9, MINI-63mx-9wpq-j56f, MINI-f736-9qrg-gr68, MINI-hp2q-gvcj-gqgq, MINI-m888-vqp5-9wp4, MINI-mf2c-6hjx-6349, MINI-pxc4-9pxv-qr9c, MINI-wcq8-gww5-3rv3, MINI-xx7x-xcf3-gf5h, UBUNTU-CVE-2026-44662

## What is CVE-2026-44662?

CVE-2026-44662 is a medium-severity memory corruption vulnerability in rust-openssl, published on 14 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

rust-openssl provides OpenSSL bindings for the Rust programming language. From 0.10.0 to before 0.10.79, CipherCtxRef::cipher_update, CipherCtxRef::cipher_update_vec, and symm::Crypter::update 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 vulnerability is fixed in 0.10.79.

Weakness: CWE-122 (Heap-based Buffer Overflow)

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

2 open source packages ship an affected version, including openssl.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `openssl` | crates.io | From 0.10.0 | 0.10.79 |
| `openssl` | crates.io | From 0.10.0 | 0.10.79 |

## How do I fix CVE-2026-44662?

Upgrade openssl to 0.10.79 or later.

## Is CVE-2026-44662 being exploited?

There is no known exploitation of CVE-2026-44662 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-44662 and fix it if it is affected.

What it is: CVE-2026-44662 is a medium-severity memory corruption vulnerability in rust-openssl, published on 14 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2026-44662 in the wild and no public exploit code.

Affected packages and fixed versions:
- openssl (crates.io): affected from 0.10.0; fixed in 0.10.79
- openssl (crates.io): affected from 0.10.0; fixed in 0.10.79

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-44662/ (Markdown: https://insights.sbomify.com/CVE-2026-44662/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-44662
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-44662
- OSV: https://osv.dev/vulnerability/CVE-2026-44662

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-44662/
Summaries are generated and may contain mistakes; the official description above is the record.
