Uncontrolled Recursion in jq - CVE-2026-40612
Published: April 25, 2026 / Updated: August 19, 2026
Vulnerability details
The vulnerability allows a local user to cause a denial of service.
The vulnerability exists due to uncontrolled recursion in jv_contains when processing deeply nested arrays or objects through contains() or inside(). A local user can supply a specially crafted nested input structure to cause a denial of service.
In libjq embedded in larger applications, exploitation may corrupt adjacent memory on systems without stack guard pages or with heap-allocated thread stacks.
Affected software
Debian Linux
openEuler
Anolis OS
Fedora
LANTIME Operating System Firmware (LTOS)
jq (Debian package)
jq-debugsource
jq-help
jq-devel
jq-debuginfo
jq
jq-doc
How to mitigate CVE-2026-40612
LANTIME Operating System Firmware (LTOS) - update to 7.10.013
jq (Debian package) - update to 1.7.1-6+deb13u3
jq-debugsource - update to 1.8.0-4
jq-help - update to 1.8.0-4
jq-devel - update to 1.8.0-4
jq-debuginfo - update to 1.8.0-4
jq - update to 1.8.0-4
jq-doc - update to 1.8.1-9
jq-devel - update to 1.8.1-9
jq - update to 1.8.1-9
jq - update to 1.8.2-4.fc45
External References
Related Security Bulletins
- Multiple vulnerabilities in jq
- Multiple vulnerabilities in Meinberg LANTIME firmware
- Debian update for jq
- Fedora 45 update for jq
- openEuler 24.03 LTS SP3 update for jq
- openEuler 24.03 LTS update for jq
- openEuler 22.03 LTS SP4 update for jq
- openEuler 20.03 LTS SP4 update for jq
- openEuler 24.03 LTS SP1 update for jq
- Anolis OS update for jq