REDHAT-BUG-2469187: Medium severity JQ jq vulnerability

Published May 11, 2026
·
Updated

jq is a command-line JSON processor. In 1.8.1 and earlier, the jq bytecode VM's data stack tracks its allocation size in a signed int. When the stack grows beyond ≈1 GiB (via deeply nested generator forks), the doubling arithmetic overflows. The wrapped value is passed to realloc and then used for a memmove with attacker-influenced offsets.

Affected Software

1 affected component
JQ jq<=1.8.1

Event History

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

Frequently Asked Questions

1

What input is required to trigger the issue?

An attacker needs to cause jq to process input or filters that create deeply nested generator forks, growing the bytecode VM data stack beyond approximately 1 GiB. The resulting integer overflow affects the allocation size passed to realloc and subsequent memmove operations.

2

Are typical small JSON documents likely to trigger this vulnerability?

No. Triggering it requires unusually deep generator-fork behavior and data-stack growth beyond approximately 1 GiB, rather than ordinary small JSON processing.

3

How can I determine whether my jq version is affected?

Versions 1.8.1 and earlier are affected according to the available information. Check the jq version deployed in environments that process untrusted JSON or attacker-controlled jq filters.

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