CVE-2026-41257

Source
https://cve.org/CVERecord?id=CVE-2026-41257
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41257.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-41257
Aliases
  • GHSA-4jm8-m363-4539
Downstream
Related
Published
2026-05-11T17:14:32.579Z
Modified
2026-08-04T11:50:54.436954593Z
Severity
  • 6.4 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
jq: Signed-int overflow in `stack_reallocate` (jq VM stack)
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-190",
        "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41257.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/jqlang/jq

Affected ranges

Type
GIT
Repo
https://github.com/jqlang/jq
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "1.8.1"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

1.*
1.6rc2
jq-1.*
jq-1.0
jq-1.1
jq-1.2
jq-1.3
jq-1.4
jq-1.5rc1
jq-1.5rc2
jq-1.6
jq-1.6rc1
jq-1.7
jq-1.7.1
jq-1.7rc1
jq-1.7rc2
jq-1.8.0
jq-1.8.1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41257.json"