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

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 : Awaiting Analysis

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

Modified: 2025-03-28T17:15:27.420

Link: CVE-2024-53427

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2024-53427 - Bugzilla