Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-49839: CWE-787: Out-of-bounds Write in jqlang jq

0
High
VulnerabilityCVE-2026-49839cvecve-2026-49839cwe-787
Published: 06/25/2026 (06/25/2026, 17:17:46 UTC)
Source: CVE Database V5
Vendor/Project: jqlang
Product: jq

Description

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.

CVSS v3.1

Score 7.1high

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H

Affected software

GitHub Actionsmore threats →ai
jqlang/jq
pkg:github/jqlang/jq
Affected versions
<1.8.2

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/25/2026, 17:45:54 UTC

Technical Analysis

CVE-2026-49839 is an out-of-bounds write vulnerability in jq prior to version 1.8.2. The flaw arises in the --rawfile processing path where jv_load_file(raw=1) appends file chunks to a string accumulator. When the string becomes too long, jv_string_append_buf() returns an invalid string object, but the loop continues appending to this invalid object. With assertions disabled, this results in a heap-buffer-overflow as detected by ASan. The vulnerability is addressed in jq 1.8.2.

Potential Impact

This vulnerability can cause a heap out-of-bounds write leading to potential memory corruption. The CVSS score of 7.1 indicates high severity with impact on integrity and availability. There is no indication of confidentiality impact. Exploitation requires local access with user interaction and low complexity.

Mitigation Recommendations

A fix is available in jq version 1.8.2. Users should upgrade to version 1.8.2 or later to remediate this vulnerability. No vendor advisory is provided, so patch status is based on the description stating the issue is fixed in 1.8.2.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-06-01T18:50:36.056Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a3d65db4853345fc13feb06

Added to database: 06/25/2026, 17:31:07 UTC

Last enriched: 06/25/2026, 17:45:54 UTC

Last updated: 06/25/2026, 18:31:23 UTC

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses