{
  "id": "md5",
  "name": "MD5",
  "family_id": "md5",
  "description": "128-bit Merkle-Damgård hash function specified in RFC 1321 with 64 steps across four rounds. Collision resistance is completely broken in practice (identical-prefix and chosen-prefix collisions); full-round preimage resistance is broken theoretically below 2^128.",
  "status": "broken",
  "parameters": {
    "digest_bits": 128,
    "block_bits": 512,
    "word_bits": 32,
    "rounds": 64,
    "construction": "Merkle-Damgård (4 rounds of 16 steps)",
    "standard": "IETF RFC 1321"
  },
  "references": [
    {
      "title": "RFC 1321: The MD5 Message-Digest Algorithm",
      "url": "https://www.rfc-editor.org/rfc/rfc1321",
      "authors": [
        "Ronald L. Rivest"
      ],
      "quote_location": "Section 3 (MD5 Algorithm Description)"
    }
  ],
  "kats": [],
  "attacks": [
    {
      "id": "md5-wang-yu-2005-collision",
      "target_id": "md5",
      "title": "Full MD5 identical-prefix collision attack",
      "goal": "collision",
      "attack_family": "differential",
      "setting": "Identical-prefix collision on full 64-step MD5 using modular differential paths",
      "claim_kind": "record",
      "track": "mathematical",
      "date": "2005-05-22",
      "authors": [
        "Xiaoyun Wang",
        "Hongbo Yu"
      ],
      "references": [
        {
          "title": "How to Break MD5 and Other Hash Functions",
          "url": "https://doi.org/10.1007/11426639_2",
          "authors": [
            "Xiaoyun Wang",
            "Hongbo Yu"
          ],
          "doi": "10.1007/11426639_2",
          "quote_location": "EUROCRYPT 2005, LNCS 3494, pp. 19-35 (complexity ~2^39)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "hash_attack",
        "rounds_attacked": 64,
        "total_rounds": 64,
        "log2_time": 39,
        "time_unit": "MD5 compression function evaluations",
        "attack_goal": "collision"
      },
      "notes": "Landmark practical collision breaking MD5 in minutes to hours on 2005 commodity hardware."
    },
    {
      "id": "md5-sasaki-aoki-2009-preimage",
      "target_id": "md5",
      "title": "Meet-in-the-middle preimage attack on full MD5",
      "goal": "preimage",
      "attack_family": "meet_in_the_middle",
      "setting": "Full 64-step MD5 preimage attack using splice-and-cut and initial structures",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2009-04-26",
      "authors": [
        "Yu Sasaki",
        "Kazumaro Aoki"
      ],
      "references": [
        {
          "title": "Finding Preimages in Full MD5 Faster Than Exhaustive Search",
          "url": "https://doi.org/10.1007/978-3-642-01001-9_8",
          "authors": [
            "Yu Sasaki",
            "Kazumaro Aoki"
          ],
          "doi": "10.1007/978-3-642-01001-9_8",
          "quote_location": "EUROCRYPT 2009, LNCS 5479, pp. 134-152 (preimage 2^123.4, pseudo-preimage 2^116.9)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "hash_attack",
        "rounds_attacked": 64,
        "total_rounds": 64,
        "log2_time": 123.4,
        "log2_memory": 45,
        "time_unit": "MD5 compression function evaluations",
        "attack_goal": "preimage"
      },
      "notes": "Same paper achieves pseudo-preimage complexity 2^116.9 with memory 2^45 x 11 words; full preimage remains computationally infeasible."
    },
    {
      "id": "md5-stevens-etal-2009-chosen-prefix",
      "target_id": "md5",
      "title": "Short chosen-prefix collision and rogue CA certificate for MD5",
      "goal": "collision",
      "attack_family": "differential",
      "setting": "Chosen-prefix collision on full 64-step MD5 with arbitrary distinct prefixes",
      "claim_kind": "record",
      "track": "mathematical",
      "date": "2009-08-16",
      "authors": [
        "Marc Stevens",
        "Alexander Sotirov",
        "Jacob Appelbaum",
        "Arjen Lenstra",
        "David Molnar",
        "Dag Arne Osvik",
        "Benne de Weger"
      ],
      "references": [
        {
          "title": "Short Chosen-Prefix Collisions for MD5 and the Creation of a Rogue CA Certificate",
          "url": "https://eprint.iacr.org/2009/111",
          "authors": [
            "Marc Stevens",
            "Alexander Sotirov",
            "Jacob Appelbaum",
            "Arjen Lenstra",
            "David Molnar",
            "Dag Arne Osvik",
            "Benne de Weger"
          ],
          "eprint_id": "2009/111",
          "doi": "10.1007/978-3-642-03356-8_4",
          "quote_location": "CRYPTO 2009 / ePrint 2009/111 (~2^49 MD5 compressions)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "hash_attack",
        "rounds_attacked": 64,
        "total_rounds": 64,
        "log2_time": 49,
        "time_unit": "MD5 compression function evaluations",
        "attack_goal": "collision"
      },
      "notes": "Demonstrated practically by generating a rogue intermediate X.509 CA certificate trusted by browsers."
    },
    {
      "id": "md5-fillinger-stevens-2015-flame",
      "target_id": "md5",
      "title": "Reverse-engineered Flame malware MD5 chosen-prefix collision",
      "goal": "collision",
      "attack_family": "differential",
      "setting": "In-the-wild chosen-prefix collision on full 64-step MD5 used to forge a Microsoft code-signing certificate",
      "claim_kind": "estimate",
      "track": "mathematical",
      "date": "2015-11-29",
      "authors": [
        "Max Fillinger",
        "Marc Stevens"
      ],
      "references": [
        {
          "title": "Reverse-Engineering of the Cryptanalytic Attack Used in the Flame Super-Malware",
          "url": "https://doi.org/10.1007/978-3-662-48800-3_24",
          "authors": [
            "Max Fillinger",
            "Marc Stevens"
          ],
          "doi": "10.1007/978-3-662-48800-3_24",
          "quote_location": "ASIACRYPT 2015 (closest-fit complexity 2^49.3, proven lower bound 2^46.6)"
        }
      ],
      "supersedes": [],
      "disputed_by": [],
      "evidence": {
        "source_status": "peer_reviewed",
        "citation_verified": false,
        "artifact_verified": {
          "verified": false
        },
        "peer_reproduced": {
          "reproduced": false
        },
        "formal_verified": {
          "verified": false
        }
      },
      "metrics": {
        "type": "hash_attack",
        "rounds_attacked": 64,
        "total_rounds": 64,
        "log2_time": 49.3,
        "time_unit": "MD5 compression function evaluations",
        "attack_goal": "collision"
      },
      "notes": "Independent chosen-prefix variant discovered in the 2012 Flame malware; proven lower bound is 2^46.6 compressions."
    }
  ],
  "frontiers": [
    {
      "id": "md5-preimage-practicality-gap",
      "target_id": "md5",
      "title": "Practical preimage resistance gap on full 64-step MD5",
      "description": "Although identical-prefix and chosen-prefix collision resistance of MD5 are completely broken in practice, the best published full-round preimage attack (2^123.4 time, 2^45 memory) remains close to the 2^128 brute-force bound and computationally infeasible.",
      "references": [
        {
          "title": "Finding Preimages in Full MD5 Faster Than Exhaustive Search",
          "url": "https://doi.org/10.1007/978-3-642-01001-9_8",
          "authors": [
            "Yu Sasaki",
            "Kazumaro Aoki"
          ],
          "doi": "10.1007/978-3-642-01001-9_8"
        }
      ]
    }
  ],
  "dead_ends": []
}
