CVE-2024-23337: jq has signed integer overflow in jv.c:jvp_array_write

Published May 21, 2025
·
Updated

jq has signed integer overflow in jv.c:jvparraywrite

Other sources

jq is a command-line JSON processor. In versions up to and including 1.7.1, an integer overflow arises when assigning value using an index of 2147483647, the signed integer limit. This causes a denial of service. Commit de21386681c0df0104a99d9d09db23a9b2a78b1e contains a patch for the issue.

— MITRE

Affected Software

18 affected componentsFixes available
JQ jq<=1.7.1
jqlang jq<=1.7.1
Microsoft cm2 jq 1.6-3<1.6-3
1.6-3
Microsoft cbl2 jq 1.6-3<1.6-3
1.6-3
Microsoft azl3 jq 1.7.1-3<1.7.1-3
1.7.1-3
debian/jq*
debian/jq<1.7.1-6
1.7.1-6
debian/jq<1.7.1-6
1.7.1-6
debian/jq<=1.6-2.1+deb12u2, <=1.6-2.1+deb12u3
1.7.1-6+deb13u31.7.1-6+deb13u41.8.2-1
alpine/jq<1.8.2-r0
1.8.2-r0
alpine/jq<1.8.0-r0
1.8.0-r0
alpine/jq<1.8.0-r0
1.8.0-r0
alpine/jq<1.8.0-r0
1.8.0-r0
ubuntu/jq<1.5+dfsg-1ubuntu0.1+esm3
1.5+dfsg-1ubuntu0.1+esm3
ubuntu/jq<1.5+dfsg-2ubuntu0.1~esm1
1.5+dfsg-2ubuntu0.1~esm1
ubuntu/jq<1.6-1ubuntu0.20.04.1+esm1
1.6-1ubuntu0.20.04.1+esm1
ubuntu/jq<1.6-2.1ubuntu3.1
1.6-2.1ubuntu3.1
ubuntu/jq<1.7.1-3ubuntu0.24.04.1
1.7.1-3ubuntu0.24.04.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.6-3
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.7.1-3
  3. Upgrade

    Upgrade debian/jq to a version that resolves this vulnerability.

    Fixed in 1.7.1-6
  4. Upgrade

    Upgrade debian/jq to a version that resolves this vulnerability.

    Fixed in 1.7.1-6+deb13u3Fixed in 1.7.1-6+deb13u4Fixed in 1.8.2-1
  5. Upgrade

    Upgrade alpine/jq to a version that resolves this vulnerability.

    Fixed in 1.8.2-r0
  6. Upgrade

    Upgrade alpine/jq to a version that resolves this vulnerability.

    Fixed in 1.8.0-r0
  7. Upgrade

    Upgrade ubuntu/jq to a version that resolves this vulnerability.

    Fixed in 1.5+dfsg-1ubuntu0.1+esm3
  8. Upgrade

    Upgrade ubuntu/jq to a version that resolves this vulnerability.

    Fixed in 1.5+dfsg-2ubuntu0.1~esm1
  9. Upgrade

    Upgrade ubuntu/jq to a version that resolves this vulnerability.

    Fixed in 1.6-1ubuntu0.20.04.1+esm1
  10. Upgrade

    Upgrade ubuntu/jq to a version that resolves this vulnerability.

    Fixed in 1.6-2.1ubuntu3.1
  11. Upgrade

    Upgrade ubuntu/jq to a version that resolves this vulnerability.

    Fixed in 1.7.1-3ubuntu0.24.04.1
  12. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch de21386681c0df0104a99d9d09db23a9b2a78b1e

Event History

May 21, 2025
CVE Published
via MITRE·02:34 PM
Data Sourced
via MITRE·02:34 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·03:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·03:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
DescriptionSeverityWeakness
Jun 20, 2025
Data Sourced
via NVD·05:41 PM
RemedyAffected Software
Updated
via NVD·05:41 PM
Severity
Event
via NVD·05:41 PM
Jul 11, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
WeaknessAffected Software
Oct 28, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 3, 2025
Updated
via IBM·12:00 AM
Affected Software
Jan 30, 2026
Updated
via IBM·12:00 AM
Affected Software
Aug 13, 2026
Updated
via Microsoft·05:52 AM
Weakness
Nov 16, 2026
Updated
via OSV·12:30 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-23337?

CVE-2024-23337 has a severity rating that indicates potential denial of service due to an integer overflow.

2

What versions of jq are affected by CVE-2024-23337?

CVE-2024-23337 affects jq versions up to and including 1.7.1.

3

How do I fix CVE-2024-23337?

To fix CVE-2024-23337, you should upgrade jq to a version higher than 1.7.1 where the issue has been patched.

4

What is the impact of CVE-2024-23337?

The impact of CVE-2024-23337 is a denial of service caused by an integer overflow when using certain indices.

5

Who maintains the jq software affected by CVE-2024-23337?

The jq software affected by CVE-2024-23337 is maintained by the jq project team.

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