CVE-2023-42811
AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
Also known as GHSA-423w-p2w9-r7vq, RUSTSEC-2023-0096
Mitigation
- Upgrade aes-gcm to 0.10.3 or later.
Who should check
- Projects that depend on crates.io package aes-gcm (>= 0.10.0, < 0.10.3)
- Anyone running RustCrypto AEADs >= 0.10.0, < 0.10.3
Vulnerability facts
- Affected
- aes-gcm >= 0.10.0, < 0.10.3
- Fixed in
- 0.10.3
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: High
- Availability impact: None
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-347
- Modified
Description
aes-gcm is a pure Rust implementation of the AES-GCM. Starting in version 0.10.0 and prior to version 0.10.3, in the AES GCM implementation of decrypt_in_place_detached, the decrypted ciphertext (i.e. the correct plaintext) is exposed even if tag verification fails. If a program using the `aes-gcm` crate's `decrypt_in_place*` APIs accesses the buffer after decryption failure, it will contain a decryption of an unauthenticated input. Depending on the specific nature of the program this may enable Chosen Ciphertext Attacks (CCAs) which can cause a catastrophic breakage of the cipher including full plaintext recovery. Version 0.10.3 contains a fix for this issue.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io aes-gcm | >= 0.10.0, < 0.10.3 | 0.10.3 | osv |
| RustCrypto AEADs | >= 0.10.0, < 0.10.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-42811. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-42811.md Affected: aes-gcm >= 0.10.0, < 0.10.3 Fixed in: 0.10.3 Steps: 1. Search this machine and project for aes-gcm (crates.io), RustCrypto AEADs: 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.
References
Vendor advisories
Other
- https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K/
- https://github.com/RustCrypto/AEADs
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF
- https://crates.io/crates/aes-gcm
FAQ
Is CVE-2023-42811 being exploited?
There is no confirmed exploitation: CVE-2023-42811 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-42811?
Medium: CVSS 4.7 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-42811?
aes-gcm >= 0.10.0, < 0.10.3.
Is there a fix for CVE-2023-42811?
Yes. Fixed in 0.10.3. Upgrade aes-gcm to 0.10.3 or later.
How do I check if I'm affected by CVE-2023-42811?
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.