{"id":"GHSA-74m3-9qvm-rp9h","revision":"6ea6ebcd610f446cb8dc1e170b7abc68","records":[{"revision":"6ea6ebcd610f446cb8dc1e170b7abc68","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-74m3-9qvm-rp9h","aliases":["CVE-2026-42275","GO-2026-5203"],"title":"zrok: WebDAV drive backend follows symlinks outside DriveRoot, enabling host filesystem read/write","description":"**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)","state":0,"publishedAt":"2026-04-25T23:34:35+00:00","modifiedAt":"2026-06-25T19:56:16.4507795+00:00","affected":[{"ecosystem":"Go","name":"github.com/openziti/zrok","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"1.1.11"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/openziti/zrok/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.2"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/openziti/zrok/security/advisories/GHSA-74m3-9qvm-rp9h","https://nvd.nist.gov/vuln/detail/CVE-2026-42275","https://github.com/openziti/zrok/commit/459bcfc1e121decae1b1d11c37ad94e4ed5bbf2e","https://github.com/openziti/zrok","https://github.com/openziti/zrok/releases/tag/v2.0.2"],"sourceUrl":"https://github.com/advisories/GHSA-74m3-9qvm-rp9h","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-74m3-9qvm-rp9h","identifiers":["GHSA-74m3-9qvm-rp9h","CVE-2026-42275","GO-2026-5203"]},"retained":false,"historicalAffected":[]}],"coverage":[]}