# 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…

- Severity: High 8.1 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 35% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-02-26T00:00:00.000Z
- Modified: 2026-06-17T08:08:52.940Z
- Weaknesses: CWE-843
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: mitre

## 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).

(As written by CVE List.)

## Affected

- jqlang jq: up to 1.7.1

## References

- <https://github.com/jqlang/jq/issues/3196> (exploit, issue-tracking, vendor-advisory)
- <https://gist.github.com/Ekkosun/a83870ce7f3b7813b9b462a395e8ad92> (third-party-advisory)
- <https://github.com/jqlang/jq/blob/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297/src/decNumber/decNumber.c#L3375> (product)
- <https://github.com/jqlang/jq/security/advisories/GHSA-x6c3-qv5r-7q22> (vendor-advisory)
- <https://github.com/jqlang/jq/issues/3296> (issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2024-53427](https://www.cve.org/CVERecord?id=CVE-2024-53427), CVE Terms of Use, modified 2025-03-28
- NVD: [CVE-2024-53427](https://nvd.nist.gov/vuln/detail/CVE-2024-53427), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-53427 · Whole record: https://cve.day/CVE-2024-53427.json · Rebuilt by cve.day 2026-11-25T22:58:52.072Z
