CVE-2026-41257CWE-190CWE-787

jq: Signed-int overflow in `stack_reallocate` (jq VM stack)

Medium · published May 11, 2026

CVSS v4.0
6.4
EPSS
0%
Percentile
2.9
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.4 · MEDIUM
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
EPSS
0.00137 · 2.9th percentile
Weaknesses
CWE-190 · Integer Overflow or Wraparound; CWE-787 · Out-of-bounds Write
Published
2026-05-11T17:14Z
EPSS history
Timeline
  • 11 MAY 17:14Z
    jq: Signed-int overflow in `stack_reallocate` (jq VM stack)
    cvelistv5