CVE-2025-27498

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-27498
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-27498.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-27498
Aliases
Downstream
Published
2025-03-03T16:52:02Z
Modified
2025-10-22T18:45:36.590188Z
Severity
  • 5.7 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:A/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
AEADs/ascon-aead: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
Details

aes-gcm is a pure Rust implementation of the AES-GCM. In decryptinplacedetached, the decrypted ciphertext (which is the correct ciphertext) is exposed even if the tag is incorrect. This is because in decryptinplace 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.

Database specific
{
    "cwe_ids": [
        "CWE-347"
    ]
}
References

Affected packages

Git / github.com/rustcrypto/aeads

Affected ranges

Type
GIT
Repo
https://github.com/rustcrypto/aeads
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

aes-gcm-siv-v0.*

aes-gcm-siv-v0.1.0
aes-gcm-siv-v0.10.0
aes-gcm-siv-v0.10.1
aes-gcm-siv-v0.2.0
aes-gcm-siv-v0.2.1
aes-gcm-siv-v0.3.0
aes-gcm-siv-v0.4.0
aes-gcm-siv-v0.4.1
aes-gcm-siv-v0.5.0
aes-gcm-siv-v0.8.0
aes-gcm-siv-v0.9.0

aes-gcm-v0.*

aes-gcm-v0.1.0
aes-gcm-v0.1.1
aes-gcm-v0.2.0
aes-gcm-v0.2.1
aes-gcm-v0.3.0
aes-gcm-v0.3.1
aes-gcm-v0.3.2
aes-gcm-v0.4.0
aes-gcm-v0.4.1
aes-gcm-v0.4.2
aes-gcm-v0.5.0
aes-gcm-v0.6.0
aes-gcm-v0.7.0
aes-gcm-v0.8.0
aes-gcm-v0.9.0
aes-gcm-v0.9.1
aes-gcm-v0.9.2

aes-siv-v0.*

aes-siv-v0.1.1
aes-siv-v0.1.2
aes-siv-v0.2.0
aes-siv-v0.3.0
aes-siv-v0.4.0
aes-siv-v0.5.0
aes-siv-v0.6.0
aes-siv-v0.6.1

ccm-v0.*

ccm-v0.1.0
ccm-v0.2.0
ccm-v0.3.0
ccm-v0.4.0
ccm-v0.4.1
ccm-v0.4.2
ccm-v0.4.3

chacha20poly1305-v0.*

chacha20poly1305-v0.1.0
chacha20poly1305-v0.1.1
chacha20poly1305-v0.1.2
chacha20poly1305-v0.2.0
chacha20poly1305-v0.2.1
chacha20poly1305-v0.2.2
chacha20poly1305-v0.3.0
chacha20poly1305-v0.3.1
chacha20poly1305-v0.3.2
chacha20poly1305-v0.3.3
chacha20poly1305-v0.4.0
chacha20poly1305-v0.4.1
chacha20poly1305-v0.5.0
chacha20poly1305-v0.5.1
chacha20poly1305-v0.6.0
chacha20poly1305-v0.7.0
chacha20poly1305-v0.7.1
chacha20poly1305-v0.8.0

crypto_box-v0.*

crypto_box-v0.1.0
crypto_box-v0.2.0
crypto_box-v0.3.0
crypto_box-v0.4.0
crypto_box-v0.5.0
crypto_box-v0.6.0

deoxys-v0.*

deoxys-v0.0.1

eax-v0.*

eax-v0.2.0
eax-v0.3.0
eax-v0.4.0

mgm-v0.*

mgm-v0.1.0
mgm-v0.1.1
mgm-v0.2.0
mgm-v0.2.1
mgm-v0.3.0
mgm-v0.4.0
mgm-v0.4.1
mgm-v0.4.2

xsalsa20poly1305-v0.*

xsalsa20poly1305-v0.1.0
xsalsa20poly1305-v0.2.0
xsalsa20poly1305-v0.2.1
xsalsa20poly1305-v0.3.0
xsalsa20poly1305-v0.3.1
xsalsa20poly1305-v0.4.0
xsalsa20poly1305-v0.4.1
xsalsa20poly1305-v0.4.2
xsalsa20poly1305-v0.5.0
xsalsa20poly1305-v0.6.0
xsalsa20poly1305-v0.7.0
xsalsa20poly1305-v0.7.1