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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.22 | jq | 1.8.1-r0 | ALPINE-CVE-2025-49014 |
| Alpine:v3.23 | jq | 1.8.1-r0 | ALPINE-CVE-2025-49014 |
| Alpine:v3.24 | jq | 1.8.1-r0 | ALPINE-CVE-2025-49014 |
| Debian:14 | jq | 1.8.1-1 | DEBIAN-CVE-2025-49014 |
| Ubuntu:22.04:LTS | jq | 1.6-2.1ubuntu3 | UBUNTU-CVE-2025-49014 |
| Ubuntu:24.04:LTS | jq | 1.7.1-3build1 | UBUNTU-CVE-2025-49014 |
Affected products (as reported)
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
- https://github.com/jqlang/jq/security/advisories/GHSA-rmjp-cr27-wpg2 x_refsource_CONFIRM
- https://github.com/jqlang/jq/commit/499c91bca9d4d027833bc62787d1bb075c03680e x_refsource_MISC