Stack-based buffer overflow in jqlang jq



| Updated: 2025-03-28
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2024-53427
CWE-ID CWE-121
Exploitation vector Network
Public exploit N/A
Vulnerable software
jq
Other software / Other software solutions

Vendor stedolan (Stephen Dolan)

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Stack-based buffer overflow

EUVDB-ID: #VU105901

Risk: Medium

CVSSv4.0: 4.8 [CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2024-53427

CWE-ID: CWE-121 - Stack-based buffer overflow

Exploit availability: No

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the decNumberCopy() function in decNumber.c. A remote attacker can pass specially crafted input to the application, trigger a stack-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Note, the vulnerability exists due to incomplete fix for #VU106250 (CVE-2023-50268).

Mitigation

Install updates from vendor's website.

Vulnerable software versions

jq: 1.0 - 1.7.1

CPE2.3 External links

https://gist.github.com/Ekkosun/a83870ce7f3b7813b9b462a395e8ad92
https://github.com/jqlang/jq/blob/71c2ab509a8628dbbad4bc7b3f98a64aa90d3297/src/decNumber/decNumber.c#L3375
https://github.com/jqlang/jq/issues/3196
https://github.com/jqlang/jq/security/advisories/GHSA-x6c3-qv5r-7q22


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###