Hash function
MD5
Collisions in seconds; used to forge a CA certificate (2008) and by the Flame malware (2012).
Deployment assessment
Do not select for new protection
Do not choose these hashes for new collision-sensitive protection.
- Intended use
- Legacy digests, especially collision-sensitive signatures.
- Conditions
- A collision break does not establish a preimage break or automatically break HMAC. Migrate according to the actual construction and verification policy.
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 mathematical break. Wang's 2004 collision attack made MD5 collisions cheap, chosen-prefix collisions followed in 2007, and attackers used them against real certificate infrastructure: the 2008 rogue CA demonstration and Flame's forged Microsoft code-signing certificate, the first known nation-state use of new cryptanalysis in the wild.
- Best known attack
- Identical-prefix collision about 2^16; chosen-prefix about 2^39
- Quantum
- Not applicable. Already broken classically.
- Names and historical labels
- MD-5
Standards and construction references
Evidence for the verdict
- Math(the math)Wang, Feng, Lai and Yu publish real MD5 collisionsXiaoyun Wang's team presented explicit collisions for full MD5 (plus MD4, HAVAL-128 and RIPEMD) at the CRYPTO 2004 rump session. Finding the first 512-bit block took about an hour on an IBM P690; the second block then took 15 seconds to 5 minutes.
- Protocol(not the math)Rogue CA certificate forged via MD5 chosen-prefix collision against RapidSSLAt the 25th Chaos Communication Congress, Sotirov, Stevens, Appelbaum, Lenstra, Molnar, Osvik and de Weger revealed a rogue intermediate CA certificate whose MD5-based signature had been copied from an ordinary website certificate issued by RapidSSL. Anyone holding it could have minted browser-trusted certificates for any site.
- MilestoneRFC 6151: MD5 no longer acceptable where collision resistance is requiredThe IETF updated MD5's security considerations: MD5 must not be used for digital signatures or anything needing collision resistance. HMAC-MD5 was judged not urgently broken in existing protocols, but new designs should not include it.
- Protocol(not the math)Flame malware forges a Microsoft code-signing certificate with a secret MD5 collision attackThe Flame espionage malware, discovered in May 2012, spread by impersonating Windows Update with a validly signed patch. Microsoft revoked three intermediate CAs on June 3, 2012; Marc Stevens then showed the forged certificate came from a previously unknown variant of an MD5 chosen-prefix collision attack, the first known use of novel hash cryptanalysis in the wild.
Case file
Every event on file that names MD5.
11 case files, newest first.
2020s
2010s
- MathTheoreticalLeurent and Peyrin: SHA-1 chosen-prefix collisions estimated at 2^66.9-2^69.4
SHA-1 / MD5
2000s
- ProtocolPracticalRogue CA certificate forged via MD5 chosen-prefix collision against RapidSSL
MD5 / RSA-2048