Has it been Pwned
ProtocolPractical impact

Bleichenbacher's 'million message' padding oracle attack on PKCS#1 v1.5

Daniel Bleichenbacher (Bell Labs) showed at CRYPTO '98 that any server that reveals whether an RSA ciphertext decrypts to a correctly formatted PKCS#1 v1.5 block can be used to decrypt any ciphertext (or sign arbitrary messages) with the server's key, using roughly a million adaptively chosen queries for a 1024-bit key. He demonstrated it against SSL 3.0 servers.

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 RSA function was untouched; the flaw is that PKCS#1 v1.5 encryption padding is malleable and its validity check leaks. Even one bit of 'valid or not' (through an error message, an alert, or timing) is enough. The response was a decades-long series of mitigations instead of removal: TLS servers were told to continue with a random premaster secret on padding failure (RFC 2246, RFC 3218), and PKCS#1 v2 introduced OAEP. The same oracle reappeared in XML Encryption, PKCS#11 tokens (2012), DROWN (2016), ROBOT (2017), CAT cache attacks (2019) and Marvin (2023). TLS 1.3 finally removed RSA key transport.

Sources

  1. paperChosen ciphertext attacks against protocols based on the RSA encryption standard PKCS #1 (CRYPTO '98)Springer LNCS, link.springer.com
  2. standardRFC 3218: Preventing the Million Message Attack on CMSIETF, datatracker.ietf.org
  3. wikiPadding oracle attackWikipedia, en.wikipedia.org