Home / jqlang / jq / CVE-2026-40164
CVE-2026-40164: is it exploited, and which versions of jqlang jq are affected and fixed?
CVE-2026-40164 is an use of Weak Hash vulnerability in jqlang jq. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: jq < 0c7d133c3c7e37c00b6d46b658a02244fdd3c784 (CVE record by GitHub_M). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:12 UTC.
What is CVE-2026-40164?
jq: Algorithmic complexity DoS via hardcoded MurmurHash3 seed
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.
From the CVE record by GitHub_M, last updated September 1, 2026, 12:04 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| jqlang | jq | < 0c7d133c3c7e37c00b6d46b658a02244fdd3c784 |
As the CVE record by GitHub_M states it, last updated September 1, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
How severe is CVE-2026-40164?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | redhat-SADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-40164 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, April 14, 2026)
- EPSS
- 0.39% probability of exploitation activity in the next 30 days, percentile 35.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/jqlang/jq/security/advisories/GHSA-wwj8-gxm6-jc29 x_refsource_CONFIRM
- https://github.com/jqlang/jq/commit/0c7d133c3c7e37c00b6d46b658a02244fdd3c784 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-40164 vdb-entry, x_refsource_REDHAT
- RHBZ#2458084 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-40164.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:26528 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:26542 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:28887 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:23233 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:25044 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:34098 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:25181 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:23245 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16252 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18048 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18047 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18046 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18045 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18044 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18040 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16692 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19151 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18043 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18042 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:16693 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:19365 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:25096 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:30078 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:30089 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:30088 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:30087 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:8579 vendor-advisory, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- April 9, 2026
- Published
- April 13, 2026, 23:40 UTC
- CVE record updated
- September 1, 2026, 12:04 UTC by GitHub_M
- NVD
- Deferred, last modified October 26, 2026, 22:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:12 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect jq?
- Jun 25, 2026CVE-2026-47770 jqlang jq: uncontrolled recursion
- Jun 25, 2026CVE-2026-49839 jqlang jq: out-of-bounds write (memory corruption)
- Jun 25, 2026CVE-2026-54679 jqlang jq: integer overflow
- May 11, 2026CVE-2026-43896 jqlang jq: uncontrolled recursion
- May 11, 2026CVE-2026-43895 jqlang jq: improper input validation
- May 11, 2026CVE-2026-44777 jqlang jq: uncontrolled recursion
- May 11, 2026CVE-2026-43894 jqlang jq: integer overflow
- May 11, 2026CVE-2026-41256 jqlang jq: improper Neutralization of Null Byte or NUL Character
Questions about CVE-2026-40164
Is CVE-2026-40164 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.39% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of jqlang jq are affected by CVE-2026-40164?
jq < 0c7d133c3c7e37c00b6d46b658a02244fdd3c784, per the CVE record by GitHub_M. The tables above give every range the sources list.
Which version fixes CVE-2026-40164?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2026-40164?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-40164?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.