CVE Explorer
CVE-2026-41257
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 2 assertions
{"cweId":"CWE-787","description":"CWE-787: Out-of-bounds Write","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:060dafdce707535a1c0362a61010c3020a10aa8d93b589270a993aee99c56b63 · sha256:dc55aa1037f43c1e… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:060dafdce707535a1c0362a61010c3020a10aa8d93b589270a993aee99c56b63 · sha256:dc55aa1037f43c1e… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"jq","vendor":"jqlang","versions":[{"status":"affected","version":"<= 1.8.1"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:060dafdce707535a1c0362a61010c3020a10aa8d93b589270a993aee99c56b63 · sha256:dc55aa1037f43c1e… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackRequirements":"NONE","attackVector":"LOCAL","baseScore":6.4,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"HIGH","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH"},"metric_type":"cvssV4_0"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:060dafdce707535a1c0362a61010c3020a10aa8d93b589270a993aee99c56b63 · sha256:dc55aa1037f43c1e… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
2 source assertions{"cweId":"CWE-787","description":"CWE-787: Out-of-bounds Write","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:060dafdce707535a1c0362a61010c3020a10aa8d93b589270a993aee99c56b63 · sha256:dc55aa1037f43c1e… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:060dafdce707535a1c0362a61010c3020a10aa8d93b589270a993aee99c56b63 · sha256:dc55aa1037f43c1e… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539","tags":["x_refsource_CONFIRM"],"url":"https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:060dafdce707535a1c0362a61010c3020a10aa8d93b589270a993aee99c56b63 · sha256:dc55aa1037f43c1e… · /containers/cna/references/0
{"tags":["exploit"],"url":"https://github.com/jqlang/jq/security/advisories/GHSA-4jm8-m363-4539"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:060dafdce707535a1c0362a61010c3020a10aa8d93b589270a993aee99c56b63 · sha256:dc55aa1037f43c1e… · /containers/adp/0/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.