Abstract

What does it mean for a hash function to be broken, and why did years separate the first published collisions from practical forgeries? An ideal n-bit hash yields a collision after about 2^(n/2) evaluations, by the birthday bound, and a preimage after about 2^n. Differential cryptanalysis produced MD5 collisions in 2004; for SHA-1 it gave a 2005 estimate below 2^69, with no computed pair until 2017. Those first pairs were identical-prefix collisions: the two messages agree outside a few colliding blocks. The certificate and PGP demonstrations used chosen-prefix collisions, because the two signed objects had to carry different names or keys before those blocks. For MD5 these supported a proof-of-concept rogue certificate authority in 2008. For SHA-1 the first was computed in 2019 and published in January 2020 with a transferred PGP key certification, after $75,000 of GPU rental ($45,000 at cheap rates, the authors estimate). Three conditions had to align: an affordable attack, attacker control of the signed input, and verifiers that still accepted the weak hash. Preimage attacks remain far out of reach; a 2026 attack on full MD5 costs about 2^122.5. MD5 and SHA-1 should go wherever security relies on collision resistance.

Three properties and what they cost

A cryptographic hash function H maps inputs of almost any length to an n-bit digest. Three security properties matter, and they fail differently.

  • Preimage resistance. In one of the experiments Rogaway and Shrimpton formalise, an input x is chosen at random and the attacker, given y = H(x), must find any x′ with H(x′) = y; their general definitions also draw the function at random from a keyed family.1 If H behaves like a random function and the input space is large, each guess succeeds with probability about 2^−n, so the generic cost is about 2^n evaluations.
  • Second-preimage resistance. Given a specific x, finding a different x′ with H(x′) = H(x) has the same generic cost under the same assumptions.
  • Collision resistance. Finding any pair x ≠ x′ with H(x) = H(x′), both chosen by the attacker, costs about 2^(n/2) for an ideal function, because the attacker is matching outputs against each other rather than against one fixed target.

An attack is called a break in the cryptanalyst’s sense when it beats the generic cost for the same property and attack model on the full function: 2^n for preimages, 2^(n/2) for collisions. That definition is deliberately strict, and it says nothing about whether the attack is affordable or useful. MD5 has been “broken” for collisions since 2004 and remains unbroken in any practical sense for preimages, and the two facts call for different responses. How claims of such breaks are checked is the subject of a companion article.

The informal list hides subtleties. Rogaway and Shrimpton give seven formal definitions behind these ideas and work out which imply which.1 For a fixed public function such as SHA-256 a program that prints a colliding pair always exists, so Rogaway proposed stating security as an explicit reduction, in our paraphrase “from an attack on the scheme, here is how to construct a collision”, resting on nobody actually knowing one.2 Preimage resistance as a foundational assumption is discussed in the article on one-way functions.

Signatures make the difference concrete. If the verifier hashes the same signed representation in the same way, a signature on H(m) also verifies for every m′ with the same digest. A second-preimage attacker with no influence over m could reuse any signature it can see; a collision attacker must get the signer to sign one member of a pair the attacker prepared. That still matters, because certificate authorities, code-signing services and key-signing parties sign material the requester largely supplies. Signature schemes built from hash functions alone are covered in the article on hash-based signatures.

The birthday bound, derived

Model H as a function whose outputs on distinct inputs are independent and uniform over N = 2^n values. For q distinct inputs, the probability that all outputs differ is

P(no collision) = (1 − 1/N)(1 − 2/N) ··· (1 − (q−1)/N).

Using 1 − x ≤ exp(−x),

P(no collision) ≤ exp(−(1 + 2 + … + (q−1))/N) = exp(−q(q−1)/2N) = exp(−q(q−1)/2^(n+1)),

so the probability of at least one collision is about 1 − exp(−q(q−1)/2^(n+1)). The approximation is accurate in the birthday regime, q of order √N: the next term in the exponent is of order q³/N², which is negligible there. Setting the probability to 1/2 gives q(q−1) ≈ 2 ln 2 · 2^n, so q ≈ √(2 ln 2) · 2^(n/2) ≈ 1.177 · 2^(n/2). For large N, at q = 2^(n/2) the probability is about 1 − exp(−1/2) ≈ 0.39. The expected number of evaluations until the first collision, a different quantity from the 50% point, is √(πN/2) ≈ 1.25 · 2^(n/2), the figure van Oorschot and Wiener use.3 The table applies the 50% formula to an ideal hash of each length.

Digest bits nq for a 50% chancelog₂ qExample
645.06 × 10^932.24any 64-bit digest or truncation
1282.17 × 10^1964.24MD5
1601.42 × 10^2480.24SHA-1
2564.01 × 10^38128.24SHA-256, SHA3-256

Nothing in the derivation uses the structure of H, which is why it is called a generic attack. The generic collision cost is about 2^64 for MD5 and 2^80 for SHA-1, the numbers the cryptanalysis below is measured against. It is also why NIST rates SHA-256 at 128 bits against collisions and 256 against preimages, and SHA-1 at less than 80 bits for collisions.4

A toy birthday search (illustrative)

To see the asymmetry, we ran SHA-256 (as specified in FIPS 180-4) truncated to 32 bits in Python on a laptop on 3 December 2026.5 Each input was an ASCII prefix followed by an 8-byte big-endian counter starting at 0, and the truncated value was the first four bytes of the digest read as a big-endian integer. For the birthday search we used the prefixes bday-0- to bday-19-, one per run, and stored outputs in a dictionary until one repeated. Over the 20 runs the first collision came after a mean of 91,598 evaluations (range 13,094 to 217,766), against an expected √(π/2 · 2^32) ≈ 82,137.3 In run 0, counters 48,953 and 74,258 both give a2f33617. All 20 searches took under one second.

A preimage search has no such shortcut. We looked for the smallest counter c for which the prefix pre32- followed by c gives a2f33617, with sixteen processes scanning blocks of 2^22 counters whose results were read in block order. It was c = 4,796,737,813, that is 4.80 billion evaluations (expectation 2^32 ≈ 4.29 billion), found in 132 seconds of wall time. The preimage took about 52,400 times as many evaluations as the mean collision search; the ideal ratio is 2^32 / 82,137 ≈ 52,300, roughly 2^16. In a separate timing, one Python process computed 10^7 SHA-256 hashes at 3.5 million per second. Counting evaluations only, and ignoring memory and the cost of coordinating hardware, a generic collision search on a 128-bit digest at that rate would take 2^64 / (3.5 × 10^6) ≈ 5.2 × 10^12 seconds, about 165,000 process-years; on a 160-bit digest, 2^16 times longer.

Birthday searches without memory

The naive search stores every output, which for 2^64 evaluations is impractical. Van Oorschot and Wiener showed how to reduce storage drastically. Iterate the hash on its own output, x_{i+1} = H(x_i). Each processor runs a trail from a random start until it reaches a distinguished point, say an output whose first 30 bits are zero, and adds that point to a central list. Once two trails touch they coincide, so they end at the same distinguished point; replaying both finds the two different points that map to where they met, which collide. Two cases yield nothing: a trail that runs into the other trail’s starting point, which they call a “Robin Hood”, and a trail caught in a loop with no distinguished point, which is abandoned after a maximum length. Storage falls to the number of distinguished points, and for a function that behaves like a random one the speed-up is close to linear in the number of processors.3

Multicollisions, and why concatenation buys little

Concatenating two hashes, H(m) = F(m) ‖ G(m), might be expected to give collision resistance at 2^((n_f+n_g)/2). Joux showed at Crypto 2004 that it does not when F is iterated. Find t successive one-block collisions for F, each starting from the state the previous one reached; the 2^t ways of choosing one block from each pair all reach the same final state, a 2^t-multicollision for the price of t collisions. Choose t ≈ n_g/2 and among those 2^t messages, which collide under F, a birthday collision under G is expected. In Section 4.1 Joux puts the cost at about n_g · 2^(n_f/2) + 2^(n_g/2) when n_f ≤ n_g, the second term counting evaluations of G, which may be any function, even a random oracle. Section 4.2 gives a similar attack on preimages, costing about n_g · 2^(n_f/2) + 2^(n_f) + 2^(n_g) rather than 2^(n_f+n_g).6

Merkle-Damgård: the shape MD5 and SHA-1 share

MD5, SHA-1 and SHA-2 follow the same pattern. A compression function f takes a w-bit chaining value and a fixed-size message block and returns a new chaining value. The message is padded and split into blocks M_1 … M_k; starting from a fixed initial value IV, the hash computes h_i = f(h_{i−1}, M_i). MD5, SHA-1, SHA-256 and SHA-512 output h_k, so w = n; SHA-224, SHA-384 and SHA-512/t output part of it, so w > n.5 The padding appends a 1 bit, then zeros, then the message length: in MD5, zeros up to 448 modulo 512 followed by a 64-bit length field.7 Including the length is called Merkle-Damgård strengthening.

Why collision resistance carries over

Take an untruncated function, and suppose two different messages M and M′, both short enough for the length field to encode exactly (under 2^64 bits for MD5, SHA-1 and SHA-256), collide under H.7 5 Their padded forms differ and end in their lengths. Walk back from the end. The final outputs are equal: f(h_{k−1}, M_k) = f(h′_{k′−1}, M′_{k′}). Either the inputs to this last call differ, in which case they are a collision for f, or they are equal, which means h_{k−1} = h′_{k′−1} and the last blocks are equal. Because the last block carries the message length, equal last blocks imply equal lengths, so k = k′. Continue backwards. Since the padded messages differ, some block differs, so at some step the inputs to f differ while the outputs agree: a collision for f. Any collision for H therefore yields a collision for f. The proof is a reduction of the kind Rogaway recommends. It runs in one direction only: a collision for f is a warning about H, not a collision for H. For a truncated function, equal digests do not imply equal final chaining values, so the argument covers only full-state output.

A collision for f that starts from chaining values the attacker chose need not be reachable from the fixed IV. Karpman, Peyrin and Stevens distinguish a free-start collision, a pair (c, m) ≠ (ĉ, m̂) with f(c, m) = f(ĉ, m̂), from a semi-free-start collision, where both chaining values are the same chosen c; the Merkle-Damgård reduction requires both kinds to be intractable.8 Several milestones below are attacks of these weaker kinds.

MD5 and SHA-1 inside

MD5 (RFC 1321, April 1992) processes 512-bit blocks into a 128-bit state of four 32-bit words. Each block passes through four rounds of sixteen steps, 64 in all, each mixing one message word, a Boolean function, a rotation and an additive constant taken from a 64-entry table derived from the sine function. Each message word enters once per round, in a permuted order.7

SHA-1 (specified today in FIPS 180-4) also uses 512-bit blocks, with a 160-bit state of five words and 80 steps. Its message words are not merely reordered. The sixteen input words are expanded to eighty by the recurrence W_t = ROTL¹(W_{t−3} ⊕ W_{t−8} ⊕ W_{t−14} ⊕ W_{t−16}) for 16 ≤ t ≤ 79.5 That expansion is linear over GF(2), and its predecessor SHA-0 differs from SHA-1 only by lacking the one-bit rotation.9 Both facts matter for the attacks.

The construction’s own weaknesses

Some weaknesses belong to the iteration itself and would affect even an ideal compression function.

  • Length extension. MD5, SHA-1, SHA-256 and SHA-512 output their full final chaining value; SHA-224, SHA-384 and SHA-512/t truncate it.5 For the untruncated functions, anyone who knows H(m) and the length of m can continue hashing from that state and compute H(m ‖ padding ‖ s) for any suffix s without knowing m, so a naive MAC H(key ‖ message) is forgeable. HMAC, defined in RFC 2104, instead computes H((K ⊕ opad) ‖ H((K ⊕ ipad) ‖ m)), with the key masked by two different constants.10 FIPS 202 states that the SHA-3 functions are designed to resist length-extension attacks “that would be resisted by a random function”.4
  • Long-message second preimages. Kelsey and Schneier showed that for a target message of 2^k blocks, a second preimage costs about k · 2^(n/2+1) + 2^(n−k+1) rather than 2^n, using an expandable message to defeat the length padding. For a 160-bit hash and a 2^60-byte target they estimated about 2^106 work instead of 2^160; the ePrint abstract names SHA-1 as the example, the full paper RIPEMD-160. That is their estimate; with 64-byte blocks, k = 54 and the formula’s larger term is 2^107.11 FIPS 202 records the loss as 160 − L(M) for SHA-1 and 256 − L(M) for SHA-256, where L(M) = ⌈log₂(len(M)/B)⌉, with the message length len(M) and the block length B both in bits.4

How differential collision search works

Differential cryptanalysis looks inside the hash. Choose a message difference: which bits, or which modular amounts, differ between the two messages. Follow how it propagates through the steps of the compression function. A complete assignment of differences to every state word and every step is a differential path (or characteristic). If the path ends with zero difference in the chaining value, any message pair that follows it is a collision.

Each step of the path holds only if particular bits of the actual state values satisfy conditions: a Boolean function like (b ∧ c) ∨ (¬b ∧ d) passes a difference in c only when b is 1, and modular addition can propagate or absorb a difference through carries. A full path imposes many such conditions; Wang and Yu list theirs for MD5 in tables of sufficient conditions, and a random message pair almost never satisfies them all.12

The way around this is message modification. In the first sixteen steps each message word enters the state directly, so an attacker can choose the state values that satisfy every condition and solve backwards for the message words that produce them. Wang and Yu described this for MD5 as single-message modification: “it is very easy to generate messages that fulfill all the conditions of the first 16 steps”.12 Multi-message modification extends control into the second round; conditions beyond its reach are left to chance, paid for by trying many messages.12

A further idea made the attacks fit the Merkle-Damgård structure: use two blocks. The first block pair is a near-collision: it leaves a small, specific difference in the chaining value. The second block pair starts from that difference and cancels it. In Wang and Yu’s MD5 attack, finding the first blocks costs about 2^39 MD5 operations and the second about 2^32.12

MD5, 1993 to 2005

MD5’s compression function showed weakness early. Bert den Boer and Antoon Bosselaers found a pseudo-collision in 1993: the same message under two different chaining values, a free-start collision in the terminology above. Hans Dobbertin found two different 512-bit blocks colliding under one chosen initial value, a semi-free-start collision, presented at the Eurocrypt 1996 rump session.13 14 Neither gave a collision from the real IV.

In August 2004 Xiaoyun Wang, Dengguo Feng, Xuejia Lai and Hongbo Yu posted collisions for MD4, MD5, HAVAL-128 and RIPEMD, and showed them at the Crypto 2004 rump session. Their MD5 collisions were pairs of 1024-bit messages from the standard IV, with block differences in message words m4, m11 and m14 (numbering from m0).13 Wang and Yu later reported that on an IBM P690 the first block pair took about an hour (15 minutes in the fastest cases) and the second 15 seconds to 5 minutes.12 The full method appeared at Eurocrypt 2005. Its key technical choice was to measure differences by modular subtraction instead of XOR, with a precise path and a set of sufficient conditions, rather than a probabilistic characteristic.12

SHA-1, 2005

SHA-1 resisted the MD5 techniques because of its message expansion. In MD5 a difference in one message word appears once per round, at predictable steps; in SHA-1 it spreads through the linear recurrence into dozens of the eighty expanded words, each injecting a difference into the state.

