Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 93%

CVE-2026-40164: CWE-328: Use of Weak Hash in jqlang jq

0
High
VulnerabilityCVE-2026-40164cvecve-2026-40164cwe-328cwe-407
Published: Mon Apr 13 2026 (04/13/2026, 23:40:12 UTC)
Source: CVE Database V5
Vendor/Project: jqlang
Product: jq

Description

jq versions prior to commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784 used MurmurHash3 with a hardcoded, publicly known seed for JSON object hashing. This allowed attackers to craft JSON objects that cause all keys to collide in the same hash bucket, degrading performance from O(1) to O(n) and turning jq operations into O(n²), resulting in significant CPU exhaustion. This vulnerability affects jq use in CI/CD pipelines, web services, and data processing scripts. The issue has been patched in the specified commit.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/21/2026, 06:09:50 UTC

Technical Analysis

The jq JSON processor used a weak hash implementation (MurmurHash3 with a fixed seed) for JSON object hash tables, enabling attackers to precompute key collisions offline. By submitting a crafted JSON object (~100 KB) with colliding keys, attackers can cause hash table lookups to degrade from constant time to linear time, causing jq expressions to run in quadratic time and exhaust CPU resources. This vulnerability impacts jq versions before commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784 and has been fixed in that commit.

Potential Impact

Exploitation leads to significant CPU exhaustion due to degraded hash table performance, impacting availability and performance of jq in automated pipelines, web services, and data processing. There is no confidentiality or integrity impact reported. The CVSS score is 7.5 (high severity) reflecting network attack vector, low complexity, no privileges required, no user interaction, and impact on availability only.

Mitigation Recommendations

A fix is available and has been applied in commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784. Users should upgrade jq to this commit or later to remediate the vulnerability. No other mitigation is indicated or required.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-09T19:31:56.014Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69dd83f182d89c981f8ff25a

Added to database: 4/14/2026, 12:01:53 AM

Last enriched: 4/21/2026, 6:09:50 AM

Last updated: 5/29/2026, 12:24:47 PM

Views: 98

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses