Skip to main content

jq libjq EUVDEUVD-2026-22128

| CVE-2026-39979 MEDIUM
Out-of-bounds Read (CWE-125)
2026-04-13 GitHub_M
6.9
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Send malformed JSON to libjq-embedding network service
  2. Delivery
    jv_parse_sized() called with non-NUL-terminated buffer
  3. Exploit
    Error handler formats buffer with %s past declared length
  4. Execution
    Out-of-bounds read into adjacent process memory
  5. Impact
    Attacker receives leaked memory in error response or process crashes

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two conditions to be met simultaneously: (1) the target application must embed libjq and call jv_parse_sized() - not jv_parse() - with a buffer that is not NUL-terminated at position length, and (2) the attacker must be able to supply malformed JSON to that code path. Standard jq CLI invocations use NUL-terminated C strings and are not the primary risk surface. Applications that read JSON from network sockets or HTTP request bodies and pass raw byte slices to jv_parse_sized() without appending a NUL byte are the exploitable subset. CVSS PR:N confirms no authentication is required at the parsing layer, but only if the application's network endpoint itself is unauthenticated. Process crash (availability impact) occurs if the OOB read hits an unmapped memory page; memory disclosure (confidentiality impact) occurs if adjacent mapped memory is read and returned in an error response.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) assigns a 6.9 score reflecting network-reachable, unauthenticated, zero-complexity exploitation - a high exploitability profile. However, EPSS at 0.04% (13th percentile) strongly contradicts a 'high urgency' reading, indicating the vulnerability sees little real-world scanning or exploitation activity. No CISA KEV listing is present, consistent with the low EPSS. The SSVC signals create a nuanced picture: Automatable=Yes (mass-scan tools can probe services) and Exploitation=POC (a proof-of-concept exists), but Technical Impact=Partial (memory disclosure, not RCE). The practical blast radius is therefore bounded: risk is highest for network services that embed libjq and expose a JSON parsing endpoint to untrusted input without NUL-terminating buffers. The jq CLI tool, which typically handles shell-supplied or file-supplied NUL-terminated strings, is less directly exposed. Multiple Red Hat RHSA errata and Ubuntu USN-8202-1 signal that downstream distributors consider this a genuine patching priority despite the low EPSS.

Exploit ScenarioDerived

An attacker sends a crafted malformed JSON payload to a network service that embeds libjq and calls jv_parse_sized() with a non-NUL-terminated buffer. The parsing error triggers the vulnerable error-formatting path, which reads past the buffer boundary using %s, potentially leaking adjacent heap or stack memory - including session tokens, keys, or internal state - back to the attacker, or crashing the process if the read hits an unmapped page. Because SSVC marks this as automatable, an adversary can send bulk probes to discover exposed services without manual targeting.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Out-of-bounds read in libjq's jv_parse_sized() API exposes any embedding application to memory disclosure or process termination when processing malformed JSON in non-NUL-terminated buffers. All jq releases before commit 2f09060afab23fe9390cce7cb860b10416e1bf5f are affected per CPE cpe:2.3:a:jqlang:jq:*:*:*:*:*:*:*:*. SSVC marks the flaw as automatable with a POC noted, though EPSS sits at only 0.04% and CISA KEV has not listed it, indicating no confirmed widespread exploitation at time of analysis.

RemediationAI

