CVE-2025-49014 jq heap use after free vulnerability in f_strflocaltime
A heap use-after-free flaw in jq's f_strflocaltime function allows attackers to potentially execute arbitrary code or cause a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-49014?
CVE-2025-49014 is a medium-severity use after free vulnerability in jqlang jq, published on 19 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-416
Which versions are affected by CVE-2025-49014?
How do I fix CVE-2025-49014?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2025-49014 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-49014 exists.
Sources
Also known as ALPINE-CVE-2025-49014, BELL-CVE-2025-49014, DEBIAN-CVE-2025-49014, GHSA-rmjp-cr27-wpg2.