CVE catalog

CVE-2026-32316

jq is a command-line JSON processor. An integer overflow vulnerability exists through version 1.8.1 within the jvp_string_append() and jvp_string_copy_replace_bad functions, where concatenating string

[CVE catalog]

Severity
High · CVSS 8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.79% · Oct 25, 2026

jq is a command-line JSON processor. An integer overflow vulnerability exists through version 1.8.1 within the jvp_string_append() and jvp_string_copy_replace_bad functions, where concatenating strings with a combined length exceeding 2^31 bytes causes a 32-bit unsigned integer overflow in the buffer allocation size calculation, resulting in a drastically undersized heap buffer. Subsequent memory copy operations then write the full string data into this undersized buffer, causing a heap buffer overflow classified as CWE-190 (Integer Overflow) leading to CWE-122 (Heap-based Buffer Overflow). Any system evaluating untrusted jq queries is affected, as an attacker can crash the process or potentially achieve further exploitation through heap corruption by crafting queries that produce extremely large strings. The root cause is the absence of string size bounds checking, unlike arrays and objects which already have size limits. The issue has been addressed in commit e47e56d226519635768e6aab2f38f0ab037c09e5.

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+deb12u2vulnerable
Debianjqbookworm-security1.6-2.1+deb12u3fixed
CpejqNot reported1.7.1-3ubuntu0.24.04.2fixed
Cpelibjq-devNot reported1.7.1-3ubuntu0.24.04.2fixed
Cpelibjq1Not reported1.7.1-3ubuntu0.24.04.2fixed
CpejqNot reportedNot reportedunknown
CpejqNot reported1.6-2.1+deb12u2fixed
CpejqNot reportedNot reportedunknown
Alpinejq3.221.8.2-r0fixed
Alpinejq3.231.8.2-r0fixed
Alpinejq3.241.8.2-r0fixed
Ubuntujqpro1.5+dfsg-2build1vulnerable
Ubuntujqpro1.6-1vulnerable
Ubuntujqpro1.6-1ubuntu0.20.04.1vulnerable
Ubuntujqpro1.6-1ubuntu0.20.04.1+esm1vulnerable
Ubuntujqpro1.6-1ubuntu0.20.04.1+esm2fixed
Ubuntujq22.041.6-2.1ubuntu2vulnerable
Ubuntujq22.041.6-2.1ubuntu3vulnerable
Ubuntujq22.041.6-2.1ubuntu3.1vulnerable
Ubuntujq22.041.6-2.1ubuntu3.2fixed
Ubuntujq24.041.6-3vulnerable
Ubuntujq24.041.7-1vulnerable
Ubuntujq24.041.7.1-2vulnerable
Ubuntujq24.041.7.1-3vulnerable
Ubuntujq24.041.7.1-3build1vulnerable
Ubuntujq24.041.7.1-3ubuntu0.24.04.1vulnerable
Ubuntujq24.041.7.1-3ubuntu0.24.04.2fixed
Ubuntujq25.101.7.1-3ubuntu1vulnerable
Ubuntujq25.101.7.1-6ubuntu1vulnerable
Ubuntujq25.101.8.1-3ubuntu1vulnerable
Ubuntujq25.101.8.1-3ubuntu1.1fixed
Susejqlinux micro 6.11.7.1-slfo.1.1_3.1fixed
Susejqlinux enterprise micro 5.31.6-150000.3.20.1fixed
Susejqlinux enterprise micro 5.41.6-150000.3.20.1fixed
Susejqlinux enterprise micro 5.51.6-150000.3.20.1fixed
Susejqlinux enterprise module for basesystem 15 sp71.6-150000.3.20.1fixed
Opensusejqtumbleweed1.8.1-3.1fixed
Ubuntujqpro1.5+dfsg-2build1vulnerable
Ubuntujqpro1.6-1vulnerable
Ubuntujqpro1.6-1ubuntu0.20.04.1vulnerable
Ubuntujqpro1.6-1ubuntu0.20.04.1+esm1vulnerable
Ubuntujqpro1.6-1ubuntu0.20.04.1+esm2fixed
Ubuntujq22.041.6-2.1ubuntu2vulnerable
Ubuntujq22.041.6-2.1ubuntu3vulnerable
Ubuntujq22.041.6-2.1ubuntu3.1vulnerable
Ubuntujq22.041.6-2.1ubuntu3.2fixed
Ubuntujq24.041.6-3vulnerable
Ubuntujq24.041.7-1vulnerable
Ubuntujq24.041.7.1-2vulnerable
Ubuntujq24.041.7.1-3vulnerable
Ubuntujq24.041.7.1-3build1vulnerable
Ubuntujq24.041.7.1-3ubuntu0.24.04.1vulnerable
Ubuntujq24.041.7.1-3ubuntu0.24.04.2fixed
Ubuntujq25.101.7.1-3ubuntu1vulnerable
Ubuntujq25.101.7.1-6ubuntu1vulnerable
Ubuntujq25.101.8.1-3ubuntu1vulnerable
Ubuntujq25.101.8.1-3ubuntu1.1fixed
Ubuntujq26.041.8.1-3ubuntu1vulnerable
Ubuntujq26.041.8.1-4ubuntu1vulnerable
Ubuntujq26.041.8.1-4ubuntu2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianjqsourcesid1.8.1-5not yet assignedNot reported[1133921]
Debianjqsourceforky1.8.1-5not yet assignedNot reported[1133921]
Debianjqsourcetrixie1.7.1-6+deb13u3not yet assignedNot reported[1133921]
Debianjqsourcebookworm1.6-2.1+deb12u3not yet assignedNot reported[1133921]
CpejqcpeNot reported1.7.1-3ubuntu0.24.04.2Not reportedNot reportedNot reported
Cpelibjq-devcpeNot reported1.7.1-3ubuntu0.24.04.2Not reportedNot reportedNot reported
Cpelibjq1cpeNot reported1.7.1-3ubuntu0.24.04.2Not reportedNot reportedNot reported
CpejqcpeNot reported1.6-2.1+deb12u2Not reportedNot reportedNot reported
Alpinejqapk3.221.8.2-r0Not reportedALPINE-CVE-2026-32316Not reported
Alpinejqapk3.231.8.2-r0Not reportedALPINE-CVE-2026-32316Not reported
Alpinejqapk3.241.8.2-r0Not reportedALPINE-CVE-2026-32316Not reported
Ubuntujqdebpro1.6-1ubuntu0.20.04.1+esm2Not reportedUSN-8202-1Not reported
Ubuntujqdeb22.041.6-2.1ubuntu3.2Not reportedUSN-8202-1Not reported
Ubuntujqdeb24.041.7.1-3ubuntu0.24.04.2Not reportedUSN-8202-1Not reported
Ubuntujqdeb25.101.8.1-3ubuntu1.1Not reportedUSN-8202-1Not reported
Susejqrpmlinux micro 6.11.7.1-slfo.1.1_3.1Not reportedSUSE-SU-2026:22664-1Not reported
Susejqrpmlinux enterprise micro 5.31.6-150000.3.20.1Not reportedSUSE-SU-2026:2983-1Not reported
Susejqrpmlinux enterprise micro 5.41.6-150000.3.20.1Not reportedSUSE-SU-2026:2983-1Not reported
Susejqrpmlinux enterprise micro 5.51.6-150000.3.20.1Not reportedSUSE-SU-2026:2983-1Not reported
Susejqrpmlinux enterprise module for basesystem 15 sp71.6-150000.3.20.1Not reportedSUSE-SU-2026:2983-1Not reported
Opensusejqrpmtumbleweed1.8.1-3.1Not reportedOPENSUSE-SU-2026:10850-1Not reported
Ubuntujqdebpro1.6-1ubuntu0.20.04.1+esm2Not reportedUBUNTU-CVE-2026-32316Not reported
Ubuntujqdeb22.041.6-2.1ubuntu3.2Not reportedUBUNTU-CVE-2026-32316Not reported
Ubuntujqdeb24.041.7.1-3ubuntu0.24.04.2Not reportedUBUNTU-CVE-2026-32316Not reported
Ubuntujqdeb25.101.8.1-3ubuntu1.1Not reportedUBUNTU-CVE-2026-32316Not reported
Ubuntujqdeb26.041.8.1-4ubuntu2Not reportedUBUNTU-CVE-2026-32316Not reported

