CVE-2023-42811

Public Exploit
AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure

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.

Category

4.7
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.01%
Vendor Advisory github.com
Affected: RustCrypto AEADs
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-42811?
CVE-2023-42811 has been scored as a medium severity vulnerability.
How to fix CVE-2023-42811?
To fix CVE-2023-42811, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-42811 being actively exploited in the wild?
It is possible that CVE-2023-42811 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-42811?
CVE-2023-42811 affects RustCrypto AEADs.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.