Randomize hash seed to mitigate hash collision DoS attacks
Before adoption: this commit came in with the history the project adopted, so no landing records it.
The hash function used a fixed seed, allowing attackers to craft colliding keys and cause O(n^2) object parsing performance. Initialize the seed from a random source at process startup to prevent the attack. This fixes CVE-2026-40164.
authored by itchyny · committed by itchyny · parent 6374ae0 · Browse files · 2 files+34 added−2 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Trailers
- Co-authored-by: Asaf Meizner <asafmeizner@gmail.com>
Diff stats
2 files+34 added−2 removed
- other:+34 added−2 removed