Skip to main content

zrok CVE-2026-40303

HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-04-16 https://github.com/openziti/zrok GHSA-cpf9-ph2j-ccr9
7.5
CVSS 3.1 · Vendor: https://github.com/openziti/zrok
View

Attack ChainAIDerived

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

  1. Access
    Identify OAuth-protected zrok proxy share
  2. Delivery
    Derive session cookie name from OAuth redirect
  3. Exploit
    Send HTTP request with crafted stripe count
  4. Execution
    Trigger unbounded make([]string) allocation pre-auth
  5. Persist
    Exhaust heap, OOM-kill proxy process
  6. Impact
    Deny service to all shares

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

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

Exploitation Conditions

The target must be a zrok deployment serving at least one OAuth-protected proxy share via publicProxy or dynamicProxy - that is the only configuration that reaches GetSessionCookie. No authentication, session, or user interaction is required because the parsing occurs before JWT validation. The only knowledge prerequisite is the session cookie name, which is publicly derivable from any OAuth redirect the share issues. Limiting factors: deployments that do not expose OAuth proxy shares are not affected, and impact is availability-only (no data disclosure or code execution); the crash is confined to the affected proxy process (Scope: Unchanged).

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, 7.5) is internally consistent with the description: network-reachable, no auth, no user interaction, availability-only impact. CISA SSVC aligns (Automatable: yes, Technical Impact: partial), and 'partial' fits an availability-only crash rather than full compromise. The counter-signals are the low EPSS (0.06%, 18th percentile), no KEV listing, and no public exploit identified - indicating that despite easy, automatable exploitation, real-world weaponization has not been observed. This is a genuine availability priority for anyone exposing zrok OAuth proxy shares to untrusted networks (a single request can take down all shares on a proxy), but it is not an active-exploitation emergency. No signals conflict; the main nuance is that impact is limited strictly to availability, so it is lower urgency than an RCE of equivalent CVSS.

Exploit ScenarioDerived

An attacker discovers a publicly reachable zrok OAuth-protected proxy share and derives the session cookie name from the OAuth redirect, then sends a single unauthenticated HTTP request whose Cookie header declares an enormous stripe count. The proxy allocates gigabytes of heap in GetSessionCookie before any token check, and repeated or concurrent requests drive the process into OOM termination, taking down every share on that proxy. No public exploit is identified at time of analysis, but attack complexity is low and the technique is trivially scriptable.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 24, 2026

Unauthenticated denial of service in zrok's OAuth-protected proxy shares (openziti/zrok <= 1.1.11 and v2 < 2.0.1) lets a remote attacker crash the proxy process with a single crafted Cookie header. The GetSessionCookie routine reads an attacker-controlled cookie-stripe count and performs make([]string, count) with no upper bound before any authentication, driving gigabyte-scale heap allocations that cause OOM termination or goroutine panics across every share the proxy serves. There is no public exploit identified at time of analysis, and EPSS is low (0.06%), but exploitation is trivially automatable per CISA SSVC.

RemediationAI

