Bug 1215655

Summary: VUL-0: CVE-2023-42811: deno: aes-gcm: chosen ciphertext attack via `decrypt_in_place*` APIs
Product: [openSUSE] openSUSE Tumbleweed Reporter: Carlos López <carlos.lopez>
Component: SecurityAssignee: Avindra Goolcharan <aavindraa>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: security-team
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/379692/
Whiteboard:
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on: 1215654    
Bug Blocks:    

Description Carlos López 2023-09-25 07:36:29 UTC
+++ This bug was initially created as a clone of Bug #1215654 +++

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

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-42811
https://www.cve.org/CVERecord?id=CVE-2023-42811
https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309
https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq