Skip to main content
Hash Function Under Attack: RIPEMD-160 at 42 StepsCryptography Fundamentals
4 min readFor Bank Information Security Officers

Hash Function Under Attack: RIPEMD-160 at 42 Steps

The Challenge

Your cryptographic infrastructure doesn't fail all at once. It erodes, attack by attack, until the theoretical becomes practical.

In 2023, researchers demonstrated a practical collision attack against RIPEMD-160 at 40 steps. Despite this weakness, the hash function, standardized under ISO/IEC, remained in use. By late 2024, the attack extended to 42 steps with a theoretical time complexity of approximately $2^{47.4}$. This is feasible for a motivated adversary with moderate resources.

If you're using RIPEMD-160 for signature verification, certificate validation, or transaction integrity checks, you're now facing an advancing attack methodology that may outpace your migration plans.

The real question isn't if RIPEMD-160 will fail, but whether your security measures account for the gap between "theoretically vulnerable" and "actively exploited."

The Environment and Constraints

RIPEMD-160 uses a Merkle-Damgård structure with a double-branch compression function. This architecture was appealing in the early 2000s, but it also created specific attack surfaces that researchers have exploited.

The 2023 attack constructed a sparse local collision in round 2 of the left branch. Researchers had to introduce differences into multiple message words, limiting the number of steps they could attack.

Your environment likely mirrors this: legacy systems chose RIPEMD-160 for reasons like performance, regulatory acceptance, and integration simplicity. You can't just switch to SHA-256 without affecting multiple components. You probably have:

  • Transaction signing processes embedding the hash function deeply
  • Third-party integrations expecting specific hash outputs
  • Compliance documentation referencing the ISO/IEC standard
  • Performance requirements favoring RIPEMD-160's speed

The constraint isn't just technical; it's operational. You need continuity during migration.

The Approach Taken

The research team shifted from the sparse local collision strategy. They used a single continuous differential characteristic spanning rounds 1 to 2 for each branch. This change allowed them to inject a difference into one message word instead of many.

This shift reduced the attack's complexity. Fewer variables meant more controllable conditions and a higher probability of successful propagation through the rounds.

The breakthrough came from tooling: they used an automatic search tool based on PRS, a high-performance parallel SAT-solver. This tool imposed stricter control over conditions, differences, and propagation probability, finding differential characteristics that manual methods missed.

Think of it as moving from artisanal cryptanalysis to industrial-scale vulnerability discovery. The SAT-solver evaluated thousands of potential differential paths, filtering for those that maximized attack efficiency.

Results and Metrics

The team identified three colliding message pairs for 42-step RIPEMD-160. The theoretical time complexity of approximately $2^{47.4}$ makes this practical for a determined attacker.

For comparison: $2^{47.4}$ operations is expensive but achievable. Cloud compute resources make this feasible for state-level actors, organized crime with funding, or anyone renting GPU clusters for a few weeks.

The attack extends the previous best result by 2 steps. While this might sound minor, in cryptanalysis, each additional step weakens the algorithm's security margin. Full RIPEMD-160 uses 80 steps; this attack reaches 42. You're now past the halfway point.

What They Would Do Differently

The research shows what's possible with current tools and methods. The next iteration will likely push further by:

  • Applying the same SAT-solver approach to later rounds
  • Exploring if the continuous differential characteristic structure can extend beyond rounds 1-2
  • Testing if parallel processing can reduce the $2^{47.4}$ complexity further

But here's the operational insight: by the time researchers publish an improved attack, your migration window has already closed. This pattern is consistent across cryptographic standards. The gap between "academic attack" and "field exploit" shrinks with each iteration.

Takeaways for Your Team

Inventory your RIPEMD-160 usage now. Don't wait for the next attack iteration. Map every system component relying on this hash function: signature verification, HMAC implementations, certificate chains, transaction integrity checks.

Assess your migration complexity. For each RIPEMD-160 instance, document:

  • Whether it's in a hot path (transaction processing) or cold path (audit logs)
  • What systems expect that specific hash output
  • Whether you can run dual-hash validation during migration
  • What your rollback plan looks like if the migration breaks integration points

Prioritize based on exposure, not convenience. Your riskiest RIPEMD-160 implementations aren't necessarily the hardest to migrate. They're the ones where a collision attack could let an adversary forge a valid signature, bypass integrity checks, or impersonate a trusted party.

Don't assume compliance documentation protects you. ISO/IEC standardization doesn't mean the algorithm is secure against current attack methodologies. Your audit framework should require periodic cryptographic review, not just "uses a standards-compliant algorithm."

Plan for cryptographic agility. The next hash function you migrate to will also eventually weaken. Build your systems so you can swap cryptographic primitives without rewriting core logic. That means abstraction layers, versioned message formats, and migration tooling that you test before you need it.

The researchers who extended this attack to 42 steps didn't break RIPEMD-160 overnight. They built on previous work, applied better tools, and found a more efficient path through the algorithm's structure. Your adversaries are doing the same thing. The question is whether your migration timeline accounts for that reality.

You Might Also Like