Vulnerability · Published May 21, 2025 · Assigned by GitHub_M
CVE-2024-23337jq has signed integer overflow in jv.c:jvp_array_write
Medium 4.3
In plain English
A medium-severity integer overflow in jq from jqlang. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.5%top 60.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | jq | 1.6-11.el8_10 | ALSA-2025:10618 |
| AlmaLinux:9 | jq | 1.6-17.el9_6.2 | ALSA-2025:10585 |
| AlmaLinux:8 | jq-devel | 1.6-11.el8_10 | ALSA-2025:10618 |
| AlmaLinux:9 | jq-devel | 1.6-17.el9_6.2 | ALSA-2025:10585 |
| Alpine:v3.22 | jq | 1.8.0-r0 | ALPINE-CVE-2024-23337 |
| Alpine:v3.23 | jq | 1.8.0-r0 | ALPINE-CVE-2024-23337 |
| Alpine:v3.24 | jq | 1.8.0-r0 | ALPINE-CVE-2024-23337 |
| Debian:12 | jq | no fix listed | DEBIAN-CVE-2024-23337 |
| Debian:13 | jq | 1.7.1-6 | DEBIAN-CVE-2024-23337 |
| Debian:14 | jq | 1.7.1-6 | DEBIAN-CVE-2024-23337 |
| Rocky Linux:10 | jq | 0:1.7.1-8.el10_0.1 | RLSA-2025:12882 |
| Rocky Linux:8 | jq | 0:1.6-11.el8_10 | RLSA-2025:10618 |
| Rocky Linux:9 | jq | 0:1.6-17.el9_6.2 | RLSA-2025:10585 |
| Ubuntu:22.04:LTS | jq | 1.6-2.1ubuntu3.1 | USN-7657-1 |
| Ubuntu:22.04:LTS | jq | 1.6-2.1ubuntu3.1 | UBUNTU-CVE-2024-23337 |
| Ubuntu:24.04:LTS | jq | 1.7.1-3ubuntu0.24.04.1 | UBUNTU-CVE-2024-23337 |
| Ubuntu:24.04:LTS | jq | 1.7.1-3ubuntu0.24.04.1 | USN-7657-1 |
Affected products (as reported)
Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
References
- https://github.com/jqlang/jq/security/advisories/GHSA-2q6r-344g-cx46 x_refsource_CONFIRM
- https://github.com/jqlang/jq/issues/3262 x_refsource_MISC
- https://github.com/jqlang/jq/commit/de21386681c0df0104a99d9d09db23a9b2a78b1e x_refsource_MISC