CVE-2026-41257: jq: Signed-int overflow in `stack_reallocate` (jq VM stack)

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

2 affected components
Stedolan jq<=1.8.1
jqlang jq<=1.8.1

Event History

May 11, 2026
CVE Published
via MITRE·05:14 PM
Data Sourced
via MITRE·05:14 PM
DescriptionWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-41257?

CVE-2026-41257 has been classified with a high severity due to the potential for signed integer overflow leading to denial of service.

2

How do I fix CVE-2026-41257?

To fix CVE-2026-41257, upgrade jq to version 1.8.2 or later where the vulnerability has been mitigated.

3

Which versions of jq are affected by CVE-2026-41257?

CVE-2026-41257 affects jq versions up to and including 1.8.1.

4

What can happen if CVE-2026-41257 is exploited?

Exploitation of CVE-2026-41257 may lead to a denial of service condition due to the overflow in the jq VM's stack.

5

Is there a workaround for CVE-2026-41257?

Currently, the best approach to mitigate CVE-2026-41257 is to avoid using deeply nested generator forks or upgrade jq.

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