RSA encryption padding
RSA PKCS#1 v1.5 encryption
A padding oracle has broken it again every few years since 1998.
Deployment assessment
Do not select for new protection
Replace this construction for new applications.
- Intended use
- Legacy or unencoded RSA encryption.
- Conditions
- Do not expose decryption or raw signing oracles. Migration requires a complete protocol change and appropriately separated keys.
- Compare next
- RSA-OAEP ↗ML-KEM ↗
Guidance reviewed 19 Oct 2026. Deployment guidance and linked specification checked; this is not a new exhaustive cryptanalysis survey. How to read this assessment.
Cryptanalytic assessment
A protocol-layer failure of sound math. The padding format lets a server's error behavior, or even its timing, act as a decryption oracle. Bleichenbacher (1998), DROWN (2016), ROBOT (2017) and Marvin (2023) each recovered plaintexts or forged signatures from real deployments. TLS 1.3 removed RSA key exchange entirely. RSA itself is not the problem; this padding mode cannot be implemented safely in practice.
- Best known attack
- Adaptive chosen-ciphertext padding oracle (millions of queries)
- Quantum
- Quantum-vulnerable. A large fault-tolerant quantum computer running Shor's algorithm breaks it outright.
- Names and historical labels
- PKCS1 v1.5 encryption, RSAES-PKCS1-v1_5, RSA key exchange, Bleichenbacher
Standards and construction references
Evidence for the verdict
- Protocol(not the math)Bleichenbacher's 'million message' padding oracle attack on PKCS#1 v1.5Daniel 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.
- Protocol(not the math)DROWN: SSLv2 padding oracle decrypts modern TLSNimrod Aviram and 14 co-authors showed that any server that still supported SSLv2 with an RSA key, or shared that key with another server that did, gave attackers a Bleichenbacher-style oracle that decrypts recorded modern TLS sessions. The general attack needed about 40,000 probe connections and 2^50 work (about $440 and 8 hours on EC2); a variant exploiting an OpenSSL bug (CVE-2016-0703) took under a minute on one PC. About 33% of HTTPS servers were vulnerable at disclosure.
- Protocol(not the math)ROBOT: Bleichenbacher's oracle returns, 19 years laterHanno Bock, Juraj Somorovsky and Craig Young found that TLS stacks from F5, Citrix, Radware, Cisco (ACE, ASA), Palo Alto Networks, IBM GSKit, Bouncy Castle, Erlang, WolfSSL and others still leaked PKCS#1 v1.5 padding validity, enabling decryption of recorded RSA key exchanges and signing with the server key. Vulnerable hosts existed on 27 of the Alexa top 100 domains; the researchers signed a message with Facebook's private key as proof.
- Protocol(not the math)Marvin: timing-based Bleichenbacher oracles in most RSA librariesHubert Kario (Red Hat) showed that small timing differences in PKCS#1 v1.5 decryption, often in bignum-to-bytes conversion or error handling rather than in the padding check itself, still leaked enough to mount Bleichenbacher's attack against many libraries, including OpenSSL (CVE-2022-4304), GnuTLS, NSS, pyca/cryptography (CVE-2023-50782), M2Crypto, Node.js and Java. Presented at ESORICS 2023 as 'Everlasting ROBOT'.
Case file
Every event on file that names RSA PKCS#1 v1.5 encryption.
5 case files, newest first.
2020s
- ProtocolPracticalMarvin: timing-based Bleichenbacher oracles in most RSA libraries
RSA PKCS#1 v1.5 encryption
2010s
- ProtocolPracticalROBOT: Bleichenbacher's oracle returns, 19 years later
RSA PKCS#1 v1.5 encryption / TLS RSA key exchange
- ProtocolPracticalDROWN: SSLv2 padding oracle decrypts modern TLS
RSA PKCS#1 v1.5 encryption / SSLv2 / TLS RSA key exchange
- ProtocolPracticalPadding oracle attacks extract keys from PKCS#11 tokens and smart cards
RSA PKCS#1 v1.5 encryption (key unwrap)
1990s
- ProtocolPracticalBleichenbacher's 'million message' padding oracle attack on PKCS#1 v1.5
RSA PKCS#1 v1.5 encryption / SSL 3.0 / TLS RSA key exchange