CVE & CISA-KEV Catalog

CVE-2026-40164

HIGH
7.5
CVSS v3
NVD

Description

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.

How to fix

Remediation Available
jqAmazon
Fixed in:0:1.8.1-59.amzn2023
Fixed in:0:1.8.1-59.amzn2023
jq-debuginfoAmazon
Fixed in:0:1.8.1-59.amzn2023
Fixed in:0:1.8.1-59.amzn2023
jq-debugsourceAmazon
Fixed in:0:1.8.1-59.amzn2023
Fixed in:0:1.8.1-59.amzn2023
jq-develAmazon
Fixed in:0:1.8.1-59.amzn2023
Fixed in:0:1.8.1-59.amzn2023
jqDebian
Fixed in:1.6-2.1+deb12u2CVE-2026-40164
Fixed in:1.7.1-6+deb13u2CVE-2026-40164
Fixed in:1.8.1-5CVE-2026-40164
jqRocky
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
jqRed Hat / RHEL
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
jq-debuginfoRocky
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
jq-debuginfoRed Hat / RHEL
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
jq-debugsourceRed Hat / RHEL
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
jq-debugsourceRocky
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
jq-develRed Hat / RHEL
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
jq-develRocky
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_2.2RHSA-2026:19151
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-11.el10_1.0.2RHSA-2026:16692
Fixed in:0:1.7.1-8.el10_0.3RHSA-2026:18040
registry.redhat.io/rhaiis/model-optRed Hat / RHEL
Fixed in:cuda-rhel9@sha256:20ab3684a275906dab8e67c09d3b86eadb6599aadf7247185a732aa4f96c0c00_arm64RHSA-2026:25096
Fixed in:cuda-rhel9@sha256:21867e83ef2af0458c1eff854005781fbb527370bca8a1e90b404b5119ad2478_amd64RHSA-2026:30078
Fixed in:cuda-rhel9@sha256:f94dff371b3c38a7d62490bcd72aa98829b762330b3603d6f19abb287b2f8969_arm64RHSA-2026:30078
Fixed in:cuda-rhel9@sha256:66f80c8d4174118114a29773402ec00cc2f91149c7b2b19ad63910f775be7f53_amd64RHSA-2026:25096
registry.redhat.io/rhaiis/model-optRocky
Fixed in:cuda-rhel9@sha256:f94dff371b3c38a7d62490bcd72aa98829b762330b3603d6f19abb287b2f8969_arm64RHSA-2026:30078
Fixed in:cuda-rhel9@sha256:66f80c8d4174118114a29773402ec00cc2f91149c7b2b19ad63910f775be7f53_amd64RHSA-2026:25096
Fixed in:cuda-rhel9@sha256:21867e83ef2af0458c1eff854005781fbb527370bca8a1e90b404b5119ad2478_amd64RHSA-2026:30078
Fixed in:cuda-rhel9@sha256:20ab3684a275906dab8e67c09d3b86eadb6599aadf7247185a732aa4f96c0c00_arm64RHSA-2026:25096
registry.redhat.io/rhaiis/vllmRed Hat / RHEL
Fixed in:spyre-rhel9@sha256:9c8187509c26e824143f51f9522d7b6457f3aea33e5f7983bb203e4bb231473d_ppc64leRHSA-2026:30087
Fixed in:cuda-rhel9@sha256:d869df392f711437069fa0c808428694c945d4b79e5dd77c718f68403cd71629_amd64RHSA-2026:30089
Fixed in:rocm-rhel9@sha256:993e84c73225a7c5e2df63756643a26b054b665eb6c15599d9decbbce91b6863_amd64RHSA-2026:30088
Fixed in:cuda-rhel9@sha256:9165ca6c4f41ed4f5cdf5c590bfad74e22abe23737adfdc40a4c4b340b10e309_arm64RHSA-2026:30089
Fixed in:spyre-rhel9@sha256:906987407c1ed10139dadc5f8aef64584f407a6017467fce726e2e9c42d9f9c8_amd64RHSA-2026:30087
Fixed in:spyre-rhel9@sha256:681d191e22994e4da2d4844219e2401ee363d4b3524cd19bb00076dce685a36a_s390xRHSA-2026:30087
registry.redhat.io/rhaiis/vllmRocky
Fixed in:spyre-rhel9@sha256:906987407c1ed10139dadc5f8aef64584f407a6017467fce726e2e9c42d9f9c8_amd64RHSA-2026:30087
Fixed in:spyre-rhel9@sha256:681d191e22994e4da2d4844219e2401ee363d4b3524cd19bb00076dce685a36a_s390xRHSA-2026:30087
Fixed in:cuda-rhel9@sha256:9165ca6c4f41ed4f5cdf5c590bfad74e22abe23737adfdc40a4c4b340b10e309_arm64RHSA-2026:30089
Fixed in:cuda-rhel9@sha256:d869df392f711437069fa0c808428694c945d4b79e5dd77c718f68403cd71629_amd64RHSA-2026:30089
Fixed in:spyre-rhel9@sha256:9c8187509c26e824143f51f9522d7b6457f3aea33e5f7983bb203e4bb231473d_ppc64leRHSA-2026:30087
Fixed in:rocm-rhel9@sha256:993e84c73225a7c5e2df63756643a26b054b665eb6c15599d9decbbce91b6863_amd64RHSA-2026:30088
rhcos-aarch64Red Hat / RHEL
Fixed in:416.94.202606051757-0RHSA-2026:25044
Fixed in:418.94.202606051320-0RHSA-2026:25181
Fixed in:415.92.202606030318-0RHSA-2026:23233
Fixed in:4.19.9.6.202606031700-0RHSA-2026:23245
Fixed in:417.94.202606250942-0RHSA-2026:34098
Fixed in:414.92.202606231112-0RHSA-2026:28887
rhcos-aarch64Rocky
Fixed in:418.94.202606051320-0RHSA-2026:25181
Fixed in:415.92.202606030318-0RHSA-2026:23233
Fixed in:4.19.9.6.202606031700-0RHSA-2026:23245
Fixed in:414.92.202606231112-0RHSA-2026:28887
Fixed in:417.94.202606250942-0RHSA-2026:34098
Fixed in:416.94.202606051757-0RHSA-2026:25044
rhcos-ppc64leRocky
Fixed in:4.19.9.6.202606031700-0RHSA-2026:23245
Fixed in:415.92.202606030318-0RHSA-2026:23233
Fixed in:416.94.202606051757-0RHSA-2026:25044
Fixed in:417.94.202606250942-0RHSA-2026:34098
Fixed in:418.94.202606051320-0RHSA-2026:25181
Fixed in:414.92.202606231112-0RHSA-2026:28887
rhcos-ppc64leRed Hat / RHEL
Fixed in:4.19.9.6.202606031700-0RHSA-2026:23245
Fixed in:414.92.202606231112-0RHSA-2026:28887
Fixed in:416.94.202606051757-0RHSA-2026:25044
Fixed in:418.94.202606051320-0RHSA-2026:25181
Fixed in:417.94.202606250942-0RHSA-2026:34098
Fixed in:415.92.202606030318-0RHSA-2026:23233
rhcos-s390xRocky
Fixed in:415.92.202606030318-0RHSA-2026:23233
Fixed in:4.19.9.6.202606031700-0RHSA-2026:23245
Fixed in:414.92.202606231112-0RHSA-2026:28887
Fixed in:417.94.202606250942-0RHSA-2026:34098
Fixed in:418.94.202606051320-0RHSA-2026:25181
Fixed in:416.94.202606051757-0RHSA-2026:25044
rhcos-s390xRed Hat / RHEL
Fixed in:4.19.9.6.202606031700-0RHSA-2026:23245
Fixed in:414.92.202606231112-0RHSA-2026:28887
Fixed in:416.94.202606051757-0RHSA-2026:25044
Fixed in:417.94.202606250942-0RHSA-2026:34098
Fixed in:418.94.202606051320-0RHSA-2026:25181
Fixed in:415.92.202606030318-0RHSA-2026:23233
rhcos-x86_64Red Hat / RHEL
Fixed in:414.92.202606231112-0RHSA-2026:28887
Fixed in:412.86.202606140301-0RHSA-2026:26528
Fixed in:4.19.9.6.202606031700-0RHSA-2026:23245
Fixed in:416.94.202606051757-0RHSA-2026:25044
Fixed in:413.92.202606160406-0RHSA-2026:26542
Fixed in:418.94.202606051320-0RHSA-2026:25181
Fixed in:417.94.202606250942-0RHSA-2026:34098
Fixed in:415.92.202606030318-0RHSA-2026:23233
rhcos-x86_64Rocky
Fixed in:412.86.202606140301-0RHSA-2026:26528
Fixed in:4.19.9.6.202606031700-0RHSA-2026:23245
Fixed in:413.92.202606160406-0RHSA-2026:26542
Fixed in:416.94.202606051757-0RHSA-2026:25044
Fixed in:418.94.202606051320-0RHSA-2026:25181
Fixed in:415.92.202606030318-0RHSA-2026:23233
Fixed in:417.94.202606250942-0RHSA-2026:34098
Fixed in:414.92.202606231112-0RHSA-2026:28887
jqUbuntu
Fixed in:1.3-1.1ubuntu1.1+esm4USN-8202-1

