Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. aes-gcm
  4. ›
  5. CVE-2023-42811

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

September 22, 2023 (updated December 31, 2025)

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.

References

  • docs.rs/aes-gcm/latest/src/aes_gcm/lib.rs.html
  • github.com/RustCrypto/AEADs
  • github.com/RustCrypto/AEADs/security/advisories/GHSA-423w-p2w9-r7vq
  • github.com/advisories/GHSA-423w-p2w9-r7vq
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ROBB6TBDAGEQ2WIINR34F3DPSN3FND6K
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/RYQCICN6BVC6I75O3F6W4VK4J3MOYDJU
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U67ZSMNX5V3WTBYPUYF45PSFG4SF5SGF
  • nvd.nist.gov/vuln/detail/CVE-2023-42811
  • rustsec.org/advisories/RUSTSEC-2023-0096.html

Code Behaviors & Features

Detect and mitigate CVE-2023-42811 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.10.0 before 0.10.3

Fixed versions

  • 0.10.3

Solution

Upgrade to version 0.10.3 or above.

Impact 5.5 MEDIUM

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-347: Improper Verification of Cryptographic Signature

Source file

cargo/aes-gcm/CVE-2023-42811.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:24 +0000.