Vulnerability · Published May 21, 2025 · Assigned by GitHub_M

CVE-2025-48060AddressSanitizer: stack-buffer-overflow in jq_fuzz_execute (jv_string_vfmt)

High 7.7

In plain English

A high-severity stack buffer 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.6% (higher than 47% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)7.7High
Exploit odds (30 days)0.6%top 53.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

jq is a command-line JSON processor. In versions up to and including 1.7.1, a heap-buffer-overflow is present in function `jv_string_vfmt` in the jq_fuzz_execute harness from oss-fuzz. This crash happens on file jv.c, line 1456 `void* p = malloc(sz);`. As of time of publication, no patched versions are available.

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-2025-48060
Alpine:v3.23jq1.8.0-r0ALPINE-CVE-2025-48060
Alpine:v3.24jq1.8.0-r0ALPINE-CVE-2025-48060
Debian:12jq1.6-2.1+deb12u1DEBIAN-CVE-2025-48060
Debian:13jq1.7.1-6+deb13u1DEBIAN-CVE-2025-48060
Debian:14jq1.8.0-1DEBIAN-CVE-2025-48060
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-2025-48060
Ubuntu:24.04:LTSjq1.7.1-3ubuntu0.24.04.1USN-7657-1
Ubuntu:24.04:LTSjq1.7.1-3ubuntu0.24.04.1UBUNTU-CVE-2025-48060
Ubuntu:25.10jq1.8.1-3ubuntu1UBUNTU-CVE-2025-48060
Ubuntu:26.04:LTSjq1.8.1-3ubuntu1UBUNTU-CVE-2025-48060

Affected products (as reported)

VendorProductVersions
jqlang jq <= 1.7.1

Weakness: CWE-121 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:P

References