GHSA-cpf9-ph2j-ccr9

Suggest an improvement
Source
https://github.com/advisories/GHSA-cpf9-ph2j-ccr9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-cpf9-ph2j-ccr9/GHSA-cpf9-ph2j-ccr9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cpf9-ph2j-ccr9
Aliases
  • CVE-2026-40303
Published
2026-04-16T21:09:08Z
Modified
2026-05-05T16:05:59.709749Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
zrok: Unauthenticated DoS via unbounded memory allocation in striped session cookie parsing
Details

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

Database specific
{
    "cwe_ids": [
        "CWE-400",
        "CWE-789"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-16T21:09:08Z",
    "nvd_published_at": "2026-04-17T21:16:35Z",
    "severity": "HIGH"
}
References

Affected packages

Go / github.com/openziti/zrok

Package

Name
github.com/openziti/zrok
View open source insights on deps.dev
Purl
pkg:golang/github.com/openziti/zrok

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.1.11

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-cpf9-ph2j-ccr9/GHSA-cpf9-ph2j-ccr9.json"

Go / github.com/openziti/zrok/v2

Package

Name
github.com/openziti/zrok/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/openziti/zrok/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-cpf9-ph2j-ccr9/GHSA-cpf9-ph2j-ccr9.json"