GitHub Advisoryadvisory · Go

GHSA-c656-jcx2-7pqj zrok copy writes attacker-controlled WebDAV paths outside the destination root

HIGH Published 2026-05-19 Modified 2026-05-19 Official page ↗
Aliases
CVE-2026-45576
Ecosystem
Go
Packages
github.com/openziti/zrok/v2, github.com/openziti/zrok
Severity
High
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N
Weaknesses
CWE-22
Reviewed
2026-05-19

Affected packages

• Go github.com/openziti/zrok/v2: < 2.0.3 → fixed in 2.0.3 • Go github.com/openziti/zrok: >= 0.4.23, <= 1.1.11 (no fix yet)

Description

Summary Alice runs `zrok2 copy` from a WebDAV or zrok drive controlled by Bob into a local filesystem target. Bob returns a DAV `href` such as `/../outside.txt`. The sync pipeline stores that path in the source inventory and passes it to `FilesystemTarget.WriteStream`, which joins it with the target root and creates the file outside Alice's selected directory. Impact Users given access to a zrok share may be able to traverse the directory tree arbitrarily with the sharing users credentials, allowing for sensitive information to be overwritten.

Related

Alias · CVE (1)

  • CVE-2026-45576 zrok is software for sharing web services, files, and network resources. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References