Cryptographic Algorithms
The New Cryptanalysis of Classic McEliece in Context
New attacks on Classic McEliece, the BSI warning and what it means for hybrids.
doc: zr9a1v1ciw15bqmxh69jev8z
sig: 09dffa90…10151d29
A Code of Length 214
Cracking TII-253 took Stephen Weis of Anthropic two sparse linear systems of 11.8 million columns each, 21.7 hours apiece on 32 server threads. After just under two days, he had the secret key of a McEliece instance with code length 214. It's one of the key-recovery challenges set by the Technology Innovation Institute (TII). On September 11, 2026, the day Weis's preprint arrived, Markku-Juhani Saarinen of Tampere University submitted a solution to the somewhat larger TII-254.
The smallest Classic McEliece parameter set, mceliece348864, has code length 3,488. Nobody has broken a key that size. Even so, Germany's Federal Office for Information Security (BSI) has advised against using the scheme in new applications since October 1, 2026. Eight weeks earlier, a new distinguisher had appeared that has since spawned key-recovery attacks. All four cost estimates now on the table come in below the security level Classic McEliece claims. How close anyone is to an actual broken key depends on which costs you count.
Three Levels of Attack
A Classic McEliece public key describes a binary Goppa code whose algebraic structure only the private key holder knows. Without it, what's left is the general decoding problem, and its best known attack, information set decoding (ISD), sets the parameters.
Structural attacks instead look for traces of that structure in the public matrix. A distinguisher only answers whether a matrix is a McEliece key or a random matrix. A key-recovery cost estimate works out what it would take to derive an equivalent private key from the public one, usually under assumptions that can't be tested at real sizes. A practical attack breaks a real-size key. Since August, the first level has a proven result and the second has several estimates. Nobody has reached the third.
A distinguisher doesn't touch the security claim directly. Classic McEliece claims IND-CCA2, protection even against attackers who can get arbitrary ciphertexts decrypted. The team's security guide reduces that to the one-wayness property OW-CPA, not to keys looking like random matrices. The team said as much in 2024 about a distinguisher by Hugues Randriambololona of ANSSI, France's cybersecurity agency, which presumably still needed around 2⁵²⁹ operations for the smallest set.
What the New Distinguisher Exploits
Ashrujit Ghoshal (IIT Madras), Yuval Ishai (Technion and AWS), Aayush Jain and Nuozhou Sun (both Carnegie Mellon University) submitted their paper, known by their initials as GIJS, on August 7, 2026. The subtitle, "PIR Meets McEliece," gives away its origin. While working on private information retrieval (PIR), fetching data without the server learning what was fetched, the group ran into queries that look like permuted subcodes of Reed-Solomon codes. That's exactly how a McEliece key is built.
Picture the public key's columns sitting on a hidden low-degree curve. The distinguisher holds one column back and looks for low-degree polynomials that vanish with multiplicity on all the other columns. For a Goppa key, the held-out column is then forced to be a zero too. For a random matrix, it almost never is.
The authors state the running time asymptotically:
T = n^(O(log n))
In words: the running time grows like the code length n raised to an exponent that itself grows only logarithmically in n. That's slower than any exponential function but faster than any polynomial, hence quasipolynomial. For the distinguisher, the authors estimate 2¹¹⁴ to 2¹²⁴ bit operations, well below ISD. Daniel J. Bernstein of the Classic McEliece team calls the title "Quasipolynomial Cryptanalysis" false, since the bound only holds in a restricted asymptotic regime. According to the authors, though, every Classic McEliece parameter set falls within it.
Eight Weeks of Cost Estimates
On August 20, Kirill Vedenev (CryptoPro and Southern Federal University) published a key-recovery attack meant to need a single distinguisher run, reporting keys recovered for three TII instances. Daniel Apon (Anduril Industries) countered an early version with a lower bound of more than 2¹⁵⁰⁰ bit operations for mceliece8192128. Vedenev says that doesn't apply to his revised version. After nine revisions through October 7, he estimates roughly 2⁹⁰ to 2⁹⁹ bit operations.
On August 24, Saarinen posted a step-by-step cost tally that explicitly leaves out address generation and memory traffic. On August 27, the GIJS group added a fully worked-out key-recovery attack. Weis's fastest variant reads the code's secret evaluation points off a single run, which costs 2⁸⁹ to 2⁹⁸ bit operations in his October 6 revision. Those costs rest on four heuristic assumptions. His own verdict: "None of this is close to practical."
The table shows the GIJS and Saarinen estimates as base-2 logarithms of bit operations without memory costs. Weis and Vedenev come in well below them. The threshold is the gate count NIST assigns to key search on AES-128, AES-192 and AES-256.
| Parameter set | NIST category | Threshold | ISD | GIJS | Saarinen |
|---|---|---|---|---|---|
| mceliece348864 | 1 | 143 | 151 | 130.4 | 126.8 |
| mceliece460896 | 3 | 207 | 191 | 149.0 | 145.2 |
| mceliece6688128 | 5 | 272 | 257 | 141.3 | 137.5 |
| mceliece6960119 | 5 | 272 | 257 | 140.5 | 136.7 |
| mceliece8192128 | 5 | 272 | 287 | 141.6 | 137.5 |
For the Category 5 sets, every estimate sits more than 100 bits below the threshold. To the structural attacks, mceliece8192128 is barely more expensive than mceliece348864, even though ISD costs about 2¹³⁶ times as much against the larger set. ISD itself, at 2²⁵⁷, already falls below 2²⁷² for two of the Category 5 sets.
The Fight Over the Cost Model
Bernstein argues that bit operations are the wrong measure, in posts to NIST's pqc-forum that he doesn't label as team statements. For the 2⁹⁴ bit operations an earlier version of Weis's paper put against mceliece348864, you'd have to generate about 2⁹³ bits and route them through terabytes of RAM. That routing is the bottleneck, he says, and it would take the LineShine supercomputer about 90,000 years.
Weis does price memory himself. If costs grow with the square root of memory, a run costs 2¹⁰⁷ to 2¹¹⁷ bit operations, and under the stricter rule from the team's guide, 2¹¹⁷ to 2¹²⁸. Even that stays below 2¹⁴³ and far below the thresholds for Categories 3 and 5. On September 16, Saarinen wrote that he and several other researchers were ready to recommend against Classic McEliece at its claimed levels. On September 28, Bernstein wrote that for the mceliece6* sets the team recommends for long-term security, the new attacks aren't slower than single-target ISD, but that the papers exaggerate their speed. Both sides agree that no quantum speedup for these attacks is known.
My take: Bernstein's objection is legitimate, because NIST's thresholds count gates for an AES key search that needs practically no memory. But even the memory-priced figures stay below the thresholds. Whether the lowest category holds depends on the model. None of the models leaves the margin you'd expect from a deliberately conservative scheme.
The Team's Response
The only post labeled as a team statement is dated August 21. It says the algorithm merely detects whether a bit string of the right length is a public key, which isn't an attack on the standard security goals of one-wayness and IND-CCA2. The team put GIJS's heuristic decryption attack at around 2²⁶⁶ bit operations for mceliece6960119, slower than the standard attacks by its preliminary assessment. GIJS's worked-out key recovery appeared six days later. No further post labeled as a team statement had appeared as of October 25, 2026.
According to the team, ISO/IEC 18033-2:2006/Amd 2:2026, published in June 2026, contains only the families from mceliece460896 upward. Classic McEliece is not a NIST standard.
What the BSI Recommends
The BSI sees significant cryptanalytic progress pointing to a much lower security level than previously assumed. Its English-language notes say Classic McEliece "should no longer be used for new developments or in the planning of new cryptographic applications at this time." As recently as January 2026, the BSI's Technical Guideline TR-02102-1 described the scheme as conservative and very thoroughly studied, recommending mceliece460896, mceliece6688128 and mceliece8192128 plus their f variants, which are Category 3 and 5 sets. With these, the BSI says, no practical attack is currently possible, but further improvements are "possible and to be expected." ML-KEM and FrodoKEM are unaffected and preferable, and so is HQC, which the guideline plans to add once its standard is out. The BSI plans to revise its Classic McEliece guidance in the next edition, due in early 2027.
The BSI says nothing explicit about existing deployments, but its press release has the key sentence for them: since 2020, TR-02102 has recommended Classic McEliece only in combination with a classical scheme, and such a hybrid currently provides at least the security of the classical component.
What It Means for Hybrids
In a combination of X25519 and Classic McEliece, X25519 still protects against today's attackers. Against a future cryptographically relevant quantum computer (CRQC), protection rests on McEliece alone, because Shor's algorithm breaks X25519. That matters for harvest now, decrypt later (HNDL), where traffic is recorded today to be decrypted later. Since the new attacks are classical, what matters for such recordings is whether roughly 2⁹⁰ to 2¹⁵⁰ bit operations, plus the memory they need, become affordable within the confidentiality period. Bernstein considers none of the attacks feasible with nation-state resources at the parameters where the papers claim success. The BSI expects the attacks to improve.
A second post-quantum scheme changes the picture. Mullvad VPN uses Classic McEliece and ML-KEM to negotiate a pre-shared key for WireGuard. According to its source code, Rosenpass uses Classic McEliece 460896 for static keys and Kyber-512 for ephemeral ones, and it too feeds WireGuard a pre-shared key. In both cases, WireGuard's classical key establishment keeps running. Quantum protection without McEliece then depends on the second scheme and on each protocol's key derivation.
My take: static keys are the more delicate case. If key recovery succeeds against a long-lived public key, McEliece's contribution is exposed in every ciphertext ever sent to it, and a single VPN server makes a worthwhile target.
John Mattsson counters that what's needed is quantum resistance, not the classical remainder, and argues for pairings such as ML-KEM with HQC. The Beyond Shor Playground lets you follow a hybrid handshake of X25519 and mceliece8192128 step by step.
Assessment
No practical break: No key from a real parameter set has been broken. The hardest solved challenge, TII-254, has code length 223, the smallest parameter set 3,488.
More than a formality: The distinguisher doesn't attack the security claim, but within weeks it became the lever for key-recovery attacks.
Preprints with heuristics: Only the distinguisher is proven. The key-recovery attacks sit in unreviewed preprints, some revised many times, whose assumptions were tested only on small instances. The four estimates are dozens of bits apart and still shifting.
Hybrids keep the classical part: What has become less certain is quantum protection for long-lived secrets, not today's protection from X25519. According to the BSI, ML-KEM, FrodoKEM and HQC are unaffected.
Recommendations
For Developers
- Stop integrating Classic McEliece. For new protocols, use ML-KEM-768 or ML-KEM-1024, or FrodoKEM-976 or FrodoKEM-1344, in a hybrid with X25519, and combine the key material with CatKDF or KeyCombine from TR-02102-1. The guideline doesn't list X25519, but the BSI knows of no cryptanalytic arguments against it.
- Search code and dependencies for mceliece, Classic-McEliece and cmce, the package name in Bouncy Castle.
- Where McEliece is the only post-quantum component, add ML-KEM or FrodoKEM before removing McEliece.
- Don't fall back on a larger McEliece parameter set.
- Keep the KEM swappable through configuration, and prepare automated rollover for distributed static keys.
For CISOs, Information Security Officers and Consultants
- Add every use of Classic McEliece to the cryptographic inventory, including VPN clients and appliances. The signed Beyond Shor CBOM shows an inventory with evidence locations.
- Start with connections whose quantum protection rests on McEliece alone and whose data must stay confidential for a long time.
- Ask vendors when their products will add ML-KEM or FrodoKEM alongside McEliece or replace it.
- Don't require Classic McEliece in tenders or count it in a product's favor.
- Don't trigger an emergency migration. Plan the switch in the regular cycle and revisit it with the 2027 edition of TR-02102-1.
Conclusion: The Veteran Has Used Up Its Margin
Classic McEliece was the choice for anyone who'd rather accept big keys than young mathematics. That argument took a hit in 2026. The open question is whether the heuristics hold up on larger instances. A key recovered somewhere between the TII challenges and mceliece348864 would turn estimates into data points. If the assumptions stall halfway, Bernstein's skepticism gains weight. New parameter sets tuned against this fall's attacks would be possible, but they'd contradict the conservative promise the scheme started out with. My expectation: for new systems, the question is settled. For existing ones, it's a question of timing, and the 2027 edition of TR-02102-1 will set the schedule.