The attacks exploit the same linearity. A local collision is a short pattern: introduce a difference in one step and cancel it with corrections over the following steps, after which the state is equal again. Wang, Yin and Yu use SHA-0’s six-step local collision, which they note also applies to SHA-1 because it does not depend on the message expansion. A disturbance vector records where local collisions start, and they observe that it must itself satisfy the message expansion recurrence, which for SHA-1 reads x_i = (x_{i−3} ⊕ x_{i−8} ⊕ x_{i−14} ⊕ x_{i−16}) ⋘ 1, so sixteen consecutive entries determine the rest.15 The design problem is to pick a vector with few active steps beyond the reach of message modification; the early steps use a hand-built nonlinear path.15

At Crypto 2005 Wang, Yin and Yu reported a collision attack on full 80-step SHA-1 with “complexity less than 2^69 hash operations”, “the first attack on the full 80-step SHA-1 with complexity less than the 2^80 theoretical bound”. This was an estimate; no full SHA-1 pair was computed. They did compute real collisions for SHA-1 reduced to 58 steps, with fewer than 2^33 operations, and for full SHA-0, with fewer than 2^39.15

Identical-prefix and chosen-prefix collisions

The 2004 MD5 pairs collided from the standard IV. The method behind them, as later generalised, gives identical-prefix collisions: take a prefix P padded to a block boundary, hash it to a chaining value, and compute two different block sequences C and C′ that collide from that value. Because P ‖ C and P ‖ C′ have the same length and the same chaining value, any common suffix S keeps them equal, padding included: H(P ‖ C ‖ S) = H(P ‖ C′ ‖ S).16 17

That is less useful than it sounds, but not useless. The two messages are identical outside the collision blocks, which are random-looking, and within those blocks only scattered bits differ; SHAttered’s pair spans two full 64-byte near-collision blocks.9 A forgery needs that difference to change what the messages mean. Sometimes the blocks can carry meaning themselves: the 2005 colliding certificates below differ only in their public keys. Otherwise the format must let the region steer what a reader sees, for example a program that branches on its own bytes, or an image format parsed in two ways. The SHAttered PDFs “rely on distinct parsings of JPEG images”.9 Where a signer generates most of the content, as a CA does for many X.509 certificate fields, there is less room.

A chosen-prefix collision removes the restriction. Given two arbitrary prefixes P and P′, which may differ in length and content, the attacker computes suffixes S and S′ such that H(P ‖ S) = H(P′ ‖ S′).18 The prefixes can name two different people, contain two different public keys, or describe two different certificate types.

Leurent and Peyrin describe how the chosen-prefix attacks on MD5 and SHA-1 work, in two phases. The prefixes leave a random difference δ between the two chaining values. A birthday phase appends random blocks until δ falls in a large predetermined set D of differences that a succession of near-collision blocks can erase, at a cost they give as about √(π · 2^n / |D|); the near-collision blocks then remove the difference.19

For MD5 the cost difference between the two kinds was large: Stevens, Lenstra and de Weger’s chosen-prefix construction at Eurocrypt 2007 cost about 2^50 compression calls, while by 2009 identical-prefix collisions cost about 2^16.20 17 For SHA-1 in 2020 it was a factor of about 4.6 on the same GPU (see the table below).19

MD5 in the certificate system, 2005 to 2012

Colliding certificates, 2005 and 2007

In March 2005 Arjen Lenstra, Xiaoyun Wang and Benne de Weger announced “a pair of valid X.509 certificates with identical signatures”.21 Being identical-prefix, the two certificates had to differ only in the region where the collision blocks lived: the RSA public key. The distinguished names, the identities, were equal, because “Wang’s hash collision construction requires identical Intermediate Hash Values” and “the public key field is the only suitable place where such a value can unsuspiciously be hidden”.20 It proved that a CA’s MD5 signature could cover two keys, but the authors still had to build both certificates themselves.

In 2007 Marc Stevens, Lenstra and de Weger published the chosen-prefix construction, at “an approximate expected cost of 2^50 calls to the MD5 compression function”, and used it to build two MD5-based certificates with different public keys and different distinguished names. They still described the “practical attack potential” as limited.20 Their certificates were self-made; no real CA had signed one.

The rogue CA, December 2008

On 30 December 2008, at the 25th Chaos Communication Congress, Alexander Sotirov, Marc Stevens, Jacob Appelbaum, Arjen Lenstra, David Molnar, Dag Arne Osvik and Benne de Weger presented “MD5 considered harmful today: creating a rogue CA certificate”.16 17 The plan: buy an ordinary website certificate from a commercial CA that signed with MD5, having crafted the request so that the to-be-signed part of the certificate the CA would produce collided with the to-be-signed part of a second certificate, which was an intermediate CA certificate with “CA = TRUE”. A currently valid certificate of that kind would let its holder issue website certificates that chain to a browser-trusted root; the team deliberately made theirs expired.

They collected more than 100,000 website certificates, of which about 30,000 were signed by CAs trusted by Firefox; about 9,000 of those were signed with MD5, and 97% of the MD5 ones were issued by RapidSSL.16 The serial number and validity period, set by the CA, sit in the chosen prefix and had to be predicted about three days ahead, the time the collision took. RapidSSL issued each certificate “exactly 6 seconds” after the purchase was confirmed, with validity starting then. Serial numbers were sequential, and from Thursday night to Sunday night the CA typically issued 800 to 1,000 certificates, so the team read the counter on Thursday, predicted it for a target time on Sunday night, and bought certificates in the final hours to push it to one below the target about 30 seconds before the deadline.16

The requester controlled only a few fields of the real certificate, among them the names and the public key, and the researchers hid the collision in the RSA modulus: after alignment bytes, 96 “birthday bits” and three near-collision blocks of 512 bits, then a final 208 bits chosen so that the modulus was a product of two known primes. In the rogue certificate, the bytes opposite the real certificate’s public key were swallowed by a comment extension that certificate software ignores.16 The birthday phase ran for about 18 hours on about 200 PlayStation 3 consoles at EPFL, the near-collision blocks 3 to 10 hours on a quad-core PC; the Crypto 2009 paper reports refinements bringing the construction to about 2^49 MD5 compression calls.16 17

Timing defeated the first three weekends: some certificates came back a second late, and other customers’ purchases moved the counter. The fourth succeeded, producing a real certificate with serial number 643015, valid from 3 November 2008 to 4 November 2009. As a safeguard the rogue CA certificate was backdated to a window from 31 July to 2 September 2004, so browsers with correct clocks would reject it as expired.16

The project page reports that VeriSign, which owned RapidSSL, responded immediately, quoting a VeriSign blog post that said it had stopped using MD5 for RapidSSL certificates.16 Microsoft’s Security Advisory 961509, published the same day as the talk, said the disclosure “does not increase risk to customers significantly” and that Microsoft was encouraging CAs “to migrate to the newer SHA-1 signing algorithm”.22 The researchers recommended stopping MD5 for signatures and, as a stopgap, randomising serial numbers, which they called “mere band-aids”.16 Nearly eight years later CA/Browser Forum Ballot 164, citing the 25C3 talk, required from 30 September 2016 that serial numbers contain “at least 64 bits of output from a CSPRNG”, and the current Baseline Requirements keep that rule.23 24

Flame, 2012

Flame, cyber-espionage malware discovered in May 2012 that the SHAttered authors note has been linked to nation-state actors, spread on local networks by impersonating Windows Update with a validly signed fake security patch.9 Stevens writes that it “seems to be the first to use a chosen-prefix collision attack maliciously in the wild”.25 On 3 June 2012 Microsoft published Security Advisory 2718704, “Unauthorized Digital Certificates Could Allow Spoofing”, and revoked trust in two “Microsoft Enforced Licensing Intermediate PCA” certificates and a “Microsoft Enforced Licensing Registration Authority CA (SHA1)” certificate.26

