# CVE-2026-65630: Timing side-channel in pure-Erlang X25519 scalar multiplication leaks the private key 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:H/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Attack requirements: Present; Privileges required: None; User interaction: None; Confidentiality impact: High; Integrity impact: None; Availability impact: None; 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.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-208
- **Published:** 2026-10-26T19:54:07.686Z
- **Modified:** 2026-11-19T08:00:58.615Z

## Who should check

- Anyone running potatosalad jose \>= 1.10.0, \< 1.11.13
- Anyone running potatosalad jose \>= 8e532095de114ef4bf88a9ec5d651fa251a972b3, \< 3670f873c274bba86fb7f5ee5727a7efa1322b79

## Description

Observable Timing Discrepancy vulnerability in potatosalad jose allows recovery of a long-term X25519 private key through a timing side channel in the pure-Erlang Curve25519 fallback.

The pure-Erlang X25519 implementation performs scalar multiplication over the secret private key using a recursive Montgomery ladder (jose\_jwa\_x25519:curve25519/2) whose clauses branch on individual bits of the clamped private scalar, and whose per-step operations (jose\_jwa\_x25519:montgomery\_add/3 and jose\_jwa\_x25519:montgomery\_double/1) and field inversion are built from value-dependent Erlang bignum arithmetic (multiplication, remainder, and modular exponentiation). Although the ladder is operation-count balanced and fixed at 254 steps, the concrete integer values processed at each step, and therefore the running time, depend on the secret scalar. The execution time of the public entry points jose\_jwa\_x25519:scalarmult/2, jose\_jwa\_x25519:x25519/2, jose\_jwa\_x25519:x25519\_base/1, and jose\_jwa\_x25519:sk\_to\_pk/1 is thus a function of the private key.

This path is reachable from the public API, most notably when a service decrypts attacker-supplied ECDH-ES (JWE) messages with a long-term X25519 key (for example through JOSE.JWK.box\_decrypt\_ecdh\_es/2, which reaches jose\_jwa\_curve25519:x25519\_shared\_secret/2 and the ladder). An attacker who can submit ciphertexts and measure decryption timing can, in principle, recover the private key bit by bit, defeating the resistance X25519 was designed to provide. Recovery of the key compromises the confidentiality and authenticity of all data protected by it.

This issue affects jose: from 1.10.0 before 1.11.13.

## Affected and fixed versions

- potatosalad jose: \>= 1.10.0, \< 1.11.13 (cvelist)
- potatosalad jose: \>= 8e532095de114ef4bf88a9ec5d651fa251a972b3, \< 3670f873c274bba86fb7f5ee5727a7efa1322b79 (cvelist)

## Mitigation

- Upgrade jose to 1.11.13 or later.
- Upgrade jose to 3670f873c274bba86fb7f5ee5727a7efa1322b79 or later.
- Vendor workaround: Use a constant-time native X25519 implementation for private-key operations: install the libsodium or libdecaf NIF, or run on an OTP release whose crypto application provides x25519, and do not force the pure-Erlang Curve25519 fallback (JOSE.crypto\_fallback(true) or JOSE.curve25519\_module(:jose\_jwa\_curve25519)) for long-lived keys.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-65630. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-65630.md
Affected: potatosalad jose >= 1.10.0, < 1.11.13; potatosalad jose >= 8e532095de114ef4bf88a9ec5d651fa251a972b3, < 3670f873c274bba86fb7f5ee5727a7efa1322b79
Fixed in: potatosalad jose 1.11.13, potatosalad jose 3670f873c274bba86fb7f5ee5727a7efa1322b79

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-65630 being exploited?

There is no confirmed exploitation: CVE-2026-65630 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.17% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-65630?

Medium: CVSS 5.9 (v4.0, scored by CNA). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-65630?

potatosalad jose \>= 1.10.0, \< 1.11.13; potatosalad jose \>= 8e532095de114ef4bf88a9ec5d651fa251a972b3, \< 3670f873c274bba86fb7f5ee5727a7efa1322b79.

### Is there a fix for CVE-2026-65630?

Yes. Fixed in potatosalad jose 1.11.13, potatosalad jose 3670f873c274bba86fb7f5ee5727a7efa1322b79. Upgrade jose to 1.11.13 or later. Upgrade jose to 3670f873c274bba86fb7f5ee5727a7efa1322b79 or later. Vendor workaround: Use a constant-time native X25519 implementation for private-key operations: install the libsodium or libdecaf NIF, or run on an OTP release whose crypto application provides x25519, and do not force the pure-Erlang Curve25519 fallback (JOSE.crypto\_fallback(true) or JOSE.curve25519\_module(:jose\_jwa\_curve25519)) for long-lived keys.

### How do I check if I'm affected by CVE-2026-65630?

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-xvr2-gggj-h2pp>
- patch: <https://github.com/potatosalad/erlang-jose/commit/8e532095de114ef4bf88a9ec5d651fa251a972b3>
- patch: <https://github.com/potatosalad/erlang-jose/commit/3670f873c274bba86fb7f5ee5727a7efa1322b79>
- other: <https://cna.erlef.org/cves/CVE-2026-65630.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-65630>

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

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