AEADs/ascon-aead: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-27498
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 09:38 UTC · Revision 1
Source evidence
AEADs/ascon-aead: Plaintext exposed in decrypt_in_place_detached even on tag verification failure
core-osv · Original sourcePublished 3 Mar 2025, 16:52 UTC
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.
osv:CVE-2025-27498
Complete source record
{
"id": "8bfd928219a5309a64a15451a5b2f7f3be66528578d186f74f6329c85c1c21aa",
"url": "https://osv.dev/vulnerability/CVE-2025-27498",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "AEADs/ascon-aead: Plaintext exposed in decrypt_in_place_detached even on tag verification failure",
"summary": "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.",
"evidence": "osv:CVE-2025-27498",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-27498",
"aliases": [
"CVE-2025-27498",
"GHSA-r38m-44fw-h886"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/rustcrypto/aeads",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "ff0118562dc56007099e9e19874855c9ecd75f90"
},
{
"fixed": "d1d749ba57e38e65b0e037cd744d0b17f7254037"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "0.4.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "d1d749ba57e38e65b0e037cd744d0b17f7254037"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"mgm-v0.4.2",
"ccm-v0.4.3",
"ccm-v0.4.2",
"ccm-v0.4.1",
"aes-siv-v0.6.1",
"deoxys-v0.0.1",
"aes-gcm-siv-v0.10.1",
"aes-gcm-v0.9.2",
"mgm-v0.4.1",
"aes-gcm-v0.9.1",
"mgm-v0.4.0",
"eax-v0.4.0",
"aes-siv-v0.6.0",
"aes-gcm-siv-v0.10.0",
"crypto_box-v0.6.0",
"xsalsa20poly1305-v0.7.1",
"ccm-v0.4.0",
"xsalsa20poly1305-v0.7.0",
"chacha20poly1305-v0.8.0",
"aes-gcm-v0.9.0",
"chacha20poly1305-v0.7.1",
"xsalsa20poly1305-v0.6.0",
"mgm-v0.3.0",
"eax-v0.3.0",
"crypto_box-v0.5.0",
"chacha20poly1305-v0.7.0",
"ccm-v0.3.0",
"aes-siv-v0.5.0",
"aes-gcm-v0.8.0",
"aes-gcm-siv-v0.9.0",
"eax-v0.2.0",
"xsalsa20poly1305-v0.5.0",
"crypto_box-v0.4.0",
"chacha20poly1305-v0.6.0",
"ccm-v0.2.0",
"aes-siv-v0.4.0",
"aes-gcm-v0.7.0",
"aes-gcm-siv-v0.8.0",
"crypto_box-v0.3.0",
"mgm-v0.2.1",
"mgm-v0.2.0",
"mgm-v0.1.1",
"mgm-v0.1.0",
"ccm-v0.1.0",
"xsalsa20poly1305-v0.4.2",
"xsalsa20poly1305-v0.4.1",
"chacha20poly1305-v0.5.1",
"crypto_box-v0.2.0",
"xsalsa20poly1305-v0.4.0",
"chacha20poly1305-v0.5.0",
"aes-siv-v0.3.0",
"aes-gcm-siv-v0.5.0",
"aes-gcm-v0.6.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-27498.json"
}
}
],
"modified": "2026-10-28T02:30:27.847224512Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27498.json",
"https://github.com/RustCrypto/AEADs/security/advisories/GHSA-r38m-44fw-h886",
"https://nvd.nist.gov/vuln/detail/CVE-2025-27498",
"https://github.com/RustCrypto/AEADs/commit/d1d749ba57e38e65b0e037cd744d0b17f7254037"
],
"provider_metadata": {
"cwe_ids": [
"CWE-347"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/27xxx/CVE-2025-27498.json"
}
},
"related_cves": [
{
"value": "CVE-2025-27498",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494259,
"published_at": "2025-03-03T16:52:02.75+00:00"
}