Has it been Pwned
ImplementationPractical impact

'Psychic Signatures': Java accepts ECDSA signature (r=0, s=0) for any message (CVE-2022-21449)

Neil Madden (ForgeRock) found that Java 15-18's rewritten ECDSA verifier did not check that r and s are in [1, n-1]. A signature of all zeros verified against any public key and any message, enabling forgery of TLS handshakes, JWTs, SAML assertions, OIDC tokens and WebAuthn responses on affected JVMs. Reported to Oracle in November 2021; fixed in the April 2022 Critical Patch Update.

A separate source-review date has not been recorded for this historical entry. Corrections.

Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.

Background

The ECDSA spec's range checks are not optional: with r = s = 0 the verification equation becomes trivially true. Oracle rated it CVSS 7.5; Madden argued for 10. A purely IMPLEMENTATION bug (missing input validation in a 2020 C++-to-Java port), not a property of ECDSA or the curves.

Sources

  1. blogCVE-2022-21449: Psychic Signatures in JavaNeil Madden, neilmadden.blog
  2. cveCVE-2022-21449NIST NVD, nvd.nist.gov