cve.bz

CVE-2026-49839 jqlang jq: Out-of-bounds Write

7.1 highExploit referenceEPSS 0.2%

High (7.1) in jqlang jq. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 6th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-06-25. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-49839 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-49839?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-49839?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-49839 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-49839

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-49839](https://cve.bz/cve/badge/CVE-2026-49839.svg)](https://cve.bz/cve/CVE-2026-49839)

HTML:

<a href="https://cve.bz/cve/CVE-2026-49839"><img src="https://cve.bz/cve/badge/CVE-2026-49839.svg" alt="CVE-2026-49839"></a>

Affected

Versions

From the NVD's CPE matches.

ProductAffected
jqlang:jqbefore 1.8.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12jq1.6-2.1+deb12u2DEBIAN-CVE-2026-49839
Debian13jq1.7.1-6+deb13u3DEBIAN-CVE-2026-49839
Debian14jq1.8.1-8DEBIAN-CVE-2026-49839
Ubuntu22.04:LTS, 24.04:LTS, 25.10 and 6 morejqno fix listedUBUNTU-CVE-2026-49839
Red Hathummingbird:1jq, jq-devel0:1.8.2-0.1.hum1RHSA-2026:29986
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 11 morejq1.7.1-150000.3.25.1SUSE-SU-2026:4275-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0jq1.7.1-160000.4.1SUSE-SU-2026:22637-1
SUSELinux Micro 6.0jq1.7.1-1.1SUSE-SU-2026:23873-1
SUSELinux Micro 6.1jq1.7.1-slfo.1.1_4.1SUSE-SU-2026:22900-1
SUSELinux Micro 6.2jq1.7.1-160000.4.1SUSE-SU-2026:22597-1
openSUSELeap 16.0jq1.7.1-160000.4.1openSUSE-SU-2026:21318-1
openSUSETumbleweedjq1.8.2-1.1openSUSE-SU-2026:11133-1
Alpinev3.21, v3.22, v3.23 and 1 morejq1.8.2-r0ALPINE-CVE-2026-49839
Azure Linux3jq1.7.1-8AZL-90267
Alpaquitastreamjq1.8.2-r0BELL-CVE-2026-49839

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A flaw was found in jq, a command-line JSON processor. When using the `--rawfile` option to process an oversized file, jq can trigger a heap out-of-bounds write in assertion-disabled builds (typical for release builds). Exploitation requires a local user to explicitly process an attacker-controlled file. With assertions enabled, the process aborts instead of corrupting memory.

Red Hat's mitigation

Avoid using `jq --rawfile` with untrusted or user-controlled files.

ProductPackageStateAdvisory
Red Hat Hardened Imagesjq-main-1.8.2-0.1.hum1Fixed 2026-06-25RHSA-2026:29986
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/controller-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-26/hub-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/controller-rhel9Fix deferred
Red Hat Ansible Automation Platform 2ansible-automation-platform-27/hub-rhel9Fix deferred
Red Hat Ansible Automation Platform 2automation-controllerFix deferred
Red Hat Ceph Storage 4jqFix deferred
Red Hat Enterprise Linux 10jqFix deferred
Red Hat Enterprise Linux 8jqFix deferred
Red Hat Enterprise Linux 9jqFix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Fix deferred
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Fix deferred
Red Hat OpenShift Container Platform 5openshift/ose-rhel-coreos-9Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-49839.

References

Check your stackJSON