CVE-2026-41257

MEDIUM CVSS 4.0: 6.4 EPSS 0.14%
Updated Oct 26, 2026
Jqlang
Parameter Value
CVSS 6.4 (MEDIUM)
Affected Versions before 1.8.1
Type CWE-787 (Out-of-bounds Write), CWE-190 (Integer Overflow)
Vendor Jqlang
Public PoC No

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.

Attack Parameters

Attack Vector
Local
Requires local access
Attack Complexity
High
Difficult to exploit
Attack Requirements
None
No additional conditions
Privileges Required
None
No privileges needed
User Interaction
Passive
Minimal interaction

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
High
Complete data modification
Availability
High
Complete denial of service

CVSS Vector v4.0

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Jqlang Jq
cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*
— <= 1.8.1