# CVE-2022-2097: AES OCB fails to encrypt some bytes

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

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.88% (percentile 80, 2026-11-26)
- **CWE:** CWE-327
- **Aliases:** GHSA-3wx7-46ch-7rq2, RUSTSEC-2022-0032
- **Published:** 2022-07-05T10:30:13.658Z
- **Modified:** 2026-10-14T13:17:20.523Z

## Who should check

- Projects that depend on crates.io package openssl-src (\< 111.22.0)
- Anyone running OpenSSL Fixed in OpenSSL 3.0.5 (Affected 3.0.0-3.0.4); Fixed in OpenSSL 1.1.1q (Affected 1.1.1-1.1.1p)

## Description

AES OCB mode for 32-bit x86 platforms using the AES-NI assembly optimised implementation will not encrypt the entirety of the data under some circumstances. This could reveal sixteen bytes of data that was preexisting in the memory that wasn't written. In the special case of "in place" encryption, sixteen bytes of the plaintext would be revealed. Since OpenSSL does not support OCB based cipher suites for TLS and DTLS, they are both unaffected. Fixed in OpenSSL 3.0.5 (Affected 3.0.0-3.0.4). Fixed in OpenSSL 1.1.1q (Affected 1.1.1-1.1.1p).

## Affected and fixed versions

- crates.io `openssl-src`: affected \< 111.22.0; fixed 111.22.0, 300.0.9 (osv)
- OpenSSL: Fixed in OpenSSL 3.0.5 (Affected 3.0.0-3.0.4); Fixed in OpenSSL 1.1.1q (Affected 1.1.1-1.1.1p) (cvelist)

## Mitigation

- Upgrade openssl-src to one of 111.22.0, 300.0.9 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-2097.md
Affected: openssl-src < 111.22.0
Fixed in: 111.22.0, 300.0.9

Steps:
1. Search this machine and project for openssl-src (crates.io), 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-2022-2097 being exploited?

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

### How serious is CVE-2022-2097?

Medium: CVSS 5.3 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2022-2097?

openssl-src \< 111.22.0.

### Is there a fix for CVE-2022-2097?

Yes. Fixed in 111.22.0, 300.0.9. Upgrade openssl-src to one of 111.22.0, 300.0.9 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-2097?

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://www.openssl.org/news/secadv/20220705.txt>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6567JERRHHJW2GNGJGKDRNHR7SNPZK7/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R6CK57NBQFTPUMXAPJURCGXUYT76NQAK/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3ZZCZLH7XA/>
- vendor: <https://security.gentoo.org/glsa/202210-02>
- vendor: <https://www.debian.org/security/2023/dsa-5343>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-2097>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2022-0032.html>
- other: <https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=a98f339ddd7e8f487d6e0088d4a9a42324885a93>
- other: <https://git.openssl.org/gitweb/?p=openssl.git%3Ba=commitdiff%3Bh=919925673d6c9cfed3c1085497f5dfbbed5fc431>
- other: <https://security.netapp.com/advisory/ntap-20220715-0011/>
- other: <https://cert-portal.siemens.com/productcert/pdf/ssa-332410.pdf>
- other: <https://lists.debian.org/debian-lts-announce/2023/02/msg00019.html>
- other: <https://security.netapp.com/advisory/ntap-20230420-0008/>
- other: <https://security.netapp.com/advisory/ntap-20240621-0006/>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-332410.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-794697.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-398330.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-879734.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-625862.html>
- other: <https://security.netapp.com/advisory/ntap-20240621-0006>
- other: <https://security.netapp.com/advisory/ntap-20230420-0008>
- other: <https://security.netapp.com/advisory/ntap-20220715-0011>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3ZZCZLH7XA>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/V6567JERRHHJW2GNGJGKDRNHR7SNPZK7>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/R6CK57NBQFTPUMXAPJURCGXUYT76NQAK>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VCMNWKERPBKOEBNL7CLTTX3ZZCZLH7XA>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V6567JERRHHJW2GNGJGKDRNHR7SNPZK7>
- other: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/R6CK57NBQFTPUMXAPJURCGXUYT76NQAK>
- other: <https://github.com/alexcrichton/openssl-src-rs>
- other: <https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=a98f339ddd7e8f487d6e0088d4a9a42324885a93>
- other: <https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff;h=919925673d6c9cfed3c1085497f5dfbbed5fc431>
- other: <https://crates.io/crates/openssl-src>

## 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-2022-2097>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-3wx7-46ch-7rq2> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2022-0032> (license: <https://creativecommons.org/licenses/by/4.0/>)

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