CVE-2026-40612

NameCVE-2026-40612
Descriptionjq is a command-line JSON processor. In 1.8.1 and earlier, jv_contains recurses into nested arrays/objects with no depth limit. With a sufficiently nested input structure (built programmatically with reduce, since the JSON parser caps at depth 10000), the C stack is exhausted.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1136445

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jq (PTS)bullseye1.6-2.1vulnerable
bullseye (security)1.6-2.1+deb11u2vulnerable
bookworm1.6-2.1+deb12u1vulnerable
trixie1.7.1-6+deb13u2vulnerable
forky, sid1.8.1-7fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jqsource(unstable)1.8.1-6unimportant1136445

Notes

https://github.com/jqlang/jq/security/advisories/GHSA-r7m6-x9c7-h69j
Crash in CLI tool, no security impact

Search for package or bug name: Reporting problems