Skip to content
OpenAdvisories
Medium · 5.6 CVE-2025-27498 EUVD-2025-5557GHSA-r38m-44fw-h886

AEADs/ascon-aead: Plaintext exposed in decrypt_in_place_detached even on tag verification failure

Published Mar 3, 2025 · Updated Mar 3, 2025 · Assigned by GitHub_M

Description

aes-gcm is a pure Rust implementation of the AES-GCM. In decrypt_in_place_detached, the decrypted ciphertext (which is the correct ciphertext) is exposed even if the tag is incorrect. This is because in decrypt_inplace in asconcore.rs, tag verification causes an error to be returned with the plaintext contents still in buffer. The vulnerability is fixed in 0.4.3.

Affected products

VendorProductAffectedFixed
RustCrypto AEADs < 0.4.3 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 rust-aes-gcm No fix yet —
Ubuntu 26.04 LTS rust-aes-gcm No fix yet —
Ubuntu 25.10 rust-aes-gcm No fix yet —
Ubuntu 24.04 LTS rust-aes-gcm No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io ascon_aead < 0.4.3 0.4.3 GHSA-r38m-44fw-h886

References