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…
EPSS 0.1%top 95%

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: 07/02/2026, 23:37:12 UTC

Technical Analysis

CVE-2026-49839 is an out-of-bounds write vulnerability (CWE-787) in jq prior to version 1.8.2. When jq processes files with the --rawfile option, it appends file chunks to a string accumulator. If 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. The vulnerability allows an attacker to cause invalid memory writes, potentially leading to denial of service or other impacts. This flaw is fixed in jq 1.8.2.

Potential Impact

The vulnerability can cause heap out-of-bounds writes when processing crafted files with jq's --rawfile option, leading to potential application crashes or memory corruption. The CVSS score of 7.1 indicates high severity with impacts on integrity and availability. There is no indication of confidentiality impact. No known exploits in the wild have been reported.

Mitigation Recommendations

Upgrade jq to version 1.8.2 or later, where this vulnerability is fixed. No other mitigation or workaround is indicated. Patch status is not explicitly stated but the fix is available 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: 07/02/2026, 23:37:12 UTC

Last updated: 08/09/2026, 12:41:11 UTC

Views: 88

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