# CVE-2024-53427: jq: decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which...

CVE-2024-53427 is fixed in 5 products on 1 platform, first by DEBIAN-CVE-2024-53427, released February 26, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2024-53427
- Priority: High
- CVSS: 8.1 (high)
- EPSS: 0.0039
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Feb 26, 2025

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | jq Debian 13.5 (trixie) | 1.7.1-6+deb13u3 | [DEBIAN-CVE-2024-53427](https://patchblox.com/security/data/fix/linux/debian-cve-2024-53427.md) | Feb 26, 2025 |
| Linux | jq Debian 14 | 1.7.1-5 | [DEBIAN-CVE-2024-53427](https://patchblox.com/security/data/fix/linux/debian-cve-2024-53427.md) | Feb 26, 2025 |
| Linux | jq Ubuntu 24.04.5 LTS (noble) | 1.7.1-3ubuntu0.24.04.1 | [jq 1.7.1-3ubuntu0.24.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-jq-1.7.1-3ubuntu0.24.04.1.md) | May 21, 2025 |
| Linux | jq Ubuntu 25.04 (plucky) | 1.7.1-3ubuntu1.1 | [jq 1.7.1-3ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-jq-1.7.1-3ubuntu1.1.md) | Jan 16, 2026 |
| Linux | jq amzn 2023 | 1.7.1-49.amzn2023.0.2 | [ALAS2023-2025-919](https://patchblox.com/security/data/fix/linux/alas2023-2025-919.md) | Mar 26, 2025 |
| Linux | jq sles 15.6 | 1.7.1-150000.3.25.1 | [SUSE-SU-2026:4275-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4275-1.md) | Sep 21, 2026 |
| Linux | jq sles 15.7 | 1.7.1-150000.3.25.1 | [SUSE-SU-2026:4275-1](https://patchblox.com/security/data/fix/linux/suse-su-2026-4275-1.md) | Sep 21, 2026 |
| Linux | jq-debuginfo amzn 2023 | 1.7.1-49.amzn2023.0.2 | [ALAS2023-2025-919](https://patchblox.com/security/data/fix/linux/alas2023-2025-919.md) | Mar 26, 2025 |
| Linux | jq-debugsource amzn 2023 | 1.7.1-49.amzn2023.0.2 | [ALAS2023-2025-919](https://patchblox.com/security/data/fix/linux/alas2023-2025-919.md) | Mar 26, 2025 |
| Linux | jq-devel amzn 2023 | 1.7.1-49.amzn2023.0.2 | [ALAS2023-2025-919](https://patchblox.com/security/data/fix/linux/alas2023-2025-919.md) | Mar 26, 2025 |
| Linux | libjq1 Ubuntu 24.04.5 LTS (noble) | 1.7.1-3ubuntu0.24.04.1 | [libjq1 1.7.1-3ubuntu0.24.04.1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-libjq1-1.7.1-3ubuntu0.24.04.1.md) | May 21, 2025 |
| Linux | libjq1 Ubuntu 25.04 (plucky) | 1.7.1-3ubuntu1.1 | [libjq1 1.7.1-3ubuntu1.1](https://patchblox.com/security/data/fix/linux/ubuntu-plucky-libjq1-1.7.1-3ubuntu1.1.md) | Jan 16, 2026 |

---

Data as of 2026-11-09T13:31:49Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
