CVE-2023-42811
published 2023-09-22CVE-2023-42811: 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…
PriorityP425medium5.5CVSS 3.1
AVLACLPRLUINSUCHINAN
EPSS
0.26%
17.8th percentile
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
7 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| aes-gcm_project | aes-gcm | >= 0.10.0 < 0.10.3 | 0.10.3 |
| aes-gcm_project | aes-gcm | >= 0.10.0 < 0.10.3 | 0.10.3 |
| debian | rust-aes-gcm | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| rustcrypto | aeads | — | — |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vendor_debian4.7LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Plaintext exposed in decrypt_in_place_detached even on tag verification failure
osv·2023-11-22
CVE-2023-42811 Plaintext exposed in decrypt_in_place_detached even on tag verification failure
Plaintext exposed in decrypt_in_place_detached even on tag verification failure
## Summary
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.
## Impact
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.
## Details
As seen in the implementation of decrypt_in_place_detached for
AES GCM, if the tag verification fails, an error is returned.
Because the decryption of the ciphertext is done
OSV
AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
osv·2023-09-22
CVE-2023-42811 [MEDIUM] AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
### Summary
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.
### Impact
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.
### Details
As seen in the implementation of [decrypt_in_place_detached](https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309) for AES GCM, if the tag verificat
GHSA
AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
ghsa·2023-09-22
CVE-2023-42811 [MEDIUM] CWE-347 AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
### Summary
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.
### Impact
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.
### Details
As seen in the implementation of [decrypt_in_place_detached](https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309) for AES GCM, if the tag verificat
Debian
CVE-2023-42811: rust-aes-gcm - aes-gcm is a pure Rust implementation of the AES-GCM. Starting in version 0.10.0...
vendor_debian·2023·CVSS 4.7
CVE-2023-42811 [MEDIUM] CVE-2023-42811: rust-aes-gcm - aes-gcm is a pure Rust implementation of the AES-GCM. Starting in version 0.10.0...
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.
Scope: local
forky: resolved
sid: resolved
trixie: resolved
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vqhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K/https://lists.fedoraproject.org/archives/list/[email protected]/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU/https://lists.fedoraproject.org/archives/list/[email protected]/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF/https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vqhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K/https://lists.fedoraproject.org/archives/list/[email protected]/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU/https://lists.fedoraproject.org/archives/list/[email protected]/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF/
2023-09-22
Published