CVE catalog

CVE-2026-47770

jq is a command-line JSON processor. Prior to 1.8.2, comparing two sufficiently deeply nested arrays with the == operator exhausts the C stack on jq's ordinary command-line surface, resulting in denia

[CVE catalog]

Severity
Medium · CVSS 6.8CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.15% · Oct 25, 2026

jq is a command-line JSON processor. Prior to 1.8.2, comparing two sufficiently deeply nested arrays with the == operator exhausts the C stack on jq's ordinary command-line surface, resulting in denial of service via stack exhaustion (uncontrolled recursion). The crash occurs in jq's recursive structural comparison code, with the recursion repeating through jvp_array_equal() and jv_equal() in src/jv.c when comparing deeply nested arrays; a nearby sort comparator path through jv_cmp() in src/jv_aux.c overflows the stack at a larger nesting depth from the same missing recursion guard. Anyone running jq comparisons on attacker-controlled deeply nested JSON values, or embedding jq in a context where untrusted data can reach the == comparison path, is affected. This vulnerability is fixed in 1.8.2.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianjqsid1.8.2-1fixed
Debianjqforky1.8.2-1fixed
Debianjqtrixie1.7.1-6+deb13u3fixed
Debianjqtrixie-security1.7.1-6+deb13u4fixed
Debianjqbookworm1.6-2.1+deb12u2fixed
Debianjqbookworm-security1.6-2.1+deb12u3fixed
CpejqNot reported1.8.2fixed
CpejqNot reported1.6-2.1+deb12u2fixed
Alpinejq3.221.8.2-r0fixed
Alpinejq3.231.8.2-r0fixed
Alpinejq3.241.8.2-r0fixed
Opensusejqtumbleweed1.8.2-1.1fixed
CpejqNot reported1.8.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianjqsourcesid1.8.1-7not yet assignedNot reportedNot reported
Debianjqsourceforky1.8.1-7not yet assignedNot reportedNot reported
Debianjqsourcetrixie1.7.1-6+deb13u3not yet assignedNot reportedNot reported
Debianjqsourcebookworm1.6-2.1+deb12u2not yet assignedNot reportedNot reported
CpejqcpeNot reported1.8.2Not reportedNot reportedNot reported
CpejqcpeNot reported1.6-2.1+deb12u2Not reportedNot reportedNot reported
Alpinejqapk3.221.8.2-r0Not reportedALPINE-CVE-2026-47770Not reported
Alpinejqapk3.231.8.2-r0Not reportedALPINE-CVE-2026-47770Not reported
Alpinejqapk3.241.8.2-r0Not reportedALPINE-CVE-2026-47770Not reported
Opensusejqrpmtumbleweed1.8.2-1.1Not reportedOPENSUSE-SU-2026:11133-1Not reported
CpejqcpeNot reported1.8.2Not reportedNVD-CVE-2026-47770Not reported

OpenFactory catalog packages

[Debian 13 (Trixie)]

  • [jq]Affected
    Details (5)
    • 1.7.1-6+deb13u2 · amd64 · trixie

      Affected · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u2 · arm64 · trixie

      Affected · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u3 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u3 · arm64 · trixie-security

      Fixed · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u4 · amd64 · trixie-security

      Fixed · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

  • [libjq1]Affected

    Source package: [jq]

    Details (5)
    • 1.7.1-6+deb13u2 · amd64 · trixie

      Affected · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u2 · arm64 · trixie

      Affected · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u3 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u3 · arm64 · trixie-security

      Fixed · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u4 · amd64 · trixie-security

      Fixed · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

  • [libjq-dev]Affected

    Source package: [jq]

    Details (5)
    • 1.7.1-6+deb13u2 · amd64 · trixie

      Affected · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u2 · arm64 · trixie

      Affected · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u3 · amd64 · trixie-security · Historical version

      Fixed · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u3 · arm64 · trixie-security

      Fixed · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

    • 1.7.1-6+deb13u4 · amd64 · trixie-security

      Fixed · Fixed: 1.7.1-6+deb13u3

      nvd · jq · debian · 13

[openSUSE Tumbleweed]

  • [libjq1]Unknown

    Source package: [jq]

    Details (1)
    • 1.8.2-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 1.8.2-1.1

      Version impact unknown

      nvd · jq · opensuse · tumbleweed

  • [libjq-devel]Unknown

    Source package: [jq]

    Details (1)
    • 1.8.2-1.3 · x86_64 · tumbleweed

      Unknown · Fixed: 1.8.2-1.1

      Version impact unknown

      nvd · jq · opensuse · tumbleweed

  • [jq]Fixed

    Source package: [jq]

    Details (1)
    • 1.8.2-1.3 · x86_64 · tumbleweed

      Fixed · Fixed: 1.8.2-1.1

      nvd · jq · opensuse · tumbleweed

[Debian 12 (Bookworm)]

  • [jq]Fixed
    Details (4)
    • 1.6-2.1+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

    • 1.6-2.1+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

    • 1.6-2.1+deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

    • 1.6-2.1+deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

  • [libjq1]Fixed

    Source package: [jq]

    Details (4)
    • 1.6-2.1+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

    • 1.6-2.1+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

    • 1.6-2.1+deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

    • 1.6-2.1+deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

  • [libjq-dev]Fixed

    Source package: [jq]

    Details (4)
    • 1.6-2.1+deb12u2 · amd64 · bookworm

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

    • 1.6-2.1+deb12u2 · arm64 · bookworm

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

    • 1.6-2.1+deb12u2 · amd64 · bookworm-security

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

    • 1.6-2.1+deb12u2 · arm64 · bookworm-security

      Fixed · Fixed: 1.6-2.1+deb12u2

      nvd · jq · debian · bookworm; nvd · jq · debian · 12

Observed:

References