Marc Stevens’ analysis explained the mechanism. Microsoft’s Terminal Server Licensing Service still issued MD5-signed certificates for licensing purposes, chaining to a Microsoft root. The attackers had obtained a signature on an innocuous-looking certificate whose to-be-signed part collided with the malicious code-signing certificate.25 The innocuous sibling was unavailable, so Stevens ran his detection code on a privately obtained copy of the malicious certificate; it found four near-collision blocks and reconstructed their differential paths. The paths were “not of the same family” his team had used: Flame “employed an as of yet unknown variant” of chosen-prefix collision attack on MD5.25

SHA-1, 2005 to 2020

SHA-1 followed MD5’s path more slowly; its estimated attack costs started higher and fell in stages. The 2020 figures are SHA-1 equivalents on an Nvidia GTX 970 GPU, measured with hashcat benchmarks; on that device the chosen-prefix attack cost 2.2 bits, about 4.6 times, more than the identical-prefix one.19 The public record:

YearResultReported cost
2005Wang, Yin, Yu: first full SHA-1 collision attack (estimate, no pair)< 2^69 SHA-1 operations15
2013Stevens: identical-prefix attack and first chosen-prefix attack (estimates)about 2^61 and 2^77.1 SHA-1 compressions27
2015Stevens, Karpman, Peyrin: free-start collision of the full compression function (computed)about 2^57.5 SHA-1 compressions; 10 days on 64 GPUs8
2017SHAttered: first computed full collision (identical-prefix)2^63.1 SHA-1 compressions, CPU and GPU; about 6,500 CPU-years and 100 GPU-years28
2019Leurent, Peyrin: chosen-prefix attack (estimate)2^66.9 to 2^69.4 SHA-1 compressions29
2019–2020Leurent, Peyrin, “SHA-1 is a Shambles”: first computed chosen-prefix collision, found in 2019, published January 20202^63.4 GTX 970 equivalents (identical-prefix 2^61.2); $75,000 paid, $45,000 at cheap rental rates30 19

Two cautions apply when reading the column. First, units differ. The 2020 paper’s baseline of 2^64.7 for the earlier identical-prefix attack is, by its own note, “equivalent to 2^61 SHA-1 on CPU”.19 The SHAttered team derived that 2^64.7 as an expected cost from the rate of a prototype GPU implementation compared with SHA-1 on the same GPU.9 Second, estimates are not runtimes: the SHAttered computation itself, which mixed CPU and GPU phases, was estimated at the equivalent of 2^63.1 compressions.9

The free-start collision of 2015 is a compression-function collision from two different chosen chaining values, so by the Merkle-Damgård argument above it did not yield a hash collision. Its importance was economic. Using it to calibrate GPU throughput, the authors projected a full SHA-1 collision at $75,000 to $120,000 of rented Amazon EC2 time, well below Bruce Schneier’s 2012 estimate (based on Jesse Walker’s calculations) of about $700,000 in 2015.9 8

SHAttered, 2017

On 23 February 2017 Google and CWI Amsterdam announced the first SHA-1 collision. The blog post gave the total as 9,223,372,036,854,775,808 SHA-1 computations, 6,500 CPU-years for the first phase and 110 GPU-years for the second, and said Google would wait 90 days before releasing code.31 The paper, by Marc Stevens, Elie Bursztein, Pierre Karpman, Ange Albertini and Yarik Markov, gives 2^63.1 and “approximately 6,500 CPU years and 100 GPU years”.28

Technically, SHAttered is an identical-prefix attack: a chosen PDF prefix followed by “two distinct near-collision block pairs such that they collide for any suffix”.9 The first block pair was computed on CPUs, the second, more expensive, on GPUs. The prefix sets up a JPEG whose two parsings depend on the colliding bytes, so two PDFs display different images while sharing a SHA-1 digest. That matters when someone else will hash or sign one of two documents the attacker designed; it does not by itself forge a certificate whose fields a CA chooses.

Chosen-prefix SHA-1 and the PGP forgery, 2019 to 2020

Gaëtan Leurent and Thomas Peyrin closed that gap in two steps. At Eurocrypt 2019 they gave a chosen-prefix attack estimated at 2^66.9 to 2^69.4, against a previous best of 2^77.1, “within a small factor” of the classical collision attack.29 They then ran an improved version, with the costs in the table. The computation took two months on 900 Nvidia GTX 1060 GPUs. They paid $75,000 in rental, and write that the price could have been lower because they lost some time tuning the attack, and that GPU rental prices fluctuate with cryptocurrency prices.30 19

Their demonstration targeted the PGP web of trust, in which users certify each other’s keys. Key A holds an 8,192-bit RSA key and Alice’s user ID. Key B holds a 6,144-bit RSA key, Bob’s user ID and a small JPEG image, padded after its end-of-image marker with bytes that reproduce the end of key A’s data. When a third party certifies key B, it signs one certificate over B’s key and user ID and another over B’s key and image. That second certificate collides with the one over key A and Alice’s user ID, so its signature can be copied to key A, which Bob controls. Because the collision is computed before the user IDs and image are chosen, one collision can serve many victims, and no field the signer sets had to be predicted.19 The legacy GnuPG 1.4 branch still used SHA-1 by default for identity certifications, and the modern branch accepted such signatures until the report.18 The authors first discussed the attack with GnuPG developers on 9 May 2019, reported the computed collision on 1 October 2019 and give the identifier CVE-2019-14855.18 GnuPG 2.2.18, released on 25 November 2019, “removes all SHA-1 based key signature newer than 2019-01-19 from the web-of-trust”, with an option to override.32

The authors’ 2020 project page summarised: “all attacks that are practical on MD5 are now also practical on SHA-1”. It listed X.509 certificates as at risk “if some Certificate Authorities issue SHA-1 certificates with predictable serial numbers” and forecast that a SHA-1 chosen-prefix collision would cost less than $10,000 by 2025.18 Their USENIX paper adds that 18% of top-level domains used SHA-1 in DNSSEC at the time of writing, and that DNSSEC signatures include user-supplied content.19

Collateral damage outside signatures

Apache Subversion de-duplicated stored content by SHA-1. Committing both SHAttered PDFs to a repository with representation sharing enabled, the default, stored only one of them; the commit succeeded, but later updates and commits failed with checksum errors because the files’ MD5 checksums differed. Subversion 1.9.6 and 1.8.18 reject commits that create a SHA-1 collision.33

In SHA-1-format repositories, Git names every object by its SHA-1. Git 2.13 made the collision-detecting SHA-1 of Marc Stevens and Dan Shumow its default.34 That code, sha1collisiondetection, checks each block for the internal pattern of a near-collision block under 32 SHA-1 disturbance vectors, with false positives below 2^−90, at less than twice the cost of plain SHA-1.35 The idea is Stevens’ counter-cryptanalysis: an attack leaves “unavoidable anomalies” in the one message an implementation sees, which is how Flame’s certificate was diagnosed.25 Git’s design document says hardened SHA-1 “isn’t vulnerable to the SHAttered attack, but SHA-1 is still weak”.36 SHA-256 repositories arrived experimentally in Git 2.29.37 Git’s breaking-changes document (last updated in 2.55) says Git 3.0 will make SHA-256 the default for new repositories once “popular Git libraries, applications and forges” support it.38 LWN reported on 18 September 2026 that GitHub had not yet added SHA-256 support.39

Why years passed between theory and forgery

