High severity · published Feb 26, 2025
CVE-2024-53427
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…
8.1
CVSS
0.4%
EPSS
No
On KEV
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).
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Attack vector
Local
Complexity
High
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 30% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JQ
JQ · Jqlang
through 1.7.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-53427
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-53427
Third Party Advisory
https://gist.github.com/Ekkosun/a83870ce7f3b7813b9b462a395e8ad92
Product
https://github.com/jqlang/jq/blob/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297/src/decNumber/decNumber.c#L3375
Exploit
https://github.com/jqlang/jq/issues/3196
Issue Tracking
https://github.com/jqlang/jq/issues/3296
Vendor Advisory
https://github.com/jqlang/jq/security/advisories/GHSA-x6c3-qv5r-7q22
More from JQ
7.5
CVE-2026-40164
jq: Algorithmic complexity DoS via hardcoded MurmurHash3 seed
7.5
CVE-2026-32316
jq: Integer overflow in jvp_string_append() allows Heap-based Buffer Overflow
7.5
CVE-2025-48060
jq is a command-line JSON processor
7.5
CVE-2023-49355
decToString in decNumber/decNumber.c in jq 88f01a7 has a one-byte out-of-bounds write via the " []-1.2e-1111111111" input
7.1
CVE-2026-49839
jq --rawfile invalid-state reuse after String too long causes heap-buffer-overflow
