CVEvulnerability
CVE-2026-41257
6.4 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2026-05-11
- Last modified
- 2026-10-26
- Assigner
- [email protected]
- CVSS 4.0 ([email protected])
- 6.4 MEDIUM — CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-190, CWE-787
Description
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.
Affected configurations
• jqlang jq (<= 1.8.1)
Related
References
- 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