Skip to main content

CVE-2026-40164

HIGH
Use of Weak Hash (CWE-328)
2026-04-14 security-advisories@github.com
7.5
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify jq-based endpoint processing JSON
  2. Delivery
    Generate collision payload using known MurmurHash3 seed
  3. Exploit
    Submit crafted 100KB JSON object
  4. Execution
    Trigger O(n²) hash table degradation
  5. Persist
    Exhaust CPU resources
  6. Impact
    Deny service availability

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Irreversible hash functions
Exploitation Conditions

Remote attacker sends crafted JSON object (~100 KB) with precomputed key collisions to jq versions before commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784. No authentication or user interaction required. Affects jq instances processing untrusted JSON input in CI/CD pipelines, web services, and data processing scripts.

Impact

This represents a high-priority denial-of-service risk despite no confirmed active exploitation. The CVSS score of 7.5 reflects the critical factors: network attack vector (AV:N), low complexity (AC:L), no privileges required (PR:N), and high availability impact (A:H). The attack is highly practical because it requires only a small payload (~100KB JSON) that can be delivered through any jq input mechanism including HTTP APIs, file uploads, or CI/CD pipeline inputs. The CVSS complexity rating of 'Low' is accurate since exploitation requires only knowledge of the hardcoded seed and basic hash collision generation. While no public exploit identified at time of analysis, the advisory explicitly describes the attack methodology and the required payload size, making weaponization straightforward for adversaries. The vulnerability affects common production scenarios: web services parsing user-supplied JSON, CI/CD systems processing configuration files, and data pipelines. Unlike theoretical high-CVSS issues, this combines ease of exploitation with broad attack surface. Organizations using jq in any automated or user-facing context should prioritize patching. The main mitigating factor is that the impact is limited to availability (no confidentiality or integrity compromise), but for critical infrastructure or revenue-generating services, availability loss can be severe.

Exploit ScenarioDerived

An attacker identifies a web service that uses jq to process user-submitted JSON data, such as a REST API endpoint accepting configuration files or a CI/CD platform parsing build manifests. The attacker generates a 100KB JSON object where all keys are precomputed to collide in jq's hash table using the known seed value 0x432A9843. When this payload is submitted to the service, jq's hash table operations degrade to O(n²) complexity, consuming CPU resources and causing the service to hang or timeout. Concurrent submissions of this payload can exhaust all available CPU cores, resulting in complete service denial for legitimate users. The attack requires no authentication, leaves minimal forensic traces (appears as legitimate JSON), and can be automated for sustained impact.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 14, 2026

Algorithmic complexity attack in jq JSON processor allows remote denial of service via hash collision exploitation. An attacker can craft a ~100KB JSON object with precomputed colliding keys that degrade hash table performance from O(1) to O(n²), causing severe CPU exhaustion in unauthenticated network contexts including CI/CD pipelines and web services. The vulnerability stems from a hardcoded MurmurHash3 seed (0x432A9843) that enables offline collision calculation. Fixed in commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784. CVSS 7.5 (High severity, network-exploitable, no authentication required). No public exploit identified at time of analysis, but attack technique is well-documented and feasible.

RemediationAI

Upgrade to jq version containing commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784 or later. Users compiling from source should pull the latest main branch from https://github.com/jqlang/jq and rebuild. For package manager installations, monitor vendor repositories for updated packages incorporating this fix and apply updates immediately upon availability. As an interim mitigation where patching is delayed, implement input validation to restrict JSON object size (reject payloads exceeding reasonable application limits, typically under 10KB for most use cases) and enforce processing timeouts to prevent indefinite CPU consumption. Consider rate limiting or sandboxing jq processes in multi-tenant or public-facing environments. Review application logs for unusual CPU spikes or slow jq operations that may indicate exploitation attempts. Organizations using jq in CI/CD pipelines should audit which sources provide JSON input and apply least-privilege access controls. Full technical details and patch information available at https://github.com/jqlang/jq/security/advisories/GHSA-wwj8-gxm6-jc29.

Affected ProductsAI

