Description
zrok is software for sharing web services, files, and network resources. From 0.4.23 until 2.0.3, `zrok2 copy` stores attacker-controlled WebDAV or zrok drive paths such as /../outside.txt in the source inventory and passes them to FilesystemTarget.WriteStream, allowing the sync pipeline to write files outside the selected local filesystem destination root. This issue is fixed in version 2.0.3.
Published: 2026-07-16
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in the zrok2 copy command, which accepts user‑specified WebDAV or zrok drive paths. From versions 0.4.23 through 2.0.3, the command stores attacker‑controlled paths such as /../outside.txt in its source inventory and forwards them to FilesystemTarget.WriteStream. This causes the sync pipeline to write files outside the chosen local filesystem destination root, allowing an attacker to create or overwrite arbitrary files where the zrok process has write permission. The flaw is a directory traversal weakness classified as CWE‑22.

Affected Systems

OpenZiti includes all zrok clients from version 0.4.23 up through but not including 2.0.3. Any system running those releases, regardless of operating system, is susceptible to the flaw until the user applies the 2.0.3 release or later.

Risk and Exploitability

The CVSS score of 8.3 indicates high severity; the EPSS of <1% suggests a low exposure rate. The vulnerability is not included in KEV. Attackers with the ability to invoke zrok2 copy and supply crafted paths can write arbitrary files, potentially corrupting configuration or inserting malware wherever the process can write, if the host filesystem allows it.

Generated by OpenCVE AI on July 31, 2026 at 01:39 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade zrok to v2.0.3 or later, where the sanitization of attacker‑controlled paths mitigates the CWE‑22 directory traversal weakness.
  • If an update is not immediately possible, configure the zrok2 copy command to accept only validated paths, rejecting those containing ". ." or absolute references, thereby enforcing strict path validation to counter CWE‑22.
  • Run the zrok process with the minimum privileges required, ensuring it cannot write to sensitive directories that could be targeted by a directory traversal, which mitigates CWE‑22.

Generated by OpenCVE AI on July 31, 2026 at 01:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-c656-jcx2-7pqj zrok copy writes attacker-controlled WebDAV paths outside the destination root
History

Thu, 16 Jul 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Openziti
Openziti zrok
Vendors & Products Openziti
Openziti zrok

Thu, 16 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 17:00:00 +0000

Type Values Removed Values Added
Description zrok is software for sharing web services, files, and network resources. From 0.4.23 until 2.0.3, `zrok2 copy` stores attacker-controlled WebDAV or zrok drive paths such as /../outside.txt in the source inventory and passes them to FilesystemTarget.WriteStream, allowing the sync pipeline to write files outside the selected local filesystem destination root. This issue is fixed in version 2.0.3.
Title zrok copy writes attacker-controlled WebDAV paths outside the destination root
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 8.3, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-16T17:13:51.105Z

Reserved: 2026-05-12T19:00:14.600Z

Link: CVE-2026-45576

cve-icon Vulnrichment

Updated: 2026-07-16T17:13:32.611Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:45:06Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')