CVE-2024-53427 Memory corruption in jq
A stack-based buffer overflow in jq allows attackers to execute arbitrary code or cause denial of service via crafted input.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-53427?
CVE-2024-53427 is a high-severity memory corruption vulnerability in jqlang jq, published on 26 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which has a resultant stack-based buffer overflow and out-of-bounds write, as demonstrated by use of --slurp with subtraction, such as a filter of .-. when the input has a certain form of digit string with NaN (e.g., "1 NaN123" immediately followed by many more digits).
Weakness: CWE-843
Which versions are affected by CVE-2024-53427?
It affects 1 product.
Linux distribution packages (1)
jq openSUSE:Tumbleweed | All versions | 1.7.1-3.1 |
Products include Jqlang Jq.
How do I fix CVE-2024-53427?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-53427 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-53427 exists.
Other vulnerabilities in jqlang jq
- CVE-2026-32316 jq: Integer overflow in jvp_string_append() allows Heap-based Buffer Overflow
- CVE-2025-48060 AddressSanitizer: stack-buffer-overflow in jq_fuzz_execute (jv_string_vfmt)
- CVE-2023-49355 Memory corruption in n/a
- CVE-2026-49839 jq --rawfile invalid-state reuse after String too long causes heap-buffer-overflow
- CVE-2026-54679 jq: potential integer overflow in jvp_string_append
Sources
Also known as ALPINE-CVE-2024-53427, AZL-57376, BELL-CVE-2024-53427, CVE-2024-23338, CVE-2025-25726, DEBIAN-CVE-2024-53427 and 5 more.