Vulnerability · Published Jun 19, 2025 · Assigned by GitHub_M

CVE-2025-49014jq heap use after free vulnerability in f_strflocaltime

Medium 5.5

In plain English

A medium-severity use-after-free 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.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.5Medium
Exploit odds (30 days)0.4%top 67.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 version 1.8.0 a heap use after free vulnerability exists within the function f_strflocaltime of /src/builtin.c. This issue has been patched in commit 499c91b, no known fix version exists at time of publication.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.22jq1.8.1-r0ALPINE-CVE-2025-49014
Alpine:v3.23jq1.8.1-r0ALPINE-CVE-2025-49014
Alpine:v3.24jq1.8.1-r0ALPINE-CVE-2025-49014
Debian:14jq1.8.1-1DEBIAN-CVE-2025-49014
Ubuntu:22.04:LTSjq1.6-2.1ubuntu3UBUNTU-CVE-2025-49014
Ubuntu:24.04:LTSjq1.7.1-3build1UBUNTU-CVE-2025-49014

Affected products (as reported)

VendorProductVersions
jqlang jq = 1.8.0

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

References