Bug 2458084 (CVE-2026-40164) - CVE-2026-40164 jq: jq: Denial of Service via crafted JSON object causing hash collisions
Summary: CVE-2026-40164 jq: jq: Denial of Service via crafted JSON object causing hash...
Keywords:
Status: NEW
Alias: CVE-2026-40164
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2458368
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-04-14 00:01 UTC by OSIDB Bzimport
Modified: 2026-05-13 01:59 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:16252 0 None None None 2026-05-12 15:56:54 UTC
Red Hat Product Errata RHSA-2026:16692 0 None None None 2026-05-13 01:59:15 UTC
Red Hat Product Errata RHSA-2026:16693 0 None None None 2026-05-13 01:56:40 UTC

Description OSIDB Bzimport 2026-04-14 00:01:27 UTC
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.

Comment 2 errata-xmlrpc 2026-05-12 15:56:53 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:16252 https://access.redhat.com/errata/RHSA-2026:16252

Comment 3 errata-xmlrpc 2026-05-13 01:56:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:16693 https://access.redhat.com/errata/RHSA-2026:16693

Comment 4 errata-xmlrpc 2026-05-13 01:59:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:16692 https://access.redhat.com/errata/RHSA-2026:16692


Note You need to log in before you can comment on or make changes to this bug.