Stack-based buffer overflow in jq - CVE-2024-53427
Published: March 20, 2025 / Updated: June 25, 2025
Vulnerability details
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).
Affected software
Debian Linux
Ubuntu
Anolis OS
jq (Ubuntu package)
jq
jq-devel
jq-doc
jq (Debian package)
How to mitigate CVE-2024-53427
jq (Ubuntu package) - addressed in versions 1.6-2.1ubuntu3.1, 1.7.1-3ubuntu0.24.04.1, 1.7.1-3ubuntu1.1
jq - addressed in versions 1.6-17, 1.8.1-1
jq-devel - addressed in versions 1.6-17, 1.8.1-1
jq-doc - addressed in versions 1.6-17, 1.8.1-1
jq (Debian package) - update to 1.7.1-6+deb13u3