CVE-2026-65628Infinite recursion (CPU denial-of-service) in JOSE.JWK.shared_secret/2 on mismatched key…
jose_jwk:shared_secret/2 (exposed in Elixir as JOSE.JWK.shared_secret/2) derives an ECDH shared secret from two JWKs. Its first function clause only matches when both JWKs carry the same key type (kty) module, and its fallback clause re-invokes itself as shared_secret(from(YourJWK), from(MyJWK)). Because from/1 returns an already-parsed jose_jwk record unchanged, passing two JWKs whose key types differ (for example an EC key and an RSA key) makes the fallback clause re-enter with identical arguments, producing an unbounded tail-recursive loop that never returns and never crashes. An application that derives a shared secret from an externally supplied peer public key without first checking that the peer key's type and curve match its own key can be driven into this loop by an attacker-controlled JWK, pinning an Erlang scheduler at 100% CPU. Repeated requests exhaust the available schedulers, resulting in a denial of service. This issue affects jose: from 1.5.0 before 1.11.13.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | jose | Fix pending | UBUNTU-CVE-2026-65628 | |
| Ubuntu 26.04 | jose | Under investigation | UBUNTU-CVE-2026-65628 | |
| Ubuntu 24.04 | jose | Under investigation | UBUNTU-CVE-2026-65628 | |
| Ubuntu 22.04 | jose | Under investigation | UBUNTU-CVE-2026-65628 | |
| Ubuntu 20.04 | jose | Fix pending | UBUNTU-CVE-2026-65628 | |
| Ubuntu 18.04 | jose | Fix pending | UBUNTU-CVE-2026-65628 | |
| Debian 14 | erlang-jose | Fixed | 1.11.13-1 | DEBIAN-CVE-2026-65628 |
| Debian 13 | erlang-jose | Fix pending | DEBIAN-CVE-2026-65628 | |
| Debian 12 | erlang-jose | Fix pending | DEBIAN-CVE-2026-65628 |
What the vendor says
As published in the CVE record by EEF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- potatosalad jose: affected: 1.5.0 to before 1.11.13; fixed in
1.11.13 - potatosalad jose: affected: 7b80b9f55b9898e1a6901ce136061b241b021d7c to before 26182a7de63b91550035d3f08741f7d17f1f675a; fixed in
26182a7de63b91550035d3f08741f7d17f1f675a
Workaround: Before calling JOSE.JWK.shared_secret/2, verify that the externally supplied peer key's type (kty) and curve match your own key, and reject any key whose type does not match before attempting derivation.
Vendor advisories:
- https://github.com/potatosalad/erlang-jose/security/advisories/GHSA-fpj2-9h59-32pp (vendor-advisory)
- https://github.com/potatosalad/erlang-jose/commit/26182a7de63b91550035d3f08741f7d17f1f675a (patch)
References
- https://github.com/potatosalad/erlang-jose/security/advisories/GHSA-fpj2-9h59-32pp
- https://cna.erlef.org/cves/CVE-2026-65628.html
- https://osv.dev/vulnerability/EEF-CVE-2026-65628
- https://github.com/potatosalad/erlang-jose/commit/7b80b9f55b9898e1a6901ce136061b241b021d7c
- https://github.com/potatosalad/erlang-jose/commit/26182a7de63b91550035d3f08741f7d17f1f675a
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.