GHSA-74m3-9qvm-rp9h

Suggest an improvement
Source
https://github.com/advisories/GHSA-74m3-9qvm-rp9h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-74m3-9qvm-rp9h/GHSA-74m3-9qvm-rp9h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-74m3-9qvm-rp9h
Aliases
  • CVE-2026-42275
Published
2026-04-25T23:34:35Z
Modified
2026-05-12T17:16:36.941250Z
Severity
  • 8.7 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N CVSS Calculator
Summary
zrok: WebDAV drive backend follows symlinks outside DriveRoot, enabling host filesystem read/write
Details

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 ORDWR|OCREATE|OTRUNC, meaning symlink targets outside DriveRoot can be overwritten (e.g. ~/.ssh/authorizedkeys).
  • 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)
Database specific
{
    "cwe_ids": [
        "CWE-22",
        "CWE-61"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-25T23:34:35Z",
    "nvd_published_at": "2026-05-08T04:16:22Z",
    "severity": "HIGH"
}
References

Affected packages

Go / github.com/openziti/zrok

Package

Name
github.com/openziti/zrok
View open source insights on deps.dev
Purl
pkg:golang/github.com/openziti/zrok

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
1.1.11

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-74m3-9qvm-rp9h/GHSA-74m3-9qvm-rp9h.json"

Go / github.com/openziti/zrok/v2

Package

Name
github.com/openziti/zrok/v2
View open source insights on deps.dev
Purl
pkg:golang/github.com/openziti/zrok/v2

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-74m3-9qvm-rp9h/GHSA-74m3-9qvm-rp9h.json"