The vulnerability affects jq JSON processor versions prior to commit 0c7d133c3c7e37c00b6d46b658a02244fdd3c784 in the jqlang/jq repository. All production deployments using jq for processing untrusted JSON input are vulnerable, including installations via package managers (apt, yum, brew, chocolatey), containerized deployments, embedded jq libraries in web applications, and CI/CD pipeline integrations. The issue is present in the core jq codebase regardless of platform (Linux, macOS, Windows) or installation method. Vendor advisory available at https://github.com/jqlang/jq/security/advisories/GHSA-wwj8-gxm6-jc29 provides detailed technical analysis and confirmation of affected versions.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability exploits a weak hash table implementation in jq's JSON object processing engine. jq uses MurmurHash3 for internal hash table operations with a hardcoded seed value (0x432A9843) that is visible in the source code. Hash functions with static seeds are vulnerable to precomputation attacks where adversaries can calculate colliding inputs offline. In this case, an attacker can craft JSON keys that all hash to the same bucket, forcing the hash table to degrade to a linked list with O(n) lookup time. When jq processes such an object, operations that normally complete in constant time become quadratic O(n²), as each lookup must traverse the entire collision chain and jq may perform multiple lookups per operation. This is classified as CWE-328 (Use of Weak Hash) because the predictable seed enables collision prediction. The attack requires only ~100KB of crafted JSON, making it far more practical than traditional memory-based DoS attacks. The fix randomizes the hash seed per process instance, preventing offline precomputation of collisions.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
SUSE HIGH
Red Hat 7.5 HIGH

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Apr 19, 2026 - 08:30 nvd
Patch available
CVE Published
Apr 14, 2026 - 00:16 nvd
HIGH 7.5

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-40164 is a high-severity denial-of-service vulnerability in jq JSON processor that allows unauthenticated attackers to crash services by submitting specially crafted JSON payloads of approximately 100KB. Organizations using jq in CI/CD pipelines, API gateways, or data processing workflows face operational disruption and potential service unavailability; immediate inventory and mitigation are required.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict input validation-reject JSON objects exceeding 50KB before jq processing; (2) Apply rate limiting to jq endpoints (max 10 requests/minute per IP); (3) Configure process-level resource limits (CPU cap at 50%, memory at 512MB) to prevent system-wide exhaustion; (4) Deploy jq in isolated containers with kill-on-timeout policies; (5) Monitor jq process CPU usage and alert on sustained >80% utilization; (6) If feasible, replace jq with alternative JSON processors pending patch availability. Track vendor security advisory for the referenced commit release.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Related Vulnerabilities in jq JSON Processor Vulnerabilities

View all 2

Vendor StatusVendor

SUSE

Severity: High
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Fixed
SLES15-SP6-CHOST-BYOS Fixed
SLES15-SP6-CHOST-BYOS-Aliyun Fixed
SLES15-SP6-CHOST-BYOS-Azure Fixed
SLES15-SP6-CHOST-BYOS-EC2 Fixed

References

Advisories & patches
ADVISORY https://ubuntu.com/security/notices/USN-8202-1 ADVISORY https://vuldb.com/vuln/357224 REF https://access.redhat.com/errata/RHSA-2026:16252 REF https://access.redhat.com/errata/RHSA-2026:16692 REF https://access.redhat.com/errata/RHSA-2026:16693 REF https://access.redhat.com/errata/RHSA-2026:18040 REF https://access.redhat.com/errata/RHSA-2026:18042 REF https://access.redhat.com/errata/RHSA-2026:18043 REF https://access.redhat.com/errata/RHSA-2026:18044 REF https://access.redhat.com/errata/RHSA-2026:18045 REF https://access.redhat.com/errata/RHSA-2026:18046 REF https://access.redhat.com/errata/RHSA-2026:18047 REF https://access.redhat.com/errata/RHSA-2026:18048 REF https://access.redhat.com/errata/RHSA-2026:19151 REF https://access.redhat.com/errata/RHSA-2026:19365 REF https://access.redhat.com/errata/RHSA-2026:23233 REF https://access.redhat.com/errata/RHSA-2026:23245 REF https://access.redhat.com/errata/RHSA-2026:25044 REF https://access.redhat.com/errata/RHSA-2026:25096 REF https://access.redhat.com/errata/RHSA-2026:25181 REF https://access.redhat.com/errata/RHSA-2026:26528 REF https://access.redhat.com/errata/RHSA-2026:26542 REF https://access.redhat.com/errata/RHSA-2026:28887 REF https://access.redhat.com/errata/RHSA-2026:30078 REF https://access.redhat.com/errata/RHSA-2026:30087 REF https://access.redhat.com/errata/RHSA-2026:30088 REF https://access.redhat.com/errata/RHSA-2026:30089 REF https://access.redhat.com/errata/RHSA-2026:34098 REF https://access.redhat.com/errata/RHSA-2026:8579 REF https://access.redhat.com/security/cve/CVE-2026-40164 REF https://bugzilla.redhat.com/show_bug.cgi?id=2458084 REF https://github.com/jqlang/jq/commit/0c7d133c3c7e37c00b6d46b658a02244fdd3c784 REF https://github.com/jqlang/jq/security/advisories/GHSA-wwj8-gxm6-jc29 REF https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40164.json

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy