Skip to content
OpenAdvisories
Medium · 5.9 CVE-2026-65628 EEF-CVE-2026-65628EUVD-2026-110307GHSA-fpj2-9h59-32pp

Infinite recursion (CPU denial-of-service) in JOSE.JWK.shared_secret/2 on mismatched key types

Published Oct 26, 2026 · Updated Nov 2, 2026 · Assigned by EEF

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.

Affected products

VendorProductAffectedFixed
potatosalad jose 1.5.0 – < 1.11.13 1.11.13

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 erlang-jose 1.11.13-1 —
Debian 13 erlang-jose No fix yet —
Debian 12 erlang-jose No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 jose No fix yet —
Ubuntu 26.04 LTS jose No fix yet —
Ubuntu 24.04 LTS jose No fix yet —
Ubuntu 22.04 LTS jose No fix yet —
Ubuntu 20.04 LTS jose No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS jose No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 jose +1 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Hex jose >= 1.5.0, < 1.11.13 1.11.13 EEF-CVE-2026-65628

References