The MD5 record runs from August 2004 (first collisions) to December 2008 (rogue CA); the SHA-1 record from 2005 (2^69 estimate) to January 2020 (chosen-prefix forgery). In both demonstrations three conditions had to hold together: the attack had to be affordable, the attacker had to control enough of the signed input, and verifiers had to still accept the weak hash. Several separate obstacles delayed them.

  1. Cost. The SHAttered authors call the 2005 estimate of 2^69 “practically out-of-reach”. Better paths, neutral bits, boomerangs and GPU implementations removed bits step by step, and the 2015 free-start work projected a full collision at $75,000 to $120,000 of rented GPU time.9
  2. The kind of collision. Identical-prefix collisions were computed first for both functions. From the first computed identical-prefix pair to the first computed chosen-prefix pair took about three years for MD5 (2004 to 2007) and about two for SHA-1 (2017 to 2019). From the first estimate below the generic bound to the first computed pair took about twelve years for SHA-1 (2005 to 2017).
  3. Format and process. In 2008, every CA-set field inside the chosen prefix had to be predicted days ahead, so RapidSSL’s sequential serials and fixed six-second delay mattered as much as the cryptanalysis.16
  4. Continued acceptance. About 9,000 of some 30,000 certificates from Firefox-trusted CAs in the 2008 survey were MD5-signed, Microsoft’s licensing service still issued MD5 certificates in 2012, and modern GnuPG accepted SHA-1 identity certifications in 2019.16 25 18

Deprecation dates show the same lag. NIST says it responded to the 2005 SHA-1 attack in 2006 by encouraging a move to SHA-2 for signatures, and SP 800-131A in 2011 deprecated SHA-1 for new signatures.40 CA/Browser Forum Ballot 118 (October 2014) barred CAs from issuing new SHA-1 subscriber and subordinate CA certificates from 1 January 2016; it exempted root and cross certificates and allowed SHA-1 certificates for verifying OCSP responses until 1 January 2017.41 Chrome 39, branched in September 2014, treated a site as “secure, but with minor errors” if its chain included a SHA-1 signature and its leaf certificate expired on or after 1 January 2017.42 On 23 February 2017 Mozilla said its SHA-1 deprecation would reach all Firefox users the next day and expected it to affect “well under 0.1% of Web traffic”.43 For publicly trusted TLS certificates under the Baseline Requirements, Ballot SC097, adopted in January 2026, stopped SHA-1 in new CRLs and required unexpired SHA-1 subordinate CA certificates to be revoked, effective 15 September 2026.44

Preimages remain far away

None of this affects preimage resistance much. Sasaki and Aoki’s preimage attack on full MD5 (Eurocrypt 2009) costs 2^123.4, with a pseudo-preimage at 2^116.9 and memory of 2^45 × 11 words, using splice-and-cut meet-in-the-middle and local-collision techniques.45 RFC 6151’s verdict on it: faster than exhaustive search, “still pretty high”.14 Guo, Li, Liu, Wang and Zhang (Eurocrypt 2026) improved it slightly; Appendix E of their ePrint version gives a preimage at 2^122.5 and a pseudo-preimage at 2^115.1, with 2^14 memory.46 For SHA-1, the preimage attacks cited here cover reduced versions; Espitau, Fouque and Karpman (Crypto 2015) reached 62 of 80 rounds for a one-block preimage without padding and for a two-block preimage with padding.47 Leurent and Peyrin wrote in 2020 that SHA-1’s preimage resistance “remains unbroken as of today”.18

Collision attacks do not give preimages because the attacker controls both messages. Message modification works by choosing state values and solving for message words; a preimage attacker has a fixed target and no partner message to absorb the conditions. The near-collision blocks are also visibly structured, which is what makes counter-cryptanalytic detection possible.25

The published collision attacks therefore do not directly apply to two kinds of use.

  • HMAC as a MAC. RFC 6151 reviewed attacks on HMAC-MD5 and concluded that they “do not seem to indicate a practical vulnerability when used as a message authentication code”, so “it may not be urgent to remove HMAC-MD5 from the existing protocols”; new protocols should not include it, and it names HMAC-SHA256 as an alternative.14 Leurent and Peyrin call HMAC-SHA-1 “relatively safe”.18 RFC 9155, which bans MD5 and SHA-1 in TLS 1.2 signatures, does not deprecate HMAC-SHA-1 for record protection.48
  • Hashes of data the attacker could not influence, such as integrity checks on files the defender produced, provided the reference digest is itself trusted, for example signed or obtained over an authenticated channel. A forger then needs a second preimage, which the published collision attacks do not provide.

What is not safe is anything whose security relies on collision resistance while an attacker supplies or shapes content that a party later trusts by its hash: signatures and certificates, code signing, timestamping, and content-addressed storage or de-duplication where both colliding objects can be submitted. RFC 9155 (December 2021) forbids MD5 and SHA-1 in TLS 1.2 and DTLS 1.2 digital signatures.48

What SHA-2 and SHA-3 changed

SHA-2 (SHA-256, SHA-512 and their truncations) keeps the Merkle-Damgård structure, but its message expansion mixes words with modular additions as well as rotations and shifts, so it is not linear,5 and SHA-1’s disturbance vectors, which rely on a linear recurrence, cannot be reused. Differential attacks still apply in other forms: Zhang, Li, Gao and Wang write that going beyond 31 steps of SHA-256 “necessitates new local collisions in the message expansion”.49 Progress is measured in steps, against 64 for SHA-256 and 80 for SHA-512.5 A selection of results, as of 3 December 2026: at Eurocrypt 2024 Li, Liu and Wang reported a practical semi-free-start collision for 39-step SHA-256 and a practical collision for 28-step SHA-512;50 at Eurocrypt 2026 Zhang, Li, Gao and Wang presented “the first 37-step collision attack on SHA-256”, the first increase over 31 steps since 2013.49 Preprints from November 2026 go further. Goldzweig reports an actual colliding pair for 38-step SHA-256 from the standard IV; his expected cost of 2^54.8 counts compression calls only, excluding 2^57.5 table accesses and 52,300 vCPU-hours of preparation.51 Gong and colleagues estimate 2^108.8 compressions per expected collision for 39-step SHA-256, with an upper bound of about 2^124.6 on the expected cost of the first collision under their model.52 Porechna and six co-authors estimate about 2^98.7 compression-equivalents per expected collision for 39-step SHA-256, resting on stated heuristic premises; they have not run the attack and found no collision.53 Yuan and Yu report a standard-IV colliding pair for 36-step SHA-512.54 All of these attack reduced-step versions. NIST’s 2015 policy statement said “currently there is no need to transition applications from SHA-2 to SHA-3”.55

SHA-3 came from a public NIST competition that selected Keccak in October 2012.56 FIPS 202 (August 2015) built the SHA-3 functions on the Keccak-p[1600, 24] permutation in a sponge construction.4 The 1,600-bit state is split into a rate r, which absorbs message blocks and is squeezed for output, and a capacity c, which is never directly input or output. Modelling the permutation as random, the designers proved that a generic attack succeeds against a sponge with at most its probability against a random oracle plus N²/2^(c−1) for N permutation calls. For a concrete permutation they make a “flat sponge claim”, that the best attacks must be generic, so an attack costing less than 2^(c/2) would imply a structural distinguisher on the permutation. That is a claim tested by cryptanalysis, not a proof.57 For the four fixed-length SHA-3 hash functions, FIPS 202 sets c = 2d for a d-bit digest (SHA3-256 has c = 512), so the d/2 birthday bound is the binding one for collisions; the XOFs SHAKE128 and SHAKE256 have fixed capacities of 256 and 512 bits and variable output length, with collision strength min(d/2, 128) and min(d/2, 256).4 Merkle-Damgård length extension does not carry over, because a digest reveals only part of the state, never the capacity, and squeezing output is a different operation from absorbing input; FIPS 202 says the SHA-3 functions are designed to resist length-extension attacks.4 NIST’s estimates also show no long-message second-preimage loss: FIPS 202 rates SHA3-256 at 256 bits against second preimages, where SHA-256 gets 256 − L(M).4 The random-oracle methodology behind such arguments is discussed in the article on cryptography foundations.

Current rules

