CVE-2026-65625
Attacker-controlled AES-GCM authentication tag length allows tag forgery in jose
Mitigation
- Upgrade jose to 1.11.13 or later.
- Upgrade jose to 3fa1f8e3efda0da5ce6f4c9984789f979dc02740 or later.
- Vendor workaround: Ensure the runtime provides a crypto provider with native AES-GCM support (a standard Erlang/OTP build linked against OpenSSL) so that JOSE dispatches AES-GCM to the native crypto NIF instead of the jose_jwa_aes fallback.
Who should check
- Anyone running potatosalad jose >= 1.2.0, < 1.11.13
- Anyone running potatosalad jose >= 8848b172575fb7d7e1e2977e8ae0a21678d2157a, < 3fa1f8e3efda0da5ce6f4c9984789f979dc02740
Vulnerability facts
- Affected
- potatosalad jose >= 1.2.0, < 1.11.13; potatosalad jose >= 8848b172575fb7d7e1e2977e8ae0a21678d2157a, < 3fa1f8e3efda0da5ce6f4c9984789f979dc02740
- Fixed in
- potatosalad jose 1.11.13, potatosalad jose 3fa1f8e3efda0da5ce6f4c9984789f979dc02740
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.9 (v4.0, CNA)CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: High
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.15% chance of exploitation in 30 days (percentile 2, 2026-11-26)
- CWE
- CWE-354
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| potatosalad jose | >= 1.2.0, < 1.11.13 | — | cvelist |
| potatosalad jose | >= 8848b172575fb7d7e1e2977e8ae0a21678d2157a, < 3fa1f8e3efda0da5ce6f4c9984789f979dc02740 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-65625. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-65625.md Affected: potatosalad jose >= 1.2.0, < 1.11.13; potatosalad jose >= 8848b172575fb7d7e1e2977e8ae0a21678d2157a, < 3fa1f8e3efda0da5ce6f4c9984789f979dc02740 Fixed in: potatosalad jose 1.11.13, potatosalad jose 3fa1f8e3efda0da5ce6f4c9984789f979dc02740 Steps: 1. Search this machine and project for potatosalad jose: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-65625 being exploited?
There is no confirmed exploitation: CVE-2026-65625 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.15% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-65625?
Medium: CVSS 5.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-65625?
potatosalad jose >= 1.2.0, < 1.11.13; potatosalad jose >= 8848b172575fb7d7e1e2977e8ae0a21678d2157a, < 3fa1f8e3efda0da5ce6f4c9984789f979dc02740.
Is there a fix for CVE-2026-65625?
Yes. Fixed in potatosalad jose 1.11.13, potatosalad jose 3fa1f8e3efda0da5ce6f4c9984789f979dc02740. Upgrade jose to 1.11.13 or later. Upgrade jose to 3fa1f8e3efda0da5ce6f4c9984789f979dc02740 or later. Vendor workaround: Ensure the runtime provides a crypto provider with native AES-GCM support (a standard Erlang/OTP build linked against OpenSSL) so that JOSE dispatches AES-GCM to the native crypto NIF instead of the jose_jwa_aes fallback.
How do I check if I'm affected by CVE-2026-65625?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.