CVE-2024-53427 Memory corruption in jq

High 8.1 Published Updated

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:TumbleweedAll versions1.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.

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.

Is CVE-2024-53427 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free