zrok CVE-2026-40303
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify OAuth-protected zrok proxy share
-
DeliveryDerive session cookie name from OAuth redirect
-
ExploitSend HTTP request with crafted stripe count
-
ExecutionTrigger unbounded make([]string) allocation pre-auth
-
PersistExhaust heap, OOM-kill proxy process
-
ImpactDeny 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
Primary rating from Vendor (https://github.com/openziti/zrok).
CVSS VectorVendor: https://github.com/openziti/zrok
Lifecycle Timeline
2DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)CVE.org
Same weakness CWE-400 – Uncontrolled Resource Consumption
View allSame technique Denial Of Service
View allVendor 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 |
| openSUSE Leap 15.6 | Affected |
GHSA-cpf9-ph2j-ccr9
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB