CVE catalog

CVE-2026-49839

jq is a command-line JSON processor. Prior to 1.8.2,` jq --rawfile` can turn a handled oversized-string error into invalid-state reuse and a real heap out-of-bounds write in assertion-disabled builds.

[CVE catalog]

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

jq is a command-line JSON processor. Prior to 1.8.2,` jq --rawfile` can turn a handled oversized-string error into invalid-state reuse and a real heap out-of-bounds write in assertion-disabled builds. When jv_load_file(raw=1) reads an attacker-controlled file, it repeatedly appends file chunks to the same jv string accumulator. Once jv_string_append_buf() returns jv_invalid_with_msg("String too long"), the raw-file loop does not stop. If the file contains at least one more byte, the next loop iteration appends a new chunk to an object that is already invalid. With assertions enabled this aborts in jvp_string_ptr(). With assertions disabled, the invalid object is interpreted as a string object and ASan reports heap-buffer-overflow. 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
CpejqNot reported1.8.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianjqsourcesid1.8.1-8not yet assignedNot reportedNot reported
Debianjqsourceforky1.8.1-8not 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-49839Not reported
Alpinejqapk3.231.8.2-r0Not reportedALPINE-CVE-2026-49839Not reported
Alpinejqapk3.241.8.2-r0Not reportedALPINE-CVE-2026-49839Not reported
CpejqcpeNot reported1.8.2Not reportedNVD-CVE-2026-49839Not 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

[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