Vendor-released patch: 2.0.1 - upgrade the v2 module (github.com/openziti/zrok/v2) to 2.0.1, which adds a configurable upper limit on OAuth session cookie stripes with a hard cap of 32 and a default of 10 (issue #1217). For the v1 line (<= 1.1.11) no fixed version is listed in the advisory, so migrating to the patched v2.0.1 release is the reliable remediation; verify with the vendor before relying on any v1 backport. Advisory: https://github.com/openziti/zrok/security/advisories/GHSA-cpf9-ph2j-ccr9. As compensating controls until patched, place the proxy behind a reverse proxy or WAF that rejects requests with abnormally long or malformed OAuth session cookie headers (cap total Cookie header size and the number of striped cookie chunks), and apply per-process memory limits with automatic restart (e.g. systemd MemoryMax with Restart=on-failure or a container memory limit) so an OOM crash self-heals rather than staying down - the trade-off is that legitimate very-large sessions could be truncated and the process may still briefly drop requests on restart. Rate-limiting requests to the OAuth proxy endpoint reduces sustained-flood impact but does not stop a single large-allocation request.

Affected Packages

go github.com/openziti/zrok no fix
go github.com/openziti/zrok/v2 fix: 2.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go

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

Technical ContextAI · show details

zrok is an open-source, self-hostable network-sharing/reverse-tunneling platform built on the OpenZiti zero-trust overlay (Go packages pkg:go/github.com_openziti_zrok and .../zrok_v2). The flaw is a classic CWE-400 Uncontrolled Resource Consumption: the OAuth session cookie is 'striped' across multiple cookie chunks, and endpoints/oauthCookies.go GetSessionCookie (line 81) trusts the attacker-supplied chunk count to pre-size a slice via make([]string, count) with no ceiling. Because the Go runtime eagerly allocates the backing array, a large declared count forces an immediate large heap allocation. The vulnerable function is invoked from both the publicProxy (endpoints/publicProxy/authOAuth.go handleOAuth, line 50) and dynamicProxy (endpoints/dynamicProxy/cookies.go getSessionCookie, line 29) code paths, and critically it runs before JWT/token validation, so no valid session is needed to reach it.

Know when the next one hits your stack

  • 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 (https://github.com/openziti/zrok) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

A single unauthenticated network request reaches the parser pre-auth (AV:N/AC:L/PR:N/UI:N); impact is availability-only OOM confined to the process, so C:N/I:N/A:H and S:U.

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

Primary rating from Vendor (https://github.com/openziti/zrok).

CVSS VectorVendor: https://github.com/openziti/zrok

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch released
Apr 17, 2026 - 02:30 nvd
Patch available
CVE Published
Apr 16, 2026 - 21:09 nvd
HIGH 7.5

DescriptionCVE.org

Summary endpoints.GetSessionCookie parses an attacker-supplied cookie chunk count and calls make([]string, count) with no upper bound before any token validation occurs. The function is reached on every request to an OAuth-protected proxy share, allowing an unauthenticated remote attacker to trigger gigabyte-scale heap allocations per request, leading to process-level OOM termination or repeated goroutine panics. Both publicProxy and dynamicProxy are affected.

  • Attack Vector: Network - exploitable via a single HTTP request with a crafted Cookie header.
  • Attack Complexity: Low - no preconditions or chaining required; the attacker only needs to know the cookie name (publicly derivable from any OAuth redirect).
  • Privileges Required: None - reached before JWT validation or any authentication check.
  • User Interaction: None.
  • Scope: Unchanged - impact is confined to the affected proxy process.
  • Confidentiality Impact: None.
  • Integrity Impact: None.

Availability Impact: High - sustained or concurrent requests cause OOM process termination, taking down the proxy for all users of all shares it serves.

Affected Components

  • endpoints/oauthCookies.go - GetSessionCookie (line 81)
  • endpoints/publicProxy/authOAuth.go - handleOAuth (line 50) - call site, pre-auth
  • endpoints/dynamicProxy/cookies.go - getSessionCookie (line 29) - call site

Executive ViewAI

Why It Matters

Zrok's OAuth-protected proxy shares (versions ≤1.1.11 and v2 <2.0.1) are vulnerable to unauthenticated remote denial of service: a single crafted Cookie header crashes the proxy process, disrupting all shares it serves. Organizations using affected zrok versions should prioritize patching within 7 days to mitigate service disruption.

Business Impact: High
Compensating Controls

Apply vendor patch: upgrade zrok to 1.1.12 or 2.0.1 or later. Until patching is complete, implement rate limiting on HTTP requests to zrok proxy endpoints to reduce automatic exploitation risk.

Threat Intelligence Overview

EPSS Score
0.1%
Top 82% exploitable
Prevalence
Low
niche open-source self-hosted tunneling/sharing tool on OpenZiti
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:go/github.com_openziti_zrok
pkg:go/github.com_openziti_zrok_v2

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

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