CVE-2026-40164: jqlang jq · Use of Weak Hash
Affects jqlang jqSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 29 Oct 2026, 19:04 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 13 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| jqlangjq | Affected
| Fixed in– |
AI-suggested
A patch fixing this vulnerability is available in jq as of commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784. Users should update jq to a version including this commit. Red Hat has released security advisories and updates addressing this issue for their affected products, including OpenShift Container Platform 4.12. Users of Red Hat products should apply these updates promptly. Patch status is confirmed by vendor advisories. No additional mitigations are specified.
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.
References
- github.com/jqlang/jq/security/advisories/GHSA-wwj8-gxm6-jc29 (opens in a new tab)
- github.com/jqlang/jq/commit/0c7d133c3c7e37c00b6d46b658a02244fdd3c784 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-40164 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2458084 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40164.json (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:26528 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:26542 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:28887 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:23233 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:25044 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:34098 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:25181 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:23245 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:16252 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:18048 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:18047 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:18046 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:18045 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:18044 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:18040 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:16692 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:19151 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:18043 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:18042 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:16693 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:19365 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:25096 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:30078 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:30089 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:30088 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:30087 (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:8579 (opens in a new tab)