CVE-2023-42811
MEDIUM 5.5CVSS 3.1AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
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.
- Published
- 22 Sep 2023
- Last modified
- 12 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-347
- Also known as
- GHSA-423w-p2w9-r7vqRUSTSEC-2023-0096
- Sources
- NVDJSONOSV GHSA-423w-p2w9-r7vqJSONOSV RUSTSEC-2023-0096JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N |
| OSV | RustSec | CVSS 3.1 | MEDIUM 4.7 | CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | aes-gcm_project | aes-gcmcpe:2.3:a:aes-gcm_project:aes-gcm:*:*:*:*:*:rust:*:* |
>= 0.10.0, < 0.10.3 | 0.10.3 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* |
= 38 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* |
= 39 | |
| OSV | crates.io | aes-gcm | >= 0.10.0, < 0.10.3 | 0.10.3 |
References
- https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309 · Product, WEB
- https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq · Exploit, Vendor Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K/ · Mailing List, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU/ · Mailing List, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF/ · Mailing List, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-42811 · ADVISORY
- https://github.com/RustCrypto/AEADs · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2023-0096.html · WEB, ADVISORY
- https://crates.io/crates/aes-gcm · PACKAGE
- https://github.com/RustCrypto/AEADs/pull/551 · WEB
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 22 Sep 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Nov 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 Sep 2023)