Use-after-free in jq - CVE-2025-49014

 

Use-after-free in jq - CVE-2025-49014

Published: June 19, 2025


Vulnerability identifier: #VU111309
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2025-49014
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: stedolan (Stephen Dolan)
Affected software:
jq

Detailed vulnerability description

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error within the f_strflocaltime() function in /src/builtin.c. A remote attacker can trick the victim into passing a specially crafted JSON file to the application, trigger a heap use-after-free error and execute arbitrary code on the system.


How to mitigate CVE-2025-49014

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

Sources