# CVE-2026-65625: Attacker-controlled AES-GCM authentication tag length allows tag forgery in jose

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.9
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.15% (percentile 2, 2026-11-26)
- **CWE:** CWE-354
- **Published:** 2026-10-26T19:52:54.987Z
- **Modified:** 2026-11-19T08:03:11.698Z

## Who should check

- Anyone running potatosalad jose \>= 1.2.0, \< 1.11.13
- Anyone running potatosalad jose \>= 8848b172575fb7d7e1e2977e8ae0a21678d2157a, \< 3fa1f8e3efda0da5ce6f4c9984789f979dc02740

## 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

- potatosalad jose: \>= 1.2.0, \< 1.11.13 (cvelist)
- potatosalad jose: \>= 8848b172575fb7d7e1e2977e8ae0a21678d2157a, \< 3fa1f8e3efda0da5ce6f4c9984789f979dc02740 (cvelist)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/potatosalad/erlang-jose/security/advisories/GHSA-6gxw-6f7r-cjr6>
- patch: <https://github.com/potatosalad/erlang-jose/commit/8848b172575fb7d7e1e2977e8ae0a21678d2157a>
- patch: <https://github.com/potatosalad/erlang-jose/commit/3fa1f8e3efda0da5ce6f4c9984789f979dc02740>
- other: <https://cna.erlef.org/cves/CVE-2026-65625.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-65625>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-65625>

HTML: <https://flawdb.com/CVE-2026-65625> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-65625>
