← Back to section · Foundations of Cryptography

RSA's Known Attack Surface: The Roads That Bypass Factoring

Most successful attacks on RSA never touched factoring: common moduli, low-exponent broadcasts, related messages, shared prime factors and fault injection. A qualitative taxonomy organised by the deployment mistake each attack exploits.

Published 22 November 2026 · 5 min read · PQ Frontier

RSA's Known Attack Surface: The Roads That Bypass Factoring
AI-generated site artwork
Video explainer · The RSA system: signing and verification

One fact about RSA is persistently misunderstood: since 1977, no public attack has broken the core assumption that factoring a randomly chosen large integer is hard. RSA’s security incidents have almost all occurred outside that assumption — wrong parameters, wrong handling of messages, implementations leaking information. This article surveys the landscape organised by the kind of mistake each attack exploits, in qualitative terms: the point is to understand each family’s preconditions so deployment can remove them one by one.

1. Common-modulus attacks: one n must never serve two keys

Imagine a deployment cutting corners: an organisation issues each member a pair (ei,di)(e_i, d_i) but shares a single modulus nn. It looks administratively efficient and is cryptographically suicidal. First, every member can, from their own (ei,di)(e_i, d_i), derive a multiple of φ(n)\varphi(n) and hence factor nn — meaning any member can compute everyone else’s private key. Second, even ignoring insiders: if the same message mm is encrypted under two coprime exponents e1,e2e_1, e_2 with the same nn, an eavesdropper holding both ciphertexts can combine them with integer powers via Bézout’s identity and recover mm directly, with no factoring and no private key.

The conclusion is hard-edged: the modulus is the key’s identity. Every RSA key must generate its own nn; there is no labour-saving arrangement of “shared modulus, private exponents”.

2. Low-exponent broadcast attacks: the same message to three people

Suppose a sender encrypts the same message mm (or a message with only deterministic linear padding) under e=3e = 3 for three recipients with different moduli. An attacker who collects all three ciphertexts combines them with the Chinese remainder theorem into a single number that equals m3m^3 modulo the product of the three moduli; since m3m^3 is smaller than that product, the value is m3m^3 over the integers, and an integer cube root yields mm. This is Håstad’s broadcast attack; its generalisations handle even per-recipient linear tweaks such as a serial number prepended to each copy.

Note the attack’s precondition bundle: small exponent, same message to multiple recipients, no randomisation. Remove any one and it collapses. In particular, once the padding contains a sufficiently long random value — exactly what OAEP does — the three encoded messages are unrelated, and the CRT combination has nothing to combine. Hence the field’s consensus: e=3e = 3 is not the original sin; un-randomised padding is.

Franklin and Reiter showed in 1995 that if two messages stand in a known affine relation (say m2=m1+Δm_2 = m_1 + \Delta with Δ\Delta known) and are encrypted under a small exponent such as e=3e = 3 with the same modulus, computing a polynomial greatest common divisor from the two ciphertexts recovers both messages. Message formats built from serial numbers, timestamps and counters — “differing only slightly” — satisfy exactly this kind of relation. Coppersmith’s method later generalised the idea: if a sufficiently large part of the plaintext is known and the unknown part is small enough, the whole plaintext may be recoverable.

The shared lesson with the broadcast attack: raw RSA has no resistance at all to structural relations between messages, and randomised padding — stirring the message into an unpredictable encoding first — is the only systematic cure.

4. Short padding and small message spaces: guessable messages are defenceless

Related but distinct in angle: if the encrypted content itself has low entropy (a password, a short verification code, a yes/no answer) and the padding is deterministic or weakly randomised, the attacker simply encrypts candidate values with the public key and compares. Insufficiently long random padding shrinks the enumeration space the same way. The reminder: RSA encryption was never meant to protect low-entropy data directly. Real protocols use it only to wrap a high-entropy random symmetric key (hybrid encryption, covered in its own article); low-entropy data belongs to the symmetric layer and password-based schemes.

5. Small private exponents: Wiener’s attack

Symmetric to the temptation of a small ee, some have wanted a small dd to speed up decryption and signing. Wiener proved in 1990 that this road is closed: when dd is below roughly n0.25n^{0.25}, the continued-fraction expansion of e/ne/n, computed from the public (n,e)(n, e) alone, recovers dd completely — the attack needs no ciphertext at all. Boneh and Durfee later pushed the vulnerable bound to about n0.292n^{0.292} with lattice methods. The lesson mirrors the ee case exactly: of RSA’s two exponents, at most one may be small, and the small one must be ee. Standard implementations therefore never deliberately shrink dd, leaving it at its natural size modulo φ(n)\varphi(n); the correct way to speed up private-key operations is CRT decomposition, not a smaller exponent.

6. Implementation attacks that ignore the mathematics

The last large family has nothing to do with exponents or messages; it attacks the physical and engineering layers. Shared prime factors: devices with entropy-starved random number generators can independently produce keys whose moduli differ yet share one prime; pairwise greatest common divisors over a large corpus of public keys then factor them in bulk — internet-scale scans in 2012 really did find such keys. Fault attacks: if one branch of a Chinese-remainder-accelerated private-key operation computes wrongly, the difference between the faulty and correct signatures hands out the factorisation (the Bellcore attack); the defence is to verify the result with the public key before releasing it. Side channels: in naïve implementations the time and power consumed by modular exponentiation vary with the exponent’s bits, so timing attacks and power analysis extract dd bit by bit; the defences are constant-time code and exponent blinding. The Bleichenbacher oracle attack against PKCS#1 v1.5 padding (detailed in the padding article) belongs to this family too, as the variant where the implementation leaks its own check results.

Summary: the attack surface, read backwards, is a deployment checklist

Read the six families in reverse and they form an RSA deployment checklist: an independent modulus per key; encryption always with a standard, adequately randomised padding; never encrypt low-entropy or structurally guessable messages with RSA directly; keep the private exponent at its natural size rather than deliberately shrinking it; guarantee randomness quality at key generation; implement private-key operations in constant time and self-check their outputs. RSA’s mathematical core has survived nearly half a century intact; its reputation has mostly been dragged down by deployment. This is also why post-quantum migration stresses that swapping the algorithm is only half the work — padding, randomness and implementation discipline are homework that every replacement algorithm will demand just the same.

Tags: RSAcryptanalysisattack surface