Executive brief
zrok is a tool used for sharing files and web services over the internet. A security flaw in the 'zrok2 copy' command allows a malicious user to trick someone into downloading files that overwrite critical data outside of the intended folder. This could lead to the loss of sensitive information or the corruption of system files on the user's computer.
Technical details
A path traversal vulnerability (CWE-22) exists in the 'zrok2 copy' command of zrok. The issue stems from the application failing to sanitize WebDAV or zrok drive paths (e.g., using '/../') before passing them to the FilesystemTarget.WriteStream function. An attacker who controls a source share can provide malicious paths that the sync pipeline will use to write, remove, or modify files outside the user's selected local destination directory. Exploitation requires a user to initiate a copy operation from an attacker-controlled share. The vulnerability is fixed in version 2.0.3 by implementing root-confinement for local drive sync operations.
Affected products
- openziti zrok >= 0.4.23, < 2.0.3
Timeline
- 2026-05-07: patched: Fix committed and version 2.0.3 released.
- 2026-05-13: advisory: GitHub Security Advisory published.
- 2026-07-16: disclosed: CVE-2026-45576 published to NVD.