CVE-2026-40164: Hash-collision denial of service in jq
CVE-2026-40164 is an algorithmic-complexity denial-of-service vulnerability in jq's JSON object hash tables before the upstream fix. jq uses MurmurHash3 with a hardcoded, publicly known seed, allowing attackers to precompute colliding object keys offline. Processing a crafted JSON object of approximately 100 KB whose keys map to the same bucket degrades hash-table lookups from expected O(1) to O(n), producing O(n²) object-processing behavior and significant CPU exhaustion. Exploitation requires malicious JSON input rather than an attacker-controlled jq expression.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A small malicious JSON object can consume disproportionate CPU time and substantially delay or disrupt jq processing. Applications that pass untrusted JSON to vulnerable jq installations, including web services, CI/CD pipelines, and data-processing scripts, can suffer stalled jobs, reduced throughput, and denial of service. This vulnerability does not establish memory disclosure, data modification, or code execution.
Mitigation
If you can’t patch tonight, do this now.
No vulnerability-specific vendor workaround is identified. Pending patching, prevent untrusted JSON from reaching vulnerable jq instances where feasible. As compensating controls, enforce processing deadlines and CPU quotas, isolate jq workers from critical services, and limit concurrent untrusted jobs. Input-size limits alone are insufficient because a triggering object can be approximately 100 KB.
Remediation
Patch, then assume compromise.
Update jq to a build incorporating upstream commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784 or an equivalent vendor backport. Fixed packages include jq 1.6-6.el8_8.4 for the applicable RHEL 8.8 support streams and jq 1.5-12.el8_4.5 for the applicable RHEL 8.4 support streams. For other distributions, install the applicable vendor security update. Update affected container images and rebuild dependent images so they include the patched jq package.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-40164 exploited in the wild?
- As of Nov 26, 2026, Mallory has no reports of CVE-2026-40164 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-40164?
- Yes. As of Nov 26, 2026, Mallory has reports of a public exploit for CVE-2026-40164.
- Is there a patch for CVE-2026-40164?
- Update jq to a build incorporating upstream commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784 or an equivalent vendor backport. Fixed packages include jq 1.6-6.el8_8.4 for the applicable RHEL 8.8 support streams and jq 1.5-12.el8_4.5 for the applicable RHEL 8.4 support streams.
- How severe is CVE-2026-40164?
- CVE-2026-40164 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 0.38% (24th percentile) as of Nov 26, 2026.
Recent activity
75 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.