CVE-2026-42275: zrok WebDAV Drive Backend Follows Symlinks Vulnerability

HIGH
Advisory Identifier: GHSA-74m3-9qvm-rp9h
CVSS 8.7
CWE-61 CWE-22
Published
Advisory Summary

CVE-2026-42275 is a HIGH (CVSS 8.7) webdav drive backend follows symlinks vulnerability (CWE-61: UNIX Symbolic Link (Symlink) Following) affecting zrok libraries in the Go ecosystem. The issue involves webdav drive backend follows symlinks outside driveroot, enabling host filesystem read/write. Remediation is available by upgrading affected packages to version 2.0.2.

CVE-2026-42275 at a Glance

CVE Identifier CVE-2026-42275
GHSA Identifier GHSA-74m3-9qvm-rp9h
Severity HIGH
CVSS v3.1 Base Score 8.7
CWE Classification CWE-61: UNIX Symbolic Link (Symlink) Following
Affected Product zrok
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 8.7

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-42275

To remediate this vulnerability, upgrade all affected zrok dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/openziti/zrok fixed: Latest secure release
Upgrade github.com/openziti/zrok to Latest secure release
github.com/openziti/zrok/v2 fixed: 2.0.2
Upgrade github.com/openziti/zrok/v2 to 2.0.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/openziti/zrok

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-42275, inspect your project dependencies for zrok:

inspect dependencies for github.com/openziti/zrok

Analyze the terminal output to locate any version of zrok in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-61: UNIX Symbolic Link (Symlink) Following, where the product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. this could allow an attacker to cause the product to operate on unauthorized files. In zrok, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

**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)

CVE-2026-42275 Affected zrok Versions

2 component(s)
Fixed Versions:
2.0.2
Product / Package Ecosystem Affected Versions Fixed Version
github.com/openziti/zrok
Go
≤ 1.1.11
github.com/openziti/zrok/v2
Go
< 2.0.2
2.0.2

References

Frequently Asked Questions

What is CVE-2026-42275?
CVE-2026-42275 is a security vulnerability in zrok involving WebDAV drive backend follows symlinks outside DriveRoot, enabling host filesystem read/write under CWE-61: UNIX Symbolic Link (Symlink) Following.
Which zrok versions are affected?
Affected versions include releases prior to 2.0.2 across affected packages: github.com/openziti/zrok, github.com/openziti/zrok/v2.
What version fixes CVE-2026-42275?
Upgrading to 2.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/openziti/zrok affected?
Yes, github.com/openziti/zrok is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
Is github.com/openziti/zrok/v2 affected?
Yes, github.com/openziti/zrok/v2 is affected in releases prior to 2.0.2. Upgrade your dependency to 2.0.2 or later.
What is the CVSS score of CVE-2026-42275?
CVE-2026-42275 has a CVSS v3.1 base score of 8.7 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N.
What CWE is associated with CVE-2026-42275?
CVE-2026-42275 is classified under CWE-61: UNIX Symbolic Link (Symlink) Following (The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.).
How can I check Go dependencies for CVE-2026-42275?
Run the dependency tree command: 'inspect dependencies for github.com/openziti/zrok'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-74m3-9qvm-rp9h",
  "modified" : "2026-05-12T13:29:09Z",
  "published" : "2026-04-25T23:34:35Z",
  "aliases" : [ "CVE-2026-42275" ],
  "summary" : "zrok: WebDAV drive backend follows symlinks outside DriveRoot, enabling host filesystem read/write",
  "details" : "**Summary**\nThe 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.\n\n- Attack Vector: Network — exploitation is performed entirely over the WebDAV endpoint; the attacker issues HTTP requests to the public zrok share URL.\n- 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).\n- Privileges Required: None — zrok share public --backend-mode drive exposes the WebDAV endpoint with no authentication by default.\n- User Interaction: None — once the symlink precondition is met, exploitation requires no user interaction.\n- Scope: Changed — the vulnerability allows an attacker to escape the WebDAV root (the security boundary) and access the broader host filesystem.\n- Confidentiality Impact: High — arbitrary files readable by the zrok process can be retrieved.\n- 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).\n- Availability Impact: None — no direct availability impact.\n\nAffected Components\n\n- drives/davServer/file.go — Dir.OpenFile (line 140), Dir.Stat (line 176), Dir.Mkdir (line 133), Dir.RemoveAll (line 151)\n- endpoints/drive/backend.go — NewBackend (line 51–52)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openziti/zrok"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.1.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/openziti/zrok/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/openziti/zrok/security/advisories/GHSA-74m3-9qvm-rp9h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42275"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openziti/zrok/commit/459bcfc1e121decae1b1d11c37ad94e4ed5bbf2e"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/openziti/zrok"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/openziti/zrok/releases/tag/v2.0.2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22", "CWE-61" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-25T23:34:35Z",
    "nvd_published_at" : "2026-05-08T04:16:22Z"
  }
}