The primary fix is upgrading to the patched jq build containing commit 2f09060afab23fe9390cce7cb860b10416e1bf5f (https://github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5f). Red Hat users should apply the applicable RHSA errata for their RHEL version (RHSA-2026:16252 through RHSA-2026:18048). Ubuntu users should apply USN-8202-1 via standard package updates. No exact tagged release version is independently confirmed in the input data - the fix is currently identified only by commit hash, so downstream distribution packages (RHEL, Ubuntu) are the most reliable upgrade path for production systems. As a short-term compensating control, applications using libjq directly can ensure all buffers passed to jv_parse_sized() are NUL-terminated, which prevents the out-of-bounds read at the call site without patching the library; the trade-off is that this requires application-level code changes and auditing all libjq call sites. Restricting untrusted JSON input at an API gateway or WAF layer reduces exposure surface for network-facing services but does not eliminate the vulnerability.

Affected VersionsENISA

jq < 2f09060afab23fe9390cce7cb860b10416e1bf5f

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause (CWE-125, Out-of-bounds Read) is a format-string mismatch in src/jv_parse.c. The public API jv_parse_sized() accepts a counted buffer with an explicit integer length parameter, designed for callers who cannot guarantee NUL-termination. However, its error-handling branch passed the raw pointer to jv_string_fmt() using the %s specifier, which reads until it encounters a NUL byte regardless of the provided length. When a caller supplies a buffer that is exactly length bytes long with no trailing NUL - a legitimate use of the sized API - and the JSON is malformed, the error-construction code walks past the buffer boundary. The one-line fix in commit 2f09060 changes the format specifier from %s to %.*s and supplies the length argument, bounding the read to the declared buffer size. The flaw is exploitable through any libjq consumer that feeds untrusted, non-NUL-terminated data to jv_parse_sized(), which includes network-facing services that embed libjq for JSON validation or transformation.

Know when Jq gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network-reachable via embedding in services, no auth required; C:L for partial memory disclosure, A:L for potential crash, I:N as no data modification is possible.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 6.1 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Red Hat 8.2 HIGH

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Patch released
Apr 23, 2026 - 16:50 nvd
Patch available
Patch available
Apr 16, 2026 - 05:29 EUVD
2f09060afab23fe9390cce7cb860b10416e1bf5f
CVE Published
Apr 13, 2026 - 22:18 nvd
MEDIUM 6.9

DescriptionCVE.org

jq is a command-line JSON processor. In commits before 2f09060afab23fe9390cce7cb860b10416e1bf5f, the jv_parse_sized() API in libjq accepts a counted buffer with an explicit length parameter, but its error-handling path formats the input buffer using %s in jv_string_fmt(), which reads until a NUL terminator is found rather than respecting the caller-supplied length. This means that when malformed JSON is passed in a non-NUL-terminated buffer, the error construction logic performs an out-of-bounds read past the end of the buffer. The vulnerability is reachable by any libjq consumer calling jv_parse_sized() with untrusted input, and depending on memory layout, can result in memory disclosure or process termination. The issue has been patched in commit 2f09060afab23fe9390cce7cb860b10416e1bf5f.

Threat Intelligence Overview

EPSS Score
0.0%
Top 87% exploitable
Prevalence
Medium
widely used CLI JSON processor embedded in many scripting and CI/CD pipelines
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Jq

View all
CVE-2024-53427 HIGH POC
8.1 Feb 26

decNumberCopy in decNumber.c in jq through 1.7.1 does not properly consider that NaN is interpreted as numeric, which ha

CVE-2015-8863 CRITICAL
9.8 May 06

Off-by-one error in the tokenadd function in jv_parse.c in jq allows remote attackers to cause a denial of service (cras

CVE-2025-48060 HIGH POC
7.7 May 21

jq is a command-line JSON processor. Rated high severity (CVSS 7.7), this vulnerability is remotely exploitable, no auth

CVE-2016-4074 HIGH POC
7.5 May 06

The jv_dump_term function in jq 1.5 allows remote attackers to cause a denial of service (stack consumption and applicat

CVE-2023-49355 HIGH POC
7.5 Dec 11

decToString in decNumber/decNumber.c in jq 88f01a7 has a one-byte out-of-bounds write via the " []-1.2e-1111111111" inpu

CVE-2023-50268 MEDIUM POC
5.5 Dec 13

jq is a command-line JSON processor. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Publ

CVE-2023-50246 MEDIUM POC
5.5 Dec 13

jq is a command-line JSON processor. Rated medium severity (CVSS 5.5), this vulnerability is low attack complexity. Publ

CVE-2026-32316 HIGH
7.5 Apr 13

A heap-based buffer overflow in jqlang/jq through version 1.8.1 allows remote, unauthenticated attackers to crash - and

CVE-2026-49839 HIGH
7.1

Out-of-bounds write in the jq command-line JSON processor (CWE-787) lets a crafted JSON input corrupt memory when parsed

CVE-2026-54679 MEDIUM
6.9

jq, the command-line JSON processor, was patched in Alpine Linux with package version 1.8.2-r0. The specific vulnerabili

CVE-2026-47770 MEDIUM
6.8

jq on Alpine Linux was patched in package version 1.8.2-r0, addressing an unspecified vulnerability. The nature of the f

CVE-2026-41257 MEDIUM
6.4 May 11

Integer overflow in jq's bytecode VM data stack allocation tracking allows local attackers to corrupt heap memory and ac

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Fixed
SLES15-SP6-CHOST-BYOS Fixed
SLES15-SP6-CHOST-BYOS-Aliyun Fixed
SLES15-SP6-CHOST-BYOS-Azure Fixed
SLES15-SP6-CHOST-BYOS-EC2 Fixed

References

Advisories & patches
ADVISORY https://ubuntu.com/security/notices/USN-8202-1 ADVISORY https://vuldb.com/vuln/357232 REF https://access.redhat.com/errata/RHSA-2026:16252 REF https://access.redhat.com/errata/RHSA-2026:16692 REF https://access.redhat.com/errata/RHSA-2026:16693 REF https://access.redhat.com/errata/RHSA-2026:18040 REF https://access.redhat.com/errata/RHSA-2026:18042 REF https://access.redhat.com/errata/RHSA-2026:18043 REF https://access.redhat.com/errata/RHSA-2026:18044 REF https://access.redhat.com/errata/RHSA-2026:18045 REF https://access.redhat.com/errata/RHSA-2026:18046 REF https://access.redhat.com/errata/RHSA-2026:18047 REF https://access.redhat.com/errata/RHSA-2026:18048 REF https://access.redhat.com/errata/RHSA-2026:19151 REF https://access.redhat.com/errata/RHSA-2026:19365 REF https://access.redhat.com/errata/RHSA-2026:23233 REF https://access.redhat.com/errata/RHSA-2026:23245 REF https://access.redhat.com/errata/RHSA-2026:25044 REF https://access.redhat.com/errata/RHSA-2026:25096 REF https://access.redhat.com/errata/RHSA-2026:25181 REF https://access.redhat.com/errata/RHSA-2026:26528 REF https://access.redhat.com/errata/RHSA-2026:26542 REF https://access.redhat.com/errata/RHSA-2026:28887 REF https://access.redhat.com/errata/RHSA-2026:30078 REF https://access.redhat.com/errata/RHSA-2026:30087 REF https://access.redhat.com/errata/RHSA-2026:30088 REF https://access.redhat.com/errata/RHSA-2026:30089 REF https://access.redhat.com/errata/RHSA-2026:34098 REF https://access.redhat.com/errata/RHSA-2026:8579 REF https://access.redhat.com/security/cve/CVE-2026-39979 REF https://bugzilla.redhat.com/show_bug.cgi?id=2458077 REF https://github.com/jqlang/jq/commit/2f09060afab23fe9390cce7cb860b10416e1bf5f REF https://github.com/jqlang/jq/security/advisories/GHSA-2hhh-px8h-355p REF https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-39979.json

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy