We give a collision for 38-step SHA-256 from the standard initial value, to our knowledge the first. The attack is a two-block differential attack whose message differences are in the same words as in the 38-step semi-free-start collision of Mendel, Nad and Schläffer. Most state words of the second block are fixed in advance. For each first block, a table indexed by the first word of the chaining value supplies the first state words, and one lookup on a 32-bit key matches them with the last free state words so that the characteristic holds through step 17; the remaining steps hold by chance. The expected time is $2^{54.8}$ calls of the 38-step compression function, with $2^{57.5}$ table accesses that this count does not charge. The tables take 7.4 GB, and finding the fixed state words took 52,300 vCPU-hours. A search of 53 GPU-hours found the collision after about 10% of the expected work.
As a user of SHA-256, I’d really like to know the practical implications of this. The language is really only meant for subject matter experts. It doesn’t read like the collisions happen with arbitrary input, but I didn’t really understand most of this paper.
The expected time is 254.8 calls of the 38-step compression function, with 257.5 table accesses that this count does not charge. The tables take 7.4 GB, and finding the fixed state words took 52,300 vCPU-hours. A search of 53 GPU-hours found the collision after about 10% of the expected work.
The attack requires some serious hardware, or at least some funding to leverage cloud systems.
Predominantly AI-generated work. This work was developed through iterative research and writing by Anthropic Claude agents, mainly Claude Opus 5.5, under the author’s direction.
This is mainly a thing of interest for other cryptographers, it’s far from a full break. Adding just one more round breaks the analysis, and full SHA-256 uses 64 rounds.
It also requires the two messages to share a common block-long prefix but only extends to two blocks, so it only finds two messages between 32 and 64 bytes long, with a shared 32-byte prefix, that hash to the same value. Adding even just one more byte would seem to break the attack.
It’s a sign of progress, but it doesn’t suggest we need to throw out SHA-256 anytime soon. In fact, given how slowly collision attacks are progressing even with AI assistance, I think this is a sign that SHA-256 should be decently secure for quite a while yet.
As a user of SHA-256, I’d really like to know the practical implications of this. The language is really only meant for subject matter experts. It doesn’t read like the collisions happen with arbitrary input, but I didn’t really understand most of this paper.
The attack requires some serious hardware, or at least some funding to leverage cloud systems.
sigh
This is mainly a thing of interest for other cryptographers, it’s far from a full break. Adding just one more round breaks the analysis, and full SHA-256 uses 64 rounds.
It also requires the two messages to share a common block-long prefix but only extends to two blocks, so it only finds two messages between 32 and 64 bytes long, with a shared 32-byte prefix, that hash to the same value. Adding even just one more byte would seem to break the attack.
It’s a sign of progress, but it doesn’t suggest we need to throw out SHA-256 anytime soon. In fact, given how slowly collision attacks are progressing even with AI assistance, I think this is a sign that SHA-256 should be decently secure for quite a while yet.