This Ubuntu release reached end-of-life on 2019-04-02.

Fixed in:1.5+dfsg-1ubuntu0.1+esm4USN-8202-1

This Ubuntu release reached end-of-life on 2021-04-02.

Fixed in:1.5+dfsg-2ubuntu0.1~esm2USN-8202-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1.5+dfsg-2ubuntu0.1~esm3USN-8202-3

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1.6-1ubuntu0.20.04.1+esm2USN-8202-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1.6-1ubuntu0.20.04.1+esm3USN-8202-3

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1.6-2.1ubuntu3.2USN-8202-1
Fixed in:1.7.1-3ubuntu0.24.04.2USN-8202-1
libjq-devUbuntu
Fixed in:1.5+dfsg-2ubuntu0.1~esm2USN-8202-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1.5+dfsg-2ubuntu0.1~esm3USN-8202-3

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1.6-1ubuntu0.20.04.1+esm3USN-8202-3

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1.6-1ubuntu0.20.04.1+esm2USN-8202-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1.6-2.1ubuntu3.2USN-8202-1
Fixed in:1.7.1-3ubuntu0.24.04.2USN-8202-1
Fixed in:1.8.1-3ubuntu1.1USN-8202-1
libjq1Ubuntu
Fixed in:1.5+dfsg-2ubuntu0.1~esm2USN-8202-1

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1.5+dfsg-2ubuntu0.1~esm3USN-8202-3

