rust-aes-gcm — security advisory
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
- rust-aes-gcm
- Affected versions
- 0.10.3-1, 0.10.3-2, 0.11.0-1
- Fixed versions
- Not specified
- CVEs
- CVE-2025-27498
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:25 UTC · Revision 1
Source evidence
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:UBUNTU-CVE-2025-27498
rust-aes-gcm
Fixed versions: Not specified
rust-aes-gcm
Fixed versions: Not specified
rust-aes-gcm
Fixed versions: Not specified
rust-aes-gcm
Fixed versions: Not specified
Complete source record
{
"id": "cdaecb19b4a4cf3f26bf733b755d64c3d3ee0e2dbebb9ce271108a0e14e7b661",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-27498",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-27498",
"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:UBUNTU-CVE-2025-27498",
"products": [
{
"name": {
"value": "rust-aes-gcm",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.3-1",
"evidence": "/affected/0/versions"
},
{
"value": "0.10.3-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "rust-aes-gcm",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.3-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "rust-aes-gcm",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.3-2",
"evidence": "/affected/2/versions"
},
{
"value": "0.11.0-1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "rust-aes-gcm",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.10.3-2",
"evidence": "/affected/3/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2025-27498",
"aliases": [
"UBUNTU-CVE-2025-27498"
],
"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"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-aes-gcm",
"purl": "pkg:deb/ubuntu/rust-aes-gcm?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"0.10.3-1",
"0.10.3-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27498.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-aes-gcm-dev",
"binary_version": "0.10.3-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-aes-gcm",
"purl": "pkg:deb/ubuntu/rust-aes-gcm?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"0.10.3-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27498.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-aes-gcm-dev",
"binary_version": "0.10.3-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-aes-gcm",
"purl": "pkg:deb/ubuntu/rust-aes-gcm?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"0.10.3-2",
"0.11.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27498.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-aes-gcm-dev",
"binary_version": "0.11.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "rust-aes-gcm",
"purl": "pkg:deb/ubuntu/rust-aes-gcm?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"0.10.3-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27498.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "librust-aes-gcm-dev",
"binary_version": "0.10.3-2"
}
]
}
}
],
"modified": "2026-10-17T12:56:48.991299855Z",
"provider": "osv",
"upstream": [
"CVE-2025-27498"
],
"references": [
"https://ubuntu.com/security/CVE-2025-27498",
"https://www.cve.org/CVERecord?id=CVE-2025-27498",
"https://github.com/RustCrypto/AEADs/commit/d1d749ba57e38e65b0e037cd744d0b17f7254037",
"https://github.com/RustCrypto/AEADs/security/advisories/GHSA-r38m-44fw-h886"
]
},
"related_cves": [
{
"value": "CVE-2025-27498",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356367,
"published_at": "2025-03-03T17:15:00+00:00"
}