CVE-2026-65628

Source
https://cve.org/CVERecord?id=CVE-2026-65628
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-65628.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-65628
Aliases
Downstream
AZL (2)
DEBIAN (1)
UBUNTU (1)
Published
2026-10-26T19:53:27Z
Modified
2026-11-04T02:30:41Z
Severity
  • 5.9 (Medium) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Infinite recursion (CPU denial-of-service) in JOSE.JWK.shared_secret/2 on mismatched key types
Details

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.

Database specific
{
    "cna_assigner": "EEF",
    "cwe_ids": [
        "CWE-674"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/65xxx/CVE-2026-65628.json"
}
References

Affected packages

Git / github.com/potatosalad/erlang-jose

Affected ranges

Type
GIT
Repo
https://github.com/potatosalad/erlang-jose
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "7b80b9f55b9898e1a6901ce136061b241b021d7c"
                },
                {
                    "fixed": "26182a7de63b91550035d3f08741f7d17f1f675a"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "range": [
                {
                    "introduced": "1.5.0"
                },
                {
                    "fixed": "1.11.13"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandardRange"
        },
        {
            "range": [
                {
                    "fixed": "7b80b9f55b9898e1a6901ce136061b241b021d7c"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "26182a7de63b91550035d3f08741f7d17f1f675a"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-65628.json"