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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/RustCrypto/AEADs/security/advisories/GHSA-r38m-44fw-h886 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/RustCrypto/AEADs/commit/d1d749ba57e38e65b0e037cd744d0b17f7254037 patch
- github.com product
- github.com
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- Debian Security Tracker CVE-2025-27498 vendor-advisory