Technical impact
The erlang‑jose library contains a path in the RSA JSON Web Key (JWK) parsing routine that, when a key presents the public exponent e, prime modulus n, and private exponent d but omits the Chinese Remainder Theorem parameters (p, q, dp, dq, qi), attempts to recover the missing primes by factoring n. The routine reads the three integers directly from the base64url payload without validation. When the modulus cannot be factored—such as when it is itself prime—the conversion function enters a loop that repeatedly performs modular exponentiation over the entire nonce, consuming exponential CPU time. A single crafted request can require nearly one second of CPU cycles, and larger moduli increase the cost. The net effect is a CPU‑exhaustion denial of service that can be triggered by unauthenticated remote callers.
Affected Systems
This flaw affects the potatosalad jose library in all released versions from 1.7.7 up to, but not including, 1.11.13. The vulnerability is present whenever the APIs jose_jwk:from_binary/1 or jose_jwk:from_map/1 (and the Elixir wrappers JOSE.JWK.from_binary/1 and JOSE.JWK.from_map/1) parse a JWK that lacks CRT parameters. Any application that loads user‑supplied RSA JWKs via these functions in the vulnerable range of the library is susceptible.
Risk and Exploitability
The CVSS score of 6.9 indicates a moderate severity. Because the attack is unauthenticated and relies only on crafting an RSA JWK, an external adversary can trigger the flaw by sending a handful of requests over the network to any component that invokes the affected parsing functions. This path has a low barrier to exploitation; the presence of the vulnerability is evident once the library is in use. While the EPSS score is not available, the lack of authentication, the ability to flood targets, and the CPU‑intensive loop suggest that widespread exploitation could occur if the issue is not mitigated. The vulnerability is not listed in CISA’s KEV catalog, but the existence of a patch in 1.11.13 indicates it should be considered promptly.