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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | ascon_aead | < 0.4.3 | 0.4.3 | GHSA-r38m-44fw-h886 |