Logo
vulnerabilityCVE-2026-40164
Name
CVE-2026-40164
Source
NVD ( link)Debian ( link)
Description
jq is a command-line JSON processor. Before commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784, jq used MurmurHash3 with a hardcoded, publicly visible seed (0x432A9843) for all JSON object hash table operations, which allowed an attacker to precompute key collisions offline. By supplying a crafted JSON object (~100 KB) where all keys hashed to the same bucket, hash table lookups degraded from O(1) to O(n), turning any jq expression into an O(n²) operation and causing significant CPU exhaustion. This affected common jq use cases such as CI/CD pipelines, web services, and data processing scripts, and was far more practical to exploit than existing heap overflow issues since it required only a small payload. This issue has been patched in commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784.
Published Date
Updated Date
Workaround
-
Advisories

Analysis#


Affected Component
Analysis
jq
Patched

Vulnerability Ratings#


7.5
CVSSv31
NaN
other

Others affected components#


Name
Project
Project Version
Version
Status
buildroot
2025.02.x
1.7.1
Not Affected
buildroot
master
1.8.1
Not Affected
openwrt
master
1.8.1-r2
Not Affected
openwrt
openwrt-25.12
1.8.1-r2
Not Affected
yocto
kirkstone
1.6+gitX
Not Affected
yocto
master
1.8.1
Not Affected

Resolved with patches#


jq (yocto:scarthgap)

#
Title
Author
Resolve
1
Randomize hash seed to mitigate hash collision DoS attacks
itchyny <itchyny@cybozu.co.jp>
CVE-2026-40164