This Ubuntu release reached end-of-life on 2023-05-31. Extended security maintenance is available until 2028-04-01.

Fixed in:1.6-1ubuntu0.20.04.1+esm2USN-8202-1

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1.6-1ubuntu0.20.04.1+esm3USN-8202-3

This Ubuntu release reached end-of-life on 2025-05-31. Extended security maintenance is available until 2030-04-02.

Fixed in:1.6-2.1ubuntu3.2USN-8202-1
Fixed in:1.7.1-3ubuntu0.24.04.2USN-8202-1
Fixed in:1.8.1-3ubuntu1.1USN-8202-1

This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit Intelligence

0.37%probability of exploitation in 30 days
30thpercentile

Low risk: more likely to be exploited than 30% of all known CVEs.

References

Related Vulnerabilities

Other CWE-328 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2004-2761Critical9.89.9%--
CVE-2024-54143Critical9.31.8%--
CVE-2022-3433Medium6.50.8%-Fix
CVE-2022-29249High7.50.7%--
CVE-2023-2900Low3.70.7%--
CVE-2023-46233Critical9.10.6%-Fix

Common questions

How do I fix CVE-2026-40164?

Published advisories record a fix for 28 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.

Is CVE-2026-40164 being actively exploited?

Not that we know of. CVE-2026-40164 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.37% is the estimated probability that it will be exploited in the next 30 days. That is higher than 30% of all scored CVEs.

How severe is CVE-2026-40164?

CVE-2026-40164 has a CVSS v3 base score of 7.5, rated important. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2026-40164 affect?

Published advisories record a fix for jq (Amazon), jq-debuginfo (Amazon), jq-debugsource (Amazon), jq-devel (Amazon), and 24 more. Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2026-40164
CVE-2026-40164 severity badge

Markdown

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

HTML

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

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-07-15.