Use-after-free in jq - CVE-2025-49014
Published: June 19, 2025
Vulnerability details
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.
Affected software
openEuler
Anolis OS
jq
jq-debuginfo
jq-debugsource
jq-devel
jq-help
jq-doc
How to mitigate CVE-2025-49014
jq-debuginfo - update to 1.8.0-2
jq-debugsource - update to 1.8.0-2
jq-devel - update to 1.8.0-2
jq-help - update to 1.8.0-2
jq - update to 1.8.1-1
jq-devel - update to 1.8.1-1
jq-doc - update to 1.8.1-1