jq is a command-line JSON processor. In 1.8.1 and earlier, the jq bytecode VM's data stack tracks its allocation size in a signed int. When the stack grows beyond ≈1 GiB (via deeply nested generator forks), the doubling arithmetic overflows. The wrapped value is passed to realloc and then used for a memmove with attacker-influenced offsets.
Fix
Patch, vendor advisory and mitigation references on NVD 2
- https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539 Exploit, Mitigation, Vendor Advisory
- https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539 Exploit, Mitigation, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 6.4 · jqlangNVD modified 2026-10-26 18:10
Affected (CPE criteria) 1
cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*
References 2
- https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539 Exploit, Mitigation, Vendor Advisory
- https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539 Exploit, Mitigation, Vendor Advisory