REDHAT-BUG-2469175: Medium severity JQ jq vulnerability

Published May 11, 2026
·
Updated

jq is a command-line JSON processor. In 1.8.1 and earlier, when decNumberFromString is given a number literal of INTMAX-1 (2147483646) digits, the D2U() macro overflows during signed-int arithmetic. The wrapped negative value bypasses the heap-allocation size check, causes the function to use a 30-byte stack buffer, and then writes ≈715 million 16-bit units (≈1.4 GiB) at an offset 1.43 GiB below the stack frame. The written content is fully attacker-controlled (the parsed decimal digits, packed 3-per-unit).

Affected Software

1 affected component
JQ jq<=1.8.1

Event History

May 11, 2026
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Deployments using jq 1.8.1 or earlier are exposed when they parse attacker-controlled JSON that can contain an extremely large numeric literal. The triggering literal must contain 2,147,483,646 digits.

2

What must an attacker provide to trigger the vulnerability?

An attacker needs to cause jq to process a JSON number literal with exactly INT_MAX-1, or 2,147,483,646, decimal digits. The decimal digits written during parsing are attacker-controlled.

3

How can I identify potentially affected usage?

Check whether jq is version 1.8.1 or earlier and whether it processes JSON from untrusted sources. Inputs containing numeric literals approaching 2,147,483,646 digits are the relevant indicator.

4

What can be done before updating jq?

Prevent untrusted JSON from reaching jq, or reject numeric literals with extremely large digit counts before jq parses them. This avoids the specified triggering condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203