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).
Published: 2025-02-26
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2025-5310 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).
Ubuntu USN Ubuntu USN USN-7657-1 jq vulnerabilities
History

Tue, 01 Jul 2025 21:45:00 +0000

Type Values Removed Values Added
First Time appeared Jqlang
Jqlang jq
CPEs cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*
Vendors & Products Jqlang
Jqlang jq

Fri, 28 Mar 2025 16:45:00 +0000


Wed, 05 Mar 2025 16:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sun, 02 Mar 2025 02:15:00 +0000

Type Values Removed Values Added
Description jq v1.7.1 contains a stack-buffer-overflow in the decNumberCopy function within decNumber.c. 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).
Weaknesses CWE-843
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L'}

cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H'}


Fri, 28 Feb 2025 02:00:00 +0000

Type Values Removed Values Added
Title jq: stack-buffer-overflow in the decNumberCopy function in decNumber.c
Weaknesses CWE-121
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L'}

threat_severity

Moderate


Wed, 26 Feb 2025 16:15:00 +0000

Type Values Removed Values Added
Description jq v1.7.1 contains a stack-buffer-overflow in the decNumberCopy function within decNumber.c.
References

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-03-28T16:39:39.470Z

Reserved: 2024-11-20T00:00:00.000Z

Link: CVE-2024-53427

cve-icon Vulnrichment

Updated: 2025-03-05T15:33:47.838Z

cve-icon NVD

Status : Analyzed

Published: 2025-02-26T16:15:16.237

Modified: 2025-07-01T21:25:24.020

Link: CVE-2024-53427

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-02-26T00:00:00Z

Links: CVE-2024-53427 - Bugzilla

cve-icon OpenCVE Enrichment

No data.

Weaknesses