{"id":"CVE-2023-42811","state":"PUBLISHED","title":"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.","publishedAt":"2023-09-22T15:19:15.445Z","updatedAt":"2025-06-18T14:22:56.534Z","severity":{"score":4.7,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["RustCrypto AEADs"],"affected":[{"vendor":"RustCrypto","product":"AEADs","versions":[{"version":">= 0.10.0, < 0.10.3","status":"affected"}]}],"references":["https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq","https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K/"],"weaknesses":["CWE-347"],"ingestedAt":"2026-10-29T20:06:17.512Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/42xxx/CVE-2023-42811.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-42811","state":"PUBLISHED","datePublished":"2023-09-22T15:19:15.445Z","dateUpdated":"2025-06-18T14:22:56.534Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-09-14T16:13:33.307Z"},"containers":{"cna":{"title":"AEADs/aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure","descriptions":[{"lang":"en","value":"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":[{"vendor":"RustCrypto","product":"AEADs","versions":[{"version":">= 0.10.0, < 0.10.3","status":"affected"}]}],"references":[{"url":"https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq","name":"https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq","tags":["x_refsource_CONFIRM"]},{"url":"https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309","name":"https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K/"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":4.7,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-347","lang":"en","description":"CWE-347: Improper Verification of Cryptographic Signature","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2023-10-03T01:06:15.294Z"},"source":{"advisory":"GHSA-423w-p2w9-r7vq","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq","name":"https://github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309","name":"https://docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html#309","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K/","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T19:30:24.555Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-02-19T18:49:22.620440Z","id":"CVE-2023-42811","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-18T14:22:56.534Z"}}]}}}