[Debian bug #1133921]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

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

      Affected · Fixed: 1.6-2.1+deb12u3

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

    • 1.6-2.1+deb12u2 · arm64 · bookworm

      Affected · Fixed: 1.6-2.1+deb12u3

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

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

      Affected · Fixed: 1.6-2.1+deb12u3

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

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

      Affected · Fixed: 1.6-2.1+deb12u3

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

  • [libjq1]Affected

    Source package: [jq]

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

      Affected · Fixed: 1.6-2.1+deb12u3

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

    • 1.6-2.1+deb12u2 · arm64 · bookworm

      Affected · Fixed: 1.6-2.1+deb12u3

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

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

      Affected · Fixed: 1.6-2.1+deb12u3

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

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

      Affected · Fixed: 1.6-2.1+deb12u3

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

  • [libjq-dev]Affected

    Source package: [jq]

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

      Affected · Fixed: 1.6-2.1+deb12u3

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

    • 1.6-2.1+deb12u2 · arm64 · bookworm

      Affected · Fixed: 1.6-2.1+deb12u3

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

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

      Affected · Fixed: 1.6-2.1+deb12u3

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

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

      Affected · Fixed: 1.6-2.1+deb12u3

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

[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.1-3.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.1-3.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.1-3.1

      nvd · jq · opensuse · tumbleweed

Observed:

References