8.7high
zrok: WebDAV drive backend follows symlinks outside DriveRoot, enabling host filesystem read/write
- Severity
- 8.7high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.46% (higher than 31% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-74m3-9qvm-rp9hGO-2026-5203
Description
zrok is software for sharing web services, files, and network resources. Prior to version 2.0.2, the zrok WebDAV drive backend (davServer.Dir) restricts path traversal through lexical normalization but does not prevent symlink following. When a symbolic link inside the shared DriveRoot points to a location outside that root, remote WebDAV consumers can read files and—on shares without OS-level permission restrictions—write or overwrite files anywhere on the host filesystem accessible to the zrok process. This issue has been patched in version 2.0.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| openziti zrok | < 2.0.2 | CVE List |
| github.com/openziti/zrok (Go) | up to 1.1.11, all versions | GitHub Advisory Database, Go Vulnerability Database |
| github.com/openziti/zrok/v2 (Go) | before 2.0.2 | GitHub Advisory Database, Go Vulnerability Database |
| netfoundry zrok | before 2.0.2 | NVD |
All scores
| GitHub_M | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N |
| GitHub | 8.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N |
Classification
What each source says
CVE List
zrok is software for sharing web services, files, and network resources. Prior to version 2.0.2, the zrok WebDAV drive backend (davServer.Dir) restricts path traversal through lexical normalization but does not prevent symlink following. When a symbolic link inside the shared DriveRoot points to a location outside that root, remote WebDAV consumers can read files and—on shares without OS-level permission restrictions—write or overwrite files anywhere on the host filesystem accessible to the zrok process. This issue has been patched in version 2.0.2.
GitHub Advisory Database
Summary The zrok WebDAV drive backend (davServer.Dir) restricts path traversal through lexical normalization but does not prevent symlink following. When a symbolic link inside the shared DriveRoot points to a location outside that root, remote WebDAV consumers can read files and—on shares without OS-level permission restrictions—write or overwrite files anywhere on the host filesystem accessible to the zrok process.
- Attack Vector: Network — exploitation is performed entirely over the WebDAV endpoint; the attacker issues HTTP requests to the public zrok share URL.
- Attack Complexity: High — a precondition outside the attacker's direct control must hold: a symlink pointing outside DriveRoot must already exist within it (created locally, not via WebDAV).
- Privileges Required: None — zrok share public --backend-mode drive exposes the WebDAV endpoint with no authentication by default.
- User Interaction: None — once the symlink precondition is met, exploitation requires no user interaction.
- Scope: Changed — the vulnerability allows an attacker to escape the WebDAV root (the security boundary) and access the broader host filesystem.
- Confidentiality Impact: High — arbitrary files readable by the zrok process can be retrieved.
- Integrity Impact: High — the WebDAV PUT handler opens files with O_RDWR|O_CREATE|O_TRUNC, meaning symlink targets outside DriveRoot can be overwritten (e.g. ~/.ssh/authorized_keys).
- Availability Impact: None — no direct availability impact.
Affected Components
- drives/davServer/file.go — Dir.OpenFile (line 140), Dir.Stat (line 176), Dir.Mkdir (line 133), Dir.RemoveAll (line 151)
- endpoints/drive/backend.go — NewBackend (line 51–52)
Go Vulnerability Database
zrok: WebDAV drive backend follows symlinks outside DriveRoot, enabling host filesystem read/write in github.com/openziti/zrok
NVD (es)
zrok es un software para compartir servicios web, archivos y recursos de red. Antes de la versión 2.0.2, el backend de unidad WebDAV de zrok (davServer.Dir) restringe el salto de ruta mediante normalización léxica, pero no evita el seguimiento de enlaces simbólicos. Cuando un enlace simbólico dentro del DriveRoot compartido apunta a una ubicación fuera de esa raíz, los consumidores remotos de WebDAV pueden leer archivos y -en recursos compartidos sin restricciones de permisos a nivel de sistema operativo- escribir o sobrescribir archivos en cualquier lugar del sistema de archivos del host accesible al proceso zrok. Este problema ha sido parcheado en la versión 2.0.2.
References
| https://github.com/openziti/zrok/security/advisories/GHSA-74m3-9qvm-rp9h | advisory, vendor-advisory, web | |
| https://github.com/openziti/zrok/commit/459bcfc1e121decae1b1d11c37ad94e4ed5bbf2e | fix, patch, web | |
| https://github.com/openziti/zrok/releases/tag/v2.0.2 | product, release-notes, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-42275 | advisory | |
| https://github.com/openziti/zrok | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42275 changed 2026-05-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-74m3-9qvm-rp9h changed 2026-06-25 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5203 changed 2026-06-25 | CC-BY-4.0 |
| NVD | CVE-2026-42275 changed 2026-10-26 | Public domain |