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

EcosystemPackageFixed inAdvisory
AlmaLinux:8jq1.6-11.el8_10ALSA-2025:10618
AlmaLinux:9jq1.6-17.el9_6.2ALSA-2025:10585
AlmaLinux:8jq-devel1.6-11.el8_10ALSA-2025:10618
AlmaLinux:9jq-devel1.6-17.el9_6.2ALSA-2025:10585
Alpine:v3.22jq1.8.0-r0ALPINE-CVE-2024-23337
Alpine:v3.23jq1.8.0-r0ALPINE-CVE-2024-23337
Alpine:v3.24jq1.8.0-r0ALPINE-CVE-2024-23337
Debian:12jqno fix listedDEBIAN-CVE-2024-23337
Debian:13jq1.7.1-6DEBIAN-CVE-2024-23337
Debian:14jq1.7.1-6DEBIAN-CVE-2024-23337
Rocky Linux:10jq0:1.7.1-8.el10_0.1RLSA-2025:12882
Rocky Linux:8jq0:1.6-11.el8_10RLSA-2025:10618
Rocky Linux:9jq0:1.6-17.el9_6.2RLSA-2025:10585
Ubuntu:22.04:LTSjq1.6-2.1ubuntu3.1USN-7657-1
Ubuntu:22.04:LTSjq1.6-2.1ubuntu3.1UBUNTU-CVE-2024-23337
Ubuntu:24.04:LTSjq1.7.1-3ubuntu0.24.04.1UBUNTU-CVE-2024-23337
Ubuntu:24.04:LTSjq1.7.1-3ubuntu0.24.04.1USN-7657-1

Affected products (as reported)

VendorProductVersions
jqlang jq <= 1.7.1

Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L

References