{"id":"CVE-2026-65631","aliases":["CVE-2026-65631","EEF-CVE-2026-65631","GHSA-3m45-vrpj-xmrq"],"related":[],"kind":"vulnerability","state":"published","title":"erlang-jose RSA JWK parsing attempts to factor an attacker-controlled modulus, enabling CPU-exhaustion denial of service","summary":"Inefficient Algorithmic Complexity in erlang-jose allows an unauthenticated remote attacker to cause a CPU-exhaustion denial of service by submitting a crafted RSA JSON Web Key.\n\nWhen an application parses an untrusted JWK through the public jose_jwk:from_binary/1 or jose_jwk:from_map/1 API (or the Elixir wrappers JOSE.JWK.from_binary/1 and JOSE.JWK.from_map/1), an RSA private key that supplies d, e, and n but omits all Chinese Remainder Theorem parameters (p, q, dp, dq, qi) is routed into convert_sfm_to_crt/1, which tries to recover the missing primes by factoring the modulus. The three integers are read straight from the base64url input and are never validated as a real RSA key. When the modulus cannot be split into two factors (for example, when it is itself prime), the search loop convert_sfm_to_crt_find_p/6 performs a modular exponentiation over the attacker-sized modulus on every iteration and never succeeds. A single request of a few hundred bytes forces close to one CPU-second of work before an internal one-second watchdog kills the worker, and a larger modulus raises the cost further. By flooding such requests an attacker can saturate every scheduler and deny service, without credentials, a valid RSA key, or any special configuration.\n\nThis issue affects jose: from 1.7.7 before 1.11.13.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Inefficient Algorithmic Complexity in erlang-jose allows an unauthenticated remote attacker to cause a CPU-exhaustion denial of service by submitting a crafted RSA JSON Web Key.\n\nWhen an application parses an untrusted JWK through the public jose_jwk:from_binary/1 or jose_jwk:from_map/1 API (or the Elixir wrappers JOSE.JWK.from_binary/1 and JOSE.JWK.from_map/1), an RSA private key that supplies d, e, and n but omits all Chinese Remainder Theorem parameters (p, q, dp, dq, qi) is routed into convert_sfm_to_crt/1, which tries to recover the missing primes by factoring the modulus. The three integers are read straight from the base64url input and are never validated as a real RSA key. When the modulus cannot be split into two factors (for example, when it is itself prime), the search loop convert_sfm_to_crt_find_p/6 performs a modular exponentiation over the attacker-sized modulus on every iteration and never succeeds. A single request of a few hundred bytes forces close to one CPU-second of work before an internal one-second watchdog kills the worker, and a larger modulus raises the cost further. By flooding such requests an attacker can saturate every scheduler and deny service, without credentials, a valid RSA key, or any special configuration.\n\nThis issue affects jose: from 1.7.7 before 1.11.13.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nInefficient Algorithmic Complexity in erlang-jose allows an unauthenticated remote attacker to cause a CPU-exhaustion denial of service by submitting a crafted RSA JSON Web Key.\n\nWhen an application parses an untrusted JWK through the public `jose_jwk:from_binary/1` or `jose_jwk:from_map/1` API (or the Elixir wrappers `JOSE.JWK.from_binary/1` and `JOSE.JWK.from_map/1`), an RSA private key that supplies `d`, `e`, and `n` but omits all Chinese Remainder Theorem parameters (`p`, `q`, `dp`, `dq`, `qi`) is routed into `convert_sfm_to_crt/1`, which tries to recover the missing primes by factoring the modulus. The three integers are read straight from the base64url input and are never validated as a real RSA key. When the modulus cannot be split into two factors (for example, when it is itself prime), the search loop `convert_sfm_to_crt_find_p/6` performs a modular exponentiation over the attacker-sized modulus on every iteration and never succeeds. A single request of a few hundred bytes forces close to one CPU-second of work before an internal one-second watchdog kills the worker, and a larger modulus raises the cost further. By flooding such requests an attacker can saturate every scheduler and deny service, without credentials, a valid RSA key, or any special configuration.\n\nThis issue affects jose: from 1.7.7 before 1.11.13.","format":"markdown","source":"eef"}],"published":"2026-10-26T19:53:45.204Z","modified":"2026-11-25T06:30:12.476Z","severity":{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"EEF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"Erlang Ecosystem Foundation","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}],"cwes":["CWE-407"],"affected":[{"ranges":[{"type":"semver","introduced":"1.7.7","fixed":"1.11.13","status":"affected"}],"vendor":"potatosalad","product":"jose","package":"jose","cpe":"cpe:2.3:a:potatosalad:jose:*:*:*:*:*:*:*:*","repo":"https://github.com/potatosalad/erlang-jose","source":"cvelist"},{"ranges":[{"type":"git","introduced":"d19e1ba68d88c68d29aa942be2573a22dbafca1f","fixed":"bfd336c0062bff93e65d08c22361897e96afd956","status":"affected"}],"vendor":"potatosalad","product":"jose","package":"potatosalad/erlang-jose","cpe":"cpe:2.3:a:potatosalad:jose:*:*:*:*:*:*:*:*","repo":"https://github.com/potatosalad/erlang-jose","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.7.7","status":"affected","fixed":"1.11.13"}],"ecosystem":"Hex","package":"jose","purl":"pkg:hex/jose","source":"eef"},{"ranges":[{"type":"git","introduced":"d19e1ba68d88c68d29aa942be2573a22dbafca1f","status":"affected","fixed":"bfd336c0062bff93e65d08c22361897e96afd956"}],"repo":"https://github.com/potatosalad/erlang-jose","source":"eef"}],"references":[{"url":"https://github.com/potatosalad/erlang-jose/security/advisories/GHSA-3m45-vrpj-xmrq","tags":["advisory","related","vendor-advisory"],"sources":["cvelist","eef","nvd"]},{"url":"https://cna.erlef.org/cves/CVE-2026-65631.html","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-65631","tags":["related"],"sources":["cvelist","nvd"]},{"url":"https://github.com/potatosalad/erlang-jose/commit/d19e1ba68d88c68d29aa942be2573a22dbafca1f","tags":["related","web"],"sources":["cvelist","eef","nvd"]},{"url":"https://github.com/potatosalad/erlang-jose/commit/bfd336c0062bff93e65d08c22361897e96afd956","tags":["fix","patch"],"sources":["cvelist","eef","nvd"]},{"url":"https://hex.pm/packages/jose","tags":["package"],"sources":["eef"]}],"credits":["Peter Ullrich","Jonatan Männchen / EEF","Andrew Bennett"],"assigner":"EEF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-11-03T17:27:23.107Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-65631","url":"https://www.cve.org/CVERecord?id=CVE-2026-65631","licence":"CVE Terms of Use","modified":"2026-11-19T08:01:38.603Z"},{"source":"eef","name":"Erlang Ecosystem Foundation","id":"EEF-CVE-2026-65631","url":"https://osv.dev/vulnerability/EEF-CVE-2026-65631","licence":"CC-BY-4.0","modified":"2026-11-25T06:30:12.476Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-65631","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-65631","licence":"Public domain","modified":"2026-11-03T18:18:04.273Z"}],"updatedAt":"2026-11-25T22:59:47.191Z","epss":{"score":0.00297,"percentile":0.2401,"date":"2026-12-02T12:00:21.000Z"}}