{"id":"CVE-2026-40303","aliases":["CVE-2026-40303","GHSA-cpf9-ph2j-ccr9","GO-2026-5329"],"related":[],"kind":"vulnerability","state":"published","title":"zrok allows unauthenticated DoS via unbounded memory allocation in striped session cookie parsing","summary":"zrok is software for sharing web services, files, and network resources. Prior to version 2.0.1, 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. Version 2.0.1 patches the issue.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"zrok is software for sharing web services, files, and network resources. Prior to version 2.0.1, 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. Version 2.0.1 patches the issue.","source":"cvelist"},{"lang":"en","text":"**Summary**\nendpoints.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.\n\n- Attack Vector: Network — exploitable via a single HTTP request with a crafted Cookie header.\n- Attack Complexity: Low — no preconditions or chaining required; the attacker only needs to know the cookie name (publicly derivable from any OAuth redirect).\n- Privileges Required: None — reached before JWT validation or any authentication check.\n- User Interaction: None.\n- Scope: Unchanged — impact is confined to the affected proxy process.\n- Confidentiality Impact: None.\n- Integrity Impact: None.\n\nAvailability Impact: High — sustained or concurrent requests cause OOM process termination, taking down the proxy for all users of all shares it serves.\n\n**Affected Components**\n- endpoints/oauthCookies.go — GetSessionCookie (line 81)\n- endpoints/publicProxy/authOAuth.go — handleOAuth (line 50) — call site, pre-auth\n- endpoints/dynamicProxy/cookies.go — getSessionCookie (line 29) — call site","format":"markdown","source":"ghsa"},{"lang":"en","text":"zrok: Unauthenticated DoS via unbounded memory allocation in striped session cookie parsing in github.com/openziti/zrok","format":"markdown","source":"go"},{"lang":"es","text":"zrok es un software para compartir servicios web, archivos y recursos de red. Antes de la versión 2.0.1, endpoints.GetSessionCookie analiza un recuento de fragmentos de cookie proporcionado por un atacante y llama a make([]string, count) sin un límite superior antes de que ocurra cualquier validación de token. Se accede a la función en cada solicitud a un recurso compartido de proxy protegido por OAuth, lo que permite a un atacante remoto no autenticado activar asignaciones de memoria heap a escala de gigabytes por solicitud, lo que lleva a la terminación OOM a nivel de proceso o a pánicos repetidos de goroutine. Tanto publicProxy como dynamicProxy se ven afectados. La versión 2.0.1 corrige el problema.","source":"nvd"}],"published":"2026-04-16T21:09:08.000Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-400","CWE-789"],"affected":[{"ranges":[{"version":"< 2.0.1","status":"affected"}],"vendor":"openziti","product":"zrok","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"1.1.11"}],"ecosystem":"Go","package":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.1"}],"ecosystem":"Go","package":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/openziti/zrok","purl":"pkg:golang/github.com/openziti/zrok","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.0.1"}],"ecosystem":"Go","package":"github.com/openziti/zrok/v2","purl":"pkg:golang/github.com/openziti/zrok/v2","source":"go"},{"ranges":[{"status":"affected","fixed":"2.0.1"}],"vendor":"netfoundry","product":"zrok","cpe":"cpe:2.3:a:netfoundry:zrok:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/openziti/zrok/security/advisories/GHSA-cpf9-ph2j-ccr9","tags":["advisory","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/openziti/zrok/releases/tag/v2.0.1","tags":["release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40303","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/openziti/zrok","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-04-20T16:18:59.334Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40303","url":"https://www.cve.org/CVERecord?id=CVE-2026-40303","licence":"CVE Terms of Use","modified":"2026-04-20T16:19:07.291Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cpf9-ph2j-ccr9","url":"https://github.com/advisories/GHSA-cpf9-ph2j-ccr9","licence":"CC-BY-4.0","modified":"2026-06-25T19:56:15.928Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5329","url":"https://pkg.go.dev/vuln/GO-2026-5329","licence":"CC-BY-4.0","modified":"2026-06-25T19:45:30.551Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40303","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40303","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:18.969Z","epss":{"score":0.00461,"percentile":0.41633,"date":"2026-12-01T12:00:22.000Z"}}