# CVE-2023-42811: AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 7% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-09-22T15:19:15.445Z
- Modified: 2026-10-12T18:00:05.861Z
- Also known as: GHSA-423w-p2w9-r7vq, RUSTSEC-2023-0096
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- RustCrypto AEADs: >= 0.10.0, < 0.10.3
- aes-gcm (crates.io): from 0.10.0 before 0.10.3
- aes-gcm_project aes-gcm: from 0.10.0 before 0.10.3
- fedoraproject fedora: 37; 38; 39

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N`
- GitHub: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N`
- RustSec Advisory Database: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq> (exploit, vendor-advisory, web)
- <https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309> (product, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU/> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF/> (mailing-list)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K/> (mailing-list)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-42811> (advisory)
- <https://github.com/RustCrypto/AEADs> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF> (web)
- <https://rustsec.org/advisories/RUSTSEC-2023-0096.html> (advisory, web)
- <https://crates.io/crates/aes-gcm> (package)
- <https://github.com/RustCrypto/AEADs/pull/551> (web)

## Sources

- CVE List: [CVE-2023-42811](https://www.cve.org/CVERecord?id=CVE-2023-42811), CVE Terms of Use, modified 2025-06-18
- GitHub Advisory Database: [GHSA-423w-p2w9-r7vq](https://github.com/advisories/GHSA-423w-p2w9-r7vq), CC-BY-4.0, modified 2026-02-03
- RustSec Advisory Database: [RUSTSEC-2023-0096](https://rustsec.org/advisories/RUSTSEC-2023-0096.html), CC0-1.0, modified 2026-10-12
- NVD: [CVE-2023-42811](https://nvd.nist.gov/vuln/detail/CVE-2023-42811), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-42811 · Whole record: https://cve.day/CVE-2023-42811.json · Rebuilt by cve.day 2026-11-25T22:58:28.077Z
