Integer overflow in jq - CVE-2026-41257

 

Integer overflow in jq - CVE-2026-41257

Published: April 25, 2026


Vulnerability identifier: #VU127879
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-41257
CWE-ID: CWE-190
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: stedolan (Stephen Dolan)
Affected software:
jq

Detailed vulnerability description

The vulnerability allows a local user to cause a denial of service.

The vulnerability exists due to integer overflow in stack_reallocate in the jq VM stack when processing deeply nested generator forks. A local user can supply crafted jq input to trigger signed integer overflow and abort the process to cause a denial of service.

In the observed case, the wrapped allocation size causes memory allocation failure and process abort. A small positive truncation may also lead to a wild memmove write before the buffer.


How to mitigate CVE-2026-41257

Cybersecurity Help is currently unaware of any official solution to address this vulnerability.

Sources