NIST SP 800-131A Revision 2 (March 2019) is the rule in force. Its Table 8 allows SHA-1 for digital signature generation only “where specifically allowed by NIST protocol-specific guidance”, permits it for verification as “legacy use”, and accepts it in non-signature applications only for “applications that do not require collision resistance”. SHA-2 and the four fixed-length SHA-3 functions are acceptable for all hash applications.58 NIST’s hash policy page, in its December 2022 entry, recommends that federal agencies move away from SHA-1 “for all applications as soon as possible” and says that after 31 December 2030 any FIPS 140 validated module with SHA-1 as an approved algorithm moves to the historical list; its earlier 2015 entry let agencies use SHA-1 for HMAC, key derivation and random bit generation.55

On 15 December 2022 NIST announced that SHA-1 should be phased out by 31 December 2030, and that it plans to publish FIPS 180-5 without SHA-1 and revise SP 800-131A.59 40 In the initial public draft of SP 800-131A Revision 3 (21 October 2024), SHA-1 signature generation becomes simply “disallowed”, and applying protection with SHA-1 in non-signature uses is deprecated through 31 December 2030 and disallowed after; SHA-224, SHA-512/224 and SHA3-224 get the same end date.60 As of 3 December 2026 we found no final Revision 3 on NIST’s site, so these terms are proposals.

What a practitioner should do

In rough priority order:

  1. Inventory by property, not by algorithm name. List every use of MD5 and SHA-1 and note, for each, whether security relies on collision resistance and whether an attacker could arrange two inputs that are later compared or trusted by digest. Signatures, certificates, code signing, timestamping, de-duplication and content addressing usually are; MACs and integrity checks against a trusted digest of data the defender produced usually are not.
  2. Remove collision-sensitive uses first. SHA-1 signature generation is disallowed under SP 800-131A Rev. 2 except where NIST protocol-specific guidance allows it, MD5 and SHA-1 are banned from TLS 1.2 signatures, and the Baseline Requirements for publicly trusted TLS certificates sunset SHA-1 signatures in certificates and CRLs in 2026.58 48 44 Look for the forgotten corners, which is where the 2012 and 2019 attacks landed: internal CAs, licensing services, legacy key certifications, DNSSEC keys, firmware signing.
  3. Use SHA-256 or SHA-3, and a real MAC. For message authentication use HMAC or KMAC, not a raw hash of key and message.10 61
  4. Add unpredictable signer data where a signer must still accept attacker-shaped input. In the certificate setting, unpredictable serial numbers block the specific 2008 approach, in which the attacker had to fix the chosen prefix before the CA signed; Ballot 164 made 64 random bits mandatory for that reason.16 23 This raises the cost of that attack; it is not a substitute for migration.
  5. Detect what you cannot yet remove. Where SHA-1 must remain, as in existing Git repositories, use a collision-detecting implementation, which flags the attack patterns it was built for, near-collision blocks under 32 known disturbance vectors; Git has done so by default since 2.13.34 35
  6. Treat HMAC-MD5 and HMAC-SHA-1 as compatibility to retire, not as choices for new designs. RFC 6151 says new protocol designs should not include HMAC-MD5, and NIST’s 2022 policy urges moving off SHA-1 for all applications, with validated modules that still approve SHA-1 moving to the historical list after 31 December 2030.14 55

Where experts disagree

What “broken” should mean. By the cryptanalytic usage of the first section, SHA-1 was broken in 2005. Leurent and Peyrin use it: “SHA-1 has been broken for 15 years”, and they recommend deprecating SHA-1 “even when there is no direct evidence that this weaknesses can be exploited”.18 A narrower operational reading, which we paraphrase as “an attacker can forge something I rely on”, depends on who controls the inputs and who relies on the digest; it was met for SHA-1 certifications in GnuPG’s web of trust in 2020.18 Waiting for it is risky: in both the MD5 and SHA-1 cases, demonstrated transfers arrived years after the first warnings, and deployed systems still accepted the weak hash.16 18

Whether SHA-1 in Git was acceptable. After SHAttered, in February 2017, Linus Torvalds argued on Google+, as reported by The Register, that “the sky isn’t falling”, that Git uses SHA-1 mainly for error detection, “parity on steroids”, and that trust rests on where code is fetched from.62 John Gilmore wrote that “nasty people will teach him the threat model”.62 Git’s own design document now says that if “SHA-1 and its variants” were truly broken, “Git’s hash function could not be considered cryptographically secure any more”, because “we could not trust that a given hash value represented the known good version of content that the speaker intended”.36 That names the gap in the 2017 argument: a trusted server vouches for what it serves, but a hash quoted elsewhere, in a signed tag or an email, is trusted only through collision resistance. Git plans the move to SHA-256 described above.38

Whether HMAC with SHA-1 should stay. RFC 6151 judged HMAC-MD5 not urgent to remove from existing protocols, Leurent and Peyrin consider HMAC-SHA-1 relatively safe, and RFC 9155 left it in TLS 1.2 record protection.14 18 48 NIST nevertheless urges moving off SHA-1 for all applications, saying attacks on SHA-1 “as used in other applications have become increasingly severe”.55 40

Conclusion

A hash function is broken for a property when an attack beats the generic cost of 2^n for preimages or 2^(n/2) for collisions, which is a narrower statement than “unsafe to use”. MD5 and SHA-1 lost collision resistance to differential attacks that exploit control over both messages, through message modification and near-collision blocks. The record has three stages: cost estimates (SHA-1, 2005), computed pairs (MD5, 2004; SHA-1, 2017) and demonstrated signature transfers (the MD5 rogue-CA proof of concept, 2008; the SHA-1 PGP certification, 2020), with Flame in 2012 apparently the first malicious use. In both demonstrations the attack had become affordable, worked on chosen prefixes, and met a verifier that still accepted the weak hash. In 2008 the CA’s serial number and validity dates also had to be predicted; in 2020 the attacker chose the key material and time-stamps itself, and one collision could serve many victims. Identical-prefix collisions remain a threat wherever a flexible file format is signed or content-addressed. Preimage resistance for both functions remains far beyond practical reach, so uses that do not depend on collision resistance, chiefly HMAC, are lower priority. Where security relies on collision resistance and an attacker can arrange two inputs that someone later trusts by digest, the fix is migration to SHA-256 or SHA-3.

