Information Exposure Affecting aes-gcm package, versions >0.10.0 <0.10.3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-AESGCM-5916453
  • published24 Sept 2023
  • disclosed22 Sept 2023
  • creditnandita-v

Introduced: 22 Sep 2023

CVE-2023-42811  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

Upgrade aes-gcm to version 0.10.3 or higher.

Overview

aes-gcm is an implementation of the AES-GCM Authenticated Encryption with Associated Data (AEAD) cipher

Affected versions of this package are vulnerable to Information Exposure in the decrypt_in_place_detached() function that allows a user to expose the decrypted ciphertext even if tag verification fails, by accessing the buffer after decryption failure. This may enable Chosen Ciphertext Attacks (CCAs) which can cause a catastrophic breakage of the cipher including full plaintext recovery.

References

CVSS Scores

version 3.1