{"id":"CVE-2026-41257","aliases":["CVE-2026-41257"],"related":[],"kind":"vulnerability","state":"published","title":"jq: Signed-int overflow in `stack_reallocate` (jq VM stack)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"jq es un procesador JSON de línea de comandos. En 1.8.1 y versiones anteriores, la pila de datos de la VM de bytecode de jq rastrea su tamaño de asignación en un entero con signo. Cuando la pila crece más allá de ?1 GiB (a través de bifurcaciones de generador profundamente anidadas), la aritmética de duplicación desborda. El valor envuelto se pasa a realloc y luego se usa para un memmove con desplazamientos influenciados por el atacante.","source":"nvd"}],"published":"2026-05-11T17:14:32.579Z","modified":"2026-10-26T18:10:00.173Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":6.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-190","CWE-787"],"affected":[{"ranges":[{"version":"<= 1.8.1","status":"affected"}],"vendor":"jqlang","product":"jq","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"1.8.1"}],"vendor":"jqlang","product":"jq","cpe":"cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539","tags":["exploit","mitigation","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-11T19:25:55.560Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-41257","url":"https://www.cve.org/CVERecord?id=CVE-2026-41257","licence":"CVE Terms of Use","modified":"2026-05-11T19:25:59.800Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-41257","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41257","licence":"Public domain","modified":"2026-10-26T18:10:00.173Z"}],"updatedAt":"2026-11-25T22:59:21.224Z","epss":{"score":0.00142,"percentile":0.0369,"date":"2026-12-01T12:00:22.000Z"}}