Footnotes

  1. Phillip Rogaway and Thomas Shrimpton, Cryptographic Hash-Function Basics: Definitions, Implications and Separations for Preimage Resistance, Second-Preimage Resistance, and Collision Resistance, FSE 2004, IACR ePrint 2004/035 (revised 2009). https://eprint.iacr.org/2004/035 (opens in a new tab) ↩1 ↩2
  2. Phillip Rogaway, Formalizing Human Ignorance: Collision-Resistant Hashing without the Keys, Vietcrypt 2006, IACR ePrint 2006/281. https://eprint.iacr.org/2006/281 (opens in a new tab) ↩
  3. Paul C. van Oorschot and Michael J. Wiener, Parallel Collision Search with Cryptanalytic Applications, version of 23 September 1996 (preliminary versions at ACM CCS 1994; published in the Journal of Cryptology). https://people.scs.carleton.ca/~paulv/papers/JoC97.pdf (opens in a new tab) ↩1 ↩2 ↩3
  4. NIST, FIPS 202, SHA-3 Standard: Permutation-Based Hash and Extendable-Output Functions, August 2015, Section 6 and Appendix A.1, Table 4. https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  5. NIST, FIPS 180-4, Secure Hash Standard (SHS), August 2015, Sections 1, 5, 6 and 7 and Figure 1. https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
  6. Antoine Joux, Multicollisions in Iterated Hash Functions. Application to Cascaded Constructions, CRYPTO 2004, LNCS 3152, pp. 306–316, Sections 3, 4.1 and 4.2 (read in the publisher’s chapter PDF). https://doi.org/10.1007/978-3-540-28628-8_19 (opens in a new tab) ↩
  7. R. Rivest, RFC 1321, The MD5 Message-Digest Algorithm, IETF, April 1992. https://www.rfc-editor.org/rfc/rfc1321 (opens in a new tab) ↩1 ↩2 ↩3
  8. Marc Stevens, Pierre Karpman and Thomas Peyrin, Freestart collision for full SHA-1, EUROCRYPT 2016, IACR ePrint 2015/967 (abstract; definitions in Section 1 of the authors’ PDF at marc-stevens.nl/research/papers/KPS_freestart80.pdf). https://eprint.iacr.org/2015/967 (opens in a new tab) ↩1 ↩2 ↩3
  9. Marc Stevens, Elie Bursztein, Pierre Karpman, Ange Albertini and Yarik Markov, The first collision for full SHA-1 (full paper PDF, Sections 5.7 and 6.1, Wayback Machine copy of shattered.io/static/shattered.pdf, captured 2017). https://web.archive.org/web/2017id_/https://shattered.io/static/shattered.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9
  10. H. Krawczyk, M. Bellare and R. Canetti, RFC 2104, HMAC: Keyed-Hashing for Message Authentication, IETF, February 1997, Section 2. https://datatracker.ietf.org/doc/html/rfc2104#section-2 (opens in a new tab) ↩1 ↩2
  11. John Kelsey and Bruce Schneier, Second Preimages on n-bit Hash Functions for Much Less than 2^n Work, IACR ePrint 2004/304 (abstract, SHA-1 example); EUROCRYPT 2005 version hosted by Schneier at schneier.com/wp-content/uploads/2016/02/paper-preimages.pdf (abstract and Section 4, RIPEMD-160 example). https://eprint.iacr.org/2004/304 (opens in a new tab) ↩
  12. Xiaoyun Wang and Hongbo Yu, How to Break MD5 and Other Hash Functions, EUROCRYPT 2005, Sections 1 and 4 (Wayback Machine capture of the IACR archive PDF). https://web.archive.org/web/2020id_/https://www.iacr.org/archive/eurocrypt2005/34940019/34940019.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  13. Xiaoyun Wang, Dengguo Feng, Xuejia Lai and Hongbo Yu, Collisions for Hash Functions MD4, MD5, HAVAL-128 and RIPEMD, IACR ePrint 2004/199, August 2004 (PDF read via the Wayback Machine). https://eprint.iacr.org/2004/199 (opens in a new tab) ↩1 ↩2
  14. S. Turner and L. Chen, RFC 6151, Updated Security Considerations for the MD5 Message-Digest and the HMAC-MD5 Algorithms, IETF, March 2011. https://www.rfc-editor.org/rfc/rfc6151 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  15. Xiaoyun Wang, Yiqun Lisa Yin and Hongbo Yu, Finding Collisions in the Full SHA-1, CRYPTO 2005, abstract and Sections 1 and 3 (Wayback Machine capture of the IACR archive PDF). https://web.archive.org/web/2020id_/https://www.iacr.org/archive/crypto2005/36210017/36210017.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  16. Alexander Sotirov, Marc Stevens, Jacob Appelbaum, Arjen Lenstra, David Molnar, Dag Arne Osvik and Benne de Weger, MD5 considered harmful today: Creating a rogue CA certificate, project page, 30 December 2008 with later additions. https://www.win.tue.nl/hashclash/rogue-ca/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13
  17. Marc Stevens, Alexander Sotirov, Jacob Appelbaum, Arjen Lenstra, David Molnar, Dag Arne Osvik and Benne de Weger, Short Chosen-Prefix Collisions for MD5 and the Creation of a Rogue CA Certificate, CRYPTO 2009, IACR ePrint 2009/111. https://eprint.iacr.org/2009/111 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  18. Gaëtan Leurent and Thomas Peyrin, SHA-1 is a Shambles, project page with Q&A and disclosure timeline, 2020. https://sha-mbles.github.io/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
  19. Gaëtan Leurent and Thomas Peyrin, SHA-1 is a Shambles, 29th USENIX Security Symposium, August 2020, pp. 1839–1856, Sections 1, 2.2.3, 6.1 and 7.5 and Tables 1 and 2. https://www.usenix.org/system/files/sec20-leurent.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  20. Marc Stevens, Arjen Lenstra and Benne de Weger, Chosen-prefix Collisions for MD5 and Colliding X.509 Certificates for Different Identities, EUROCRYPT 2007 (Benne de Weger’s copy). https://deweger.net/papers/%5B40%5DStLedW-ChosPref-EuroCrypt%5B2007%5D.pdf (opens in a new tab) ↩1 ↩2 ↩3
  21. Arjen Lenstra, Xiaoyun Wang and Benne de Weger, Colliding X.509 Certificates, IACR ePrint 2005/067, received 1 March 2005. https://eprint.iacr.org/2005/067 (opens in a new tab) ↩
  22. Microsoft, Security Advisory 961509: Research proves feasibility of collision attacks against MD5, published 30 December 2008. https://learn.microsoft.com/en-us/security-updates/securityadvisories/2008/961509 (opens in a new tab) ↩
  23. CA/Browser Forum, Ballot 164: Certificate Serial Number Entropy (passed), 2016. https://cabforum.org/2016/03/31/ballot-164-certificate-serial-number-entropy/ (opens in a new tab) ↩1 ↩2
  24. CA/Browser Forum, Baseline Requirements for the Issuance and Management of Publicly-Trusted TLS Server Certificates, version 2.3.2, Sections 1.2.1, 7.1 and 7.1.3.2.1 (repository copy read 3 December 2026). https://github.com/cabforum/servercert/blob/main/docs/BR.md (opens in a new tab) ↩
  25. Marc Stevens, Counter-cryptanalysis, CRYPTO 2013, IACR ePrint 2013/358 (full text read via the Wayback Machine). https://eprint.iacr.org/2013/358 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  26. Microsoft, Security Advisory 2718704: Unauthorized Digital Certificates Could Allow Spoofing, published 3 June 2012, updated 13 June 2012. https://learn.microsoft.com/en-us/security-updates/securityadvisories/2012/2718704 (opens in a new tab) ↩
  27. Marc Stevens, New collision attacks on SHA-1 based on optimal joint local-collision analysis, EUROCRYPT 2013, abstract (author’s copy). https://marc-stevens.nl/research/papers/EC13-S.pdf (opens in a new tab) ↩
  28. Marc Stevens, Elie Bursztein, Pierre Karpman, Ange Albertini and Yarik Markov, The first collision for full SHA-1, CRYPTO 2017, IACR ePrint 2017/190 (abstract page). https://eprint.iacr.org/2017/190 (opens in a new tab) ↩1 ↩2
  29. Gaëtan Leurent and Thomas Peyrin, From Collisions to Chosen-Prefix Collisions: Application to Full SHA-1, EUROCRYPT 2019, IACR ePrint 2019/459. https://eprint.iacr.org/2019/459 (opens in a new tab) ↩1 ↩2
  30. Gaëtan Leurent and Thomas Peyrin, SHA-1 is a Shambles: First Chosen-Prefix Collision on SHA-1 and Application to the PGP Web of Trust, IACR ePrint 2020/014 (received 7 January 2020). https://eprint.iacr.org/2020/014 (opens in a new tab) ↩1 ↩2
  31. Marc Stevens, Elie Bursztein and others, Announcing the first SHA1 collision, Google Online Security Blog, 23 February 2017. https://security.googleblog.com/2017/02/announcing-first-sha1-collision.html (opens in a new tab) ↩
  32. Werner Koch, [Announce] GnuPG 2.2.18 released, gnupg-announce mailing list, 25 November 2019. https://lists.gnupg.org/pipermail/gnupg-announce/2019q4/000442.html (opens in a new tab) ↩
  33. Apache Subversion, Apache Subversion is unable to store SHA1 collisions, security advisory, 2017. https://subversion.apache.org/security/sha1-advisory.txt (opens in a new tab) ↩
  34. Git 2.13 Release Notes, Git project, tag v2.13.0. https://github.com/git/git/blob/v2.13.0/Documentation/RelNotes/2.13.0.txt (opens in a new tab) ↩1 ↩2
  35. Marc Stevens and Dan Shumow, sha1collisiondetection: Library and command line tool to detect SHA-1 collisions in files, README. https://github.com/cr-marcstevens/sha1collisiondetection (opens in a new tab) ↩1 ↩2
  36. Git project, Git hash function transition (technical design document). https://git-scm.com/docs/hash-function-transition (opens in a new tab) ↩1 ↩2
  37. Git 2.29 Release Notes, Git project, 2020. https://github.com/git/git/blob/master/Documentation/RelNotes/2.29.0.adoc (opens in a new tab) ↩
  38. Git project, Upcoming breaking changes (BreakingChanges, last updated in 2.55.0). https://git-scm.com/docs/BreakingChanges (opens in a new tab) ↩1 ↩2
  39. Jonathan Corbet, Looking forward to Git 2.56 and 3.0, LWN.net, 18 September 2026. https://lwn.net/Articles/1094575/ (opens in a new tab) ↩
  40. NIST CSRC, NIST Transitioning Away from SHA-1 for All Applications, 15 December 2022. https://csrc.nist.gov/news/2022/nist-transitioning-away-from-sha-1-for-all-apps (opens in a new tab) ↩1 ↩2 ↩3
  41. CA/Browser Forum, Ballot 118: SHA-1 Sunset (passed), October 2014. https://cabforum.org/2014/10/16/ballot-118-sha-1-sunset-passed/ (opens in a new tab) ↩
  42. Chris Palmer and Ryan Sleevi, Gradually sunsetting SHA-1, Google Online Security Blog, 5 September 2014. https://security.googleblog.com/2014/09/gradually-sunsetting-sha-1.html (opens in a new tab) ↩
  43. Mozilla Security Blog, The end of SHA-1 on the Public Web, 23 February 2017. https://blog.mozilla.org/security/2017/02/23/the-end-of-sha-1-on-the-public-web/ (opens in a new tab) ↩
  44. CA/Browser Forum, Ballot SC097: Sunset all remaining use of SHA-1 signatures in Certificates and CRLs (voting 16 to 23 January 2026, adopted unanimously; key date 15 September 2026). https://cabforum.org/2026/01/24/ballot-sc097-sunset-all-remaining-use-of-sha-1-signatures-in-certificates-and-crls/ (opens in a new tab) ↩1 ↩2
  45. Yu Sasaki and Kazumaro Aoki, Finding Preimages in Full MD5 Faster than Exhaustive Search, EUROCRYPT 2009, abstract (Wayback Machine capture of the IACR archive PDF). https://web.archive.org/web/2020id_/https://www.iacr.org/archive/eurocrypt2009/54790136/54790136.pdf (opens in a new tab) ↩
  46. Jian Guo, Haoran Li, Meicheng Liu, Shichang Wang and Tianyu Zhang, Dual-Syncopation Meet-in-the-Middle Attacks: New Results on SHA-2 and MD5, EUROCRYPT 2026, IACR ePrint 2026/353, Appendix E and Table 26 (PDF read via a Wayback Machine capture of 28 September 2026; Table 1 of that version prints 2^122.4 and 2^114.9). https://eprint.iacr.org/2026/353 (opens in a new tab) ↩
  47. Thomas Espitau, Pierre-Alain Fouque and Pierre Karpman, Higher-Order Differential Meet-in-The-Middle Preimage Attacks on SHA-1 and BLAKE, CRYPTO 2015, IACR ePrint 2015/515. https://eprint.iacr.org/2015/515 (opens in a new tab) ↩
  48. L. Velvindron, K. Moriarty and A. Ghedini, RFC 9155, Deprecating MD5 and SHA-1 Signature Hashes in TLS 1.2 and DTLS 1.2, IETF, December 2021. https://www.rfc-editor.org/rfc/rfc9155 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  49. Zhuolong Zhang, Muzhou Li, Lei Gao and Meiqin Wang, Collision Attacks on SHA-256 up to 37 Steps with Improved Trail Search, EUROCRYPT 2026, IACR ePrint 2026/232. https://eprint.iacr.org/2026/232 (opens in a new tab) ↩1 ↩2
  50. Yingxin Li, Fukang Liu and Gaoli Wang, New Records in Collision Attacks on SHA-2, EUROCRYPT 2024, IACR ePrint 2024/349. https://eprint.iacr.org/2024/349 (opens in a new tab) ↩
  51. Omer Goldzweig, A Collision for 38-Step SHA-256, IACR ePrint 2026/2913, preprint received 16 November 2026. https://eprint.iacr.org/2026/2913 (opens in a new tab) ↩
  52. Jiaying Gong, Yongzhuang Wei, Fengrong Zhang and Bohua Wei, Collision Attacks on SHA-2: 39-Step SHA-256 below the Birthday Bound, IACR ePrint 2026/2867, preprint received 11 November 2026. https://eprint.iacr.org/2026/2867 (opens in a new tab) ↩
  53. Dariia Porechna, Jeremy Benisek, Mitchell Travers, Brian Carpenter, Pontus Olovsson, Damian Kuthoore and Jordan Newman, Free State Words, Claws and Lists: A Collision Attack on 39-Step SHA-256 in One MiB, arXiv:2611.38903, preprint submitted 28 November 2026 (abstract). https://arxiv.org/abs/2611.38903 (opens in a new tab) ↩
  54. Sitong Yuan and Hongbo Yu, Time–Memory Tradeoffs for Message Modification in Step-Reduced SHA-512, IACR ePrint 2026/3005, preprint received 23 November 2026. https://eprint.iacr.org/2026/3005 (opens in a new tab) ↩
  55. NIST CSRC, NIST Policy on Hash Functions, entries of 5 August 2015 and 15 December 2022 (page updated 16 September 2026). https://csrc.nist.gov/Projects/hash-functions/NIST-Policy-on-Hash-Functions (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  56. NIST CSRC, SHA-3 Project. https://csrc.nist.gov/projects/hash-functions/sha-3-project (opens in a new tab) ↩
  57. Keccak team (Guido Bertoni, Joan Daemen, Michaël Peeters, Gilles Van Assche and others), Sponge and duplex constructions. https://keccak.team/sponge_duplex.html (opens in a new tab) ↩
  58. Elaine Barker and Allen Roginsky, NIST SP 800-131A Rev. 2, Transitioning the Use of Cryptographic Algorithms and Key Lengths, March 2019, Section 9, Table 8. https://csrc.nist.gov/pubs/sp/800/131/a/r2/final (opens in a new tab) ↩1 ↩2
  59. NIST, NIST Retires SHA-1 Cryptographic Algorithm, news release, 15 December 2022. https://www.nist.gov/news-events/news/2022/12/nist-retires-sha-1-cryptographic-algorithm (opens in a new tab) ↩
  60. NIST SP 800-131A Rev. 3 (Initial Public Draft), Transitioning the Use of Cryptographic Algorithms and Key Lengths, 21 October 2024, Section 11, hash-function approval table (captioned Table 12, printed p. 28; called Table 13 in the text). https://csrc.nist.gov/pubs/sp/800/131/a/r3/ipd (opens in a new tab) ↩
  61. John Kelsey, Shu-jen Chang and Ray Perlner, NIST SP 800-185, SHA-3 Derived Functions: cSHAKE, KMAC, TupleHash, and ParallelHash, December 2016. https://csrc.nist.gov/pubs/sp/800/185/final (opens in a new tab) ↩
  62. Richard Chirgwin, Git fscked by SHA-1 collision? Not so fast, says Linus Torvalds, The Register, 26 February 2017. https://www.theregister.com/2017/02/26/git_fscked_by_sha1_collision_not_so_fast_says_linus_torvalds/ (opens in a new tab) ↩1 ↩2