r/programming • u/CircumspectCapybara • 3d ago
A collision has been found for 38-step (a reduced round variant of) SHA-256
https://eprint.iacr.org/2026/2913
839
Upvotes
r/programming • u/CircumspectCapybara • 3d ago
566
u/segv 3d ago edited 3d ago
tl;dr because this is reddit and folks barely click the links:
--
--
--
--
My take is - cool, but the sky is not falling just yet. This doesn't sound like something that could be used for, for example, forging a TLS certificate.
Also a reminder to state the obvious - hash function maps from infinite space (any input of any length) to a very finite space. It's not a question if there will be collisions, but how much work is needed to create one.
30
u/bwainfweeze 3d ago
I am still after all of these years trying to wrap my head around how flaws in SHA-512 make it less secure than SHA-384.
215
u/idimetrix 3d ago
31 steps was the best anyone had in 2024. 38 now, full SHA-256 is 64. Not panicking yet but that's a big jump.
54
u/Techrocket9 3d ago
They called me mad for wanting to start the migration to SHA3 in 2019.
7
u/Omer-Goldzweig 14h ago
Hey! I’m the author of the paper. Really cool to see this being discussed here! 😄
As several people have already pointed out, this result has no immediate security implications for full SHA-256.
In my opinion, a particularly interesting aspect of this research is how much of it was carried out by AI agents. I wrote a more accessible blog post about the research, how the collision was found, and the role AI played in the process: https://medium.com/@omer_72679/finding-the-first-38-step-sha-256-collision-with-ai-agents-5abff3b360d9
Happy to answer any questions!
9
u/Takeoded 3d ago
Best anyone has on BLAKE3 is 2 rounds.
4
u/Motor-Concentrate788 3d ago
Nothing to be worried about, still a long way off from the full 64 rounds. And even if at some point it gets close, we still have time to transition to SHA3 before SHA2 breaks.
6
u/reddah 3d ago
Quick question: Why do we even use hashes for certificates?
I mean a certificate is pretty small (a few ks), so not sure why it would need to be reduced further.
Hashes were invented for other uses:
When using them for signing small stuff, collisions will always occur. If a bad party needs SOME signature, the birthday paradox all but guarantees they will find one. See Stuxnet.
1
u/Round_Ad_5832 3d ago
what about SHX?
1
u/bascule 1d ago
FWIW: we’ve broken 7 rounds of ChaCha but that doesn’t mean ChaCha8 is broken