CVE-2026-42275
JSON

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 packageVersionsReported by
openziti zrok< 2.0.2CVE List
github.com/openziti/zrok (Go)up to 1.1.11, all versionsGitHub Advisory Database, Go Vulnerability Database
github.com/openziti/zrok/v2 (Go)before 2.0.2GitHub Advisory Database, Go Vulnerability Database
netfoundry zrokbefore 2.0.2NVD

All scores

GitHub_M8.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N
GitHub8.7high CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N

Classification

CWE-22CWE-61

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

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

Sources

SourceRecordLicence
CVE ListCVE-2026-42275 changed 2026-05-08CVE Terms of Use
GitHub Advisory DatabaseGHSA-74m3-9qvm-rp9h changed 2026-06-25CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5203 changed 2026-06-25CC-BY-4.0
NVDCVE-2026-42275 changed 2026-10-26Public domain