CVE-2024-53427

jq: stack-buffer-overflow in the decNumberCopy function in decNumber.c

Published Feb 26, 2025 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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).

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-6416-1 jq security update
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
Type Values Removed Values Added
First Time appeared Jqlang
Jqlang jq
CPEs cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*
Vendors & Products Jqlang
Jqlang jq
Type Values Removed Values Added
Metrics ssvc

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

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'}

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

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

    Stack-based Buffer Overflow

  • CWE-843

    Access of Resource Using Incompatible Type ('Type Confusion')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Mar 28, 2025, 4:39 PM
Reserved
Nov 20, 2024, 12:00 AM
Status
Analyzed
Published
Feb 26, 2025, 4:15 PM
Modified
Jun 17, 2026, 8:08 AM
Severity
Moderate
Public date
Feb 26, 2025, 12:00 AM