Uncontrolled Recursion in jq - CVE-2026-40612

 

Uncontrolled Recursion in jq - CVE-2026-40612

Published: April 25, 2026 / Updated: August 19, 2026


Vulnerability identifier: #VU127880
CSH Severity: Low
CVSS v4: 6.8 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-40612
CWE-ID: CWE-674
Exploitation vector: Local access
Exploit availability: No public exploit available

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

jq
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

Install update from vendor's website.

jq - update to 1.8.2
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