CVE-2026-65625
published medium CVSS 4.0 · 5.9Attacker-controlled AES-GCM authentication tag length allows tag forgery in jose
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| potatosalad | — | jose1.2.0 to < 1.11.13 · Other versions: unaffected | Affected | Not stated | EEF |
| potatosalad | — | potatosalad/erlang-josejose · 8848b172575fb7d7e1e2977e8ae0a21678d2157a to < 3fa1f8e3efda0da5ce6f4c9984789f979dc02740 · Other versions: unaffected | Affected | Not stated | EEF |
Description
The pure-Erlang AES-GCM fallback in jose_jwa_aes derives the number of verified authentication tag bits from the attacker-supplied tag itself. In the {aes_gcm, Bits} clause of block_decrypt/4, the incoming tag is guarded only by is_binary/1, with no check on its length. Verification in gcm_block_decrypt/6 then computes TBits = bit_size(T) and compares only those bits of the real 128-bit tag. An attacker who controls a JWE token can truncate the authentication tag to as little as 8 bits, so only 8 bits are ever checked. This reduces forgery resistance from 2^-128 to 2^-8, and a forged ciphertext is reliably accepted as authentic within 256 attempts without knowledge of the key (an authentication tag forgery and integrity bypass). Supplying a tag longer than 128 bits instead causes a badmatch that crashes the decrypting process. The fallback is reached through the public JWE decryption path whenever AES-GCM is not provided by a native crypto NIF, for example on FIPS or stripped or older OTP builds. This issue affects jose: from 1.2.0 before 1.11.13.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- EEF · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| potatosalad | jose | 1.2.0 to < 1.11.13 (affected · semver)Default: unaffected | EEF · cna |
| potatosalad | jose | 8848b172575fb7d7e1e2977e8ae0a21678d2157a to < 3fa1f8e3efda0da5ce6f4c9984789f979dc02740 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-354 CWE-354 Improper Validation of Integrity Check Value
References
5- EEF CNA record for CVE-2026-65625 https://cna.erlef.org/cves/CVE-2026-65625.html
- Fix commit 3fa1f8e in potatosalad/erlang-jose https://github.com/potatosalad/erlang-jose/commit/3fa1f8e3efda0da5ce6f4c9984789f979dc02740
- Introducing commit 8848b17 in potatosalad/erlang-jose https://github.com/potatosalad/erlang-jose/commit/8848b172575fb7d7e1e2977e8ae0a21678d2157a
- https://github.com/potatosalad/erlang-jose/security/advisories/GHSA-6gxw-6f7r-cjr6
- OSV record EEF-CVE-2026-65625 https://osv.dev/vulnerability/EEF-CVE-2026-65625
Provider assertions
2EEF · cna
Attacker-controlled AES-GCM authentication tag length allows tag forgery in jose
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 92a2895d2e2e839b03d35d272b3feac1f107d3301d144d797a9d196c6b645a74
- Ingested
- 19 Nov 2026, 08:07:30 UTC
- Source record
- Official CVE record