CVE-2024-53427 in Jqlang Jq
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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, high complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Jqlang | Jq | ≤ 1.7.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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).
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-53427 |
|---|---|
| BreachSpider ID | BS-2025-GLOBAL-042343-H |
| CVSS vector | CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| Published | 2025-02-26 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-843: CWE-843
Analysis AI-written, not human-reviewed
A stack-based buffer overflow and out-of-bounds write vulnerability exists in the decNumberCopy function in decNumber.c in jq through version 1.7.1 due to improper handling of NaN values as numeric.
The vulnerability can be exploited by using the --slurp option with a specific filter (e.g., .-.) and input that includes a NaN value followed by a large number of digits, such as '1 NaN123' followed by many more digits.
Questions
What is CVE-2024-53427?
A stack-based buffer overflow and out-of-bounds write vulnerability exists in the decNumberCopy function in decNumber.c in jq through version 1.7.1 due to improper handling of NaN values as numeric.
What is the CVSS score for CVE-2024-53427?
CVE-2024-53427 has CVSS 8.1 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H. EPSS: 0.4%.
Is CVE-2024-53427 actively exploited?
No confirmed active exploitation of CVE-2024-53427 as of 2026-09-25.
How do I remediate CVE-2024-53427?
Priority: IMMEDIATE.
What systems are affected by CVE-2024-53427?
CVE-2024-53427 affects Jqlang Jq.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Jqlang","product":"Jq","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.