CVE-2026-41257: jq - Buffer Overflow
- Cve: CVE-2026-41257
- Name: jq - Buffer Overflow
- 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.
- Impact: Attackers can cause memory corruption, potentially leading to denial of service or arbitrary code execution.
- Remediation: Update to a version later than 1.8.1 or the latest available version.
- Vulnerability type: buffer_overflow
- Vulnerability impact: denial_of_service, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- Epss score: 0.00142
- Epss percentile: 0.03452
- Assignee: [email protected]
- Published at: 2026-05-11T18:16:34Z
- Age in days: 197
- Modified at: 2026-10-26T18:10:00Z
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-41257
- Nvd status: analyzed
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-190 | Integer Overflow or Wraparound |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539 | nvd | 2026-05-11 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539 | nvd | Exploit, Mitigation, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| jqlang:jq | <= 1.8.1 | no | nvd | /v1/products/jqlang/jq |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| jqlang/jq | security_advisory | yes | /v1/repositories/jqlang/jq |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-05-11
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts