cve.bz

CVE-2026-40164 jqlang jq: Use of Weak Hash

7.5 highEPSS 0.4%

High (7.5) in jqlang jq. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-04-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-328 Use of Weak Hash
CWE-407 Inefficient Algorithmic Complexity
CWE-341 Predictable from Observable State
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40164 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40164?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40164?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40164 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-40164

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-40164](https://cve.bz/cve/badge/CVE-2026-40164.svg)](https://cve.bz/cve/CVE-2026-40164)

HTML:

<a href="https://cve.bz/cve/CVE-2026-40164"><img src="https://cve.bz/cve/badge/CVE-2026-40164.svg" alt="CVE-2026-40164"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
jqlang jq< 0c7d133c3c7e37c00b6d46b658a02244fdd3c784

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12jq1.6-2.1+deb12u2DEBIAN-CVE-2026-40164
Debian13jq1.7.1-6+deb13u2DEBIAN-CVE-2026-40164
Debian14jq1.8.1-5DEBIAN-CVE-2026-40164
Ubuntu22.04:LTSjq1.6-2.1ubuntu3.2UBUNTU-CVE-2026-40164 USN-8202-1
Ubuntu24.04:LTSjq1.7.1-3ubuntu0.24.04.2UBUNTU-CVE-2026-40164 USN-8202-1
Ubuntu25.10jq1.8.1-3ubuntu1.1UBUNTU-CVE-2026-40164 USN-8202-1
Ubuntu26.04:LTSjq1.8.1-4ubuntu2UBUNTU-CVE-2026-40164
UbuntuPro:14.04:LTSjqno fix listedUBUNTU-CVE-2026-40164 USN-8202-1
UbuntuPro:16.04:LTSjq1.5+dfsg-1ubuntu0.1+esm4UBUNTU-CVE-2026-40164 USN-8202-1
UbuntuPro:18.04:LTSjq1.5+dfsg-2ubuntu0.1~esm3UBUNTU-CVE-2026-40164 USN-8202-1
UbuntuPro:20.04:LTSjq1.6-1ubuntu0.20.04.1+esm2UBUNTU-CVE-2026-40164 USN-8202-1
Red Hatenterprise_linux:8::appstreamjq, jq-debuginfo, jq-debugsource0:1.6-12.el8_10RHSA-2026:16252
Red Hatenterprise_linux:8::crbjq-devel, jq-debuginfo, jq-debugsource0:1.6-12.el8_10RHSA-2026:16252
Red Hatenterprise_linux:9::baseosjq, jq-debuginfo, jq-debugsource0:1.6-19.el9_7.0.2RHSA-2026:16693
Red Hatenterprise_linux:9::baseosjq, jq-debuginfo, jq-debugsource0:1.6-19.el9_8.2RHSA-2026:19365
Red Hatenterprise_linux:9::baseosjq, jq-debuginfo, jq-debugsource0:1.6-21.el9_9RHSA-2026:98496
Red Hatenterprise_linux:9::crbjq-devel, jq-debuginfo, jq-debugsource0:1.6-19.el9_7.0.2RHSA-2026:16693
Red Hatenterprise_linux:9::crbjq-devel, jq-debuginfo, jq-debugsource0:1.6-19.el9_8.2RHSA-2026:19365
Red Hatenterprise_linux:9::crbjq-devel, jq-debuginfo, jq-debugsource0:1.6-21.el9_9RHSA-2026:98496
Red Hatenterprise_linux:10.1jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Red Hatenterprise_linux:10.2jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-11.el10_2.2RHSA-2026:19151
Red Hatenterprise_linux:10.3jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-13.el10_3RHSA-2026:98603
Red Hatenterprise_linux_eus:10.0jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-8.el10_0.3RHSA-2026:18040
10 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 11 morejq1.7.1-150000.3.25.1SUSE-SU-2026:4275-1
SUSELinux Enterprise Micro 5.3, Linux Enterprise Micro 5.4, Linux Enterprise Micro 5.5 and 1 morejq1.6-150000.3.20.1SUSE-SU-2026:2983-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0jq1.7.1-160000.3.1SUSE-SU-2026:22566-1
SUSELinux Micro 6.0jq1.6-6.1SUSE-SU-2026:22705-1
SUSELinux Micro 6.0jq1.7.1-1.1SUSE-SU-2026:23873-1
SUSELinux Micro 6.1jq1.7.1-slfo.1.1_3.1SUSE-SU-2026:22664-1
SUSELinux Micro 6.2jq1.7.1-160000.3.1SUSE-SU-2026:22545-1
openSUSELeap 16.0jq1.7.1-160000.3.1openSUSE-SU-2026:21248-1
openSUSETumbleweedjq1.8.1-3.1openSUSE-SU-2026:10850-1
AlmaLinux8jq, jq-devel1.6-12.el8_10ALSA-2026:16252
AlmaLinux9jq, jq-devel1.6-19.el9_7.0.2ALSA-2026:16693
AlmaLinux9jq, jq-devel1.6-19.el9_8.2ALSA-2026:19365
AlmaLinux10jq, jq-devel1.7.1-11.el10_1.0.2ALSA-2026:16692
AlmaLinux10jq, jq-devel1.7.1-11.el10_2.2ALSA-2026:19151
Rocky Linux8jq0:1.6-12.el8_10RLSA-2026:16252
Rocky Linux9jq0:1.6-19.el9_7.0.2RLSA-2026:16693
Rocky Linux9jq0:1.6-19.el9_8.2RLSA-2026:19365
Rocky Linux9jq, jq-devel, jq-debuginfo and 1 more0:1.6-21.el9_9RLSA-2026:98496
Rocky Linux10jq0:1.7.1-11.el10_1.0.2RLSA-2026:16692
Rocky Linux10jq0:1.7.1-11.el10_2.2RLSA-2026:19151
Rocky Linux10jq, jq-devel, jq-debuginfo and 1 more0:1.7.1-13.el10_3RLSA-2026:98603
Alpinev3.21, v3.22, v3.23 and 1 morejq1.8.2-r0ALPINE-CVE-2026-40164
Azure Linux3jq1.7.1-5AZL-82934
Alpaquita23, streamjq1.8.1-r1BELL-CVE-2026-40164
Alpaquita25jq1.8.1-r2BELL-CVE-2026-40164

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10jq-0:1.7.1-11.el10_1.0.2Fixed 2026-05-13RHSA-2026:16692
Red Hat Enterprise Linux 10jq-0:1.7.1-11.el10_2.2Fixed 2026-05-19RHSA-2026:19151
Red Hat Enterprise Linux 10.0 Extended Update Supportjq-0:1.7.1-8.el10_0.3Fixed 2026-05-18RHSA-2026:18040
Red Hat Enterprise Linux 8jq-0:1.6-12.el8_10Fixed 2026-05-12RHSA-2026:16252
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportjq-0:1.5-12.el8_4.5Fixed 2026-05-18RHSA-2026:18048
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onjq-0:1.5-12.el8_4.5Fixed 2026-05-18RHSA-2026:18048
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportjq-0:1.6-3.el8_6.2Fixed 2026-05-18RHSA-2026:18047
Red Hat Enterprise Linux 8.6 Telecommunications Update Servicejq-0:1.6-3.el8_6.2Fixed 2026-05-18RHSA-2026:18047
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutionsjq-0:1.6-3.el8_6.2Fixed 2026-05-18RHSA-2026:18047
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicejq-0:1.6-6.el8_8.4Fixed 2026-05-18RHSA-2026:18046
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsjq-0:1.6-6.el8_8.4Fixed 2026-05-18RHSA-2026:18046
Red Hat Enterprise Linux 9jq-0:1.6-19.el9_7.0.2Fixed 2026-05-13RHSA-2026:16693
Red Hat Enterprise Linux 9jq-0:1.6-19.el9_8.2Fixed 2026-05-19RHSA-2026:19365
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutionsjq-0:1.6-12.el9_0.3Fixed 2026-05-18RHSA-2026:18045
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsjq-0:1.6-15.el9_2.3Fixed 2026-05-18RHSA-2026:18044
Red Hat Enterprise Linux 9.4 Extended Update Supportjq-0:1.6-16.el9_4.2Fixed 2026-05-18RHSA-2026:18043
Red Hat Enterprise Linux 9.6 Extended Update Supportjq-0:1.6-17.el9_6.4Fixed 2026-05-18RHSA-2026:18042
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202606140301-0Fixed 2026-06-25RHSA-2026:26528
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202606160406-0Fixed 2026-06-25RHSA-2026:26542
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202606231112-0Fixed 2026-07-01RHSA-2026:28887
12 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40164.

Attack patterns (CAPEC)

  • CAPEC-68 Subvert Code-signing Facilities Likelihood: Low · Severity: Very High
  • CAPEC-461 Web Services API Signature Forgery Leveraging Hash Function Extension Weakness Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON