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 February 16, 2024)

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

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. Learn more about Dependency Scanning →

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 4.7 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:L/I:H/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 Wed, 14 May 2025 12:16:13 +0000.