Skip to content

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

MediumCVSS 5.6 EPSS 0.13%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

5 packages: 1 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/rust-aes-gcm(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/rust-aes-gcm(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/rust-aes-gcm(Ubuntu 26.10) All versions No fix listed No fix yet
crates.io ascon_aead(crates.io) < 0.4.3; <= 0.4.2 0.4.3 Fixed
RustCrypto AEADs = < 0.4.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io ascon_aead(crates.io) < 0.4.3 0.4.3
crates.io ascon_aead(crates.io) <= 0.4.2 No fix listed
RustCrypto AEADs = < 0.4.3 No fix listed
ubuntu/rust-aes-gcm(Ubuntu:24.04) All versions No fix listed
ubuntu/rust-aes-gcm(Ubuntu:26.04) All versions No fix listed
ubuntu/rust-aes-gcm(Ubuntu:26.10) All versions No fix listed

References