CVE-2026-65628
Medium 5.9No known exploitationFix availableInfinite recursion (CPU denial-of-service) in JOSE.JWK.shared_secret/2 on mismatched key types
Record last updated
CVSS score
Medium on a 0 to 10 scale
EPSS, chance of exploitation in 30 days
Higher than 3% of scored CVEs. A prediction, not evidence.
CISA remediation deadline
Not in the KEV catalog
Description
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.
Weakness: CWE-674
Patching and mitigation
- Patch status
- Fix available (source: Microsoft MSRC)
- Fix documented (source date)
- Mitigation
- 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. Source (opens in a new tab)
- Vendor guidance
- github.com (opens in a new tab)
Affected products
| Vendor | Product | Affected versions | Fixed in | Per |
|---|---|---|---|---|
| Microsoft | azl3 rabbitmq-server 3.13.7-10 on Azure Linux 3.0 | Not documented | Not documented | Microsoft MSRC |
| potatosalad | jose | from 1.5.0 before 1.11.13 | 1.11.13 | CVE Program |
| potatosalad | jose | from 7b80b9f55b9898e1a6901ce136061b241b021d7c before 26182a7de63b91550035d3f08741f7d17f1f675a | 26182a7de63b91550035d3f08741f7d17f1f675a | CVE Program |
Timeline
Disclosure
CVE record published by EEF
Source: CVE Program (opens in a new tab)
Advisory
Microsoft advisory published
Advisory change
Microsoft advisory revised (2.0): Information published.
Advisory change
Microsoft advisory revised (3.0): Information published.
Patch
Fix documented by Microsoft MSRC
Vendor guidance and references
- Fix commit 26182a7 in potatosalad/erlang-jose (opens in a new tab)patch
- https://github.com/potatosalad/erlang-jose/security/advisories/GHSA-fpj2-9h59-32pp (opens in a new tab)vendor-advisory, related
- Microsoft Security Update Guide (opens in a new tab)vendor-advisory
- EEF CNA record for CVE-2026-65628 (opens in a new tab)related
- Introducing commit 7b80b9f in potatosalad/erlang-jose (opens in a new tab)related
- OSV record EEF-CVE-2026-65628 (opens in a new tab)related