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
ALPINE (1)
AZL (1)
BELL (1)
CLEANSTART (1)
CLSA (2)
DEBIAN (1)
ECHO (1)
MGASA (1)
OESA (5)
openSUSE (2)
RHSA (1)
SUSE (5)
UBUNTU (1)
Related
Published
2026-05-11T17:14:32Z
Modified
2026-10-28T02:30:49Z
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
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-190",
        "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41257.json"
}
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
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "last_affected": "1.8.1"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "cpe": "cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "last_affected": "1.8.1"
                }
            ],
            "source": "CPE_RANGE"
        }
    ]
}

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"