{"id":"CVE-2026-88014","aliases":["CVE-2026-88014","GHSA-66hp-wgxq-6f5q","BIT-RCLONE-2026-88014","GO-2026-6464"],"related":[],"kind":"vulnerability","state":"published","title":"rclone archive/zip: Zip Slip via unsanitized zip entry names lets a malicious archive escape its own namespace","summary":"rclone is a command-line program to sync files and directories to and from different cloud storage providers. From 1.72.0 until 1.75.1, the archive ZIP backend method (*Fs).readZip in backend/archive/zip/zip.go accepts archive/zip.File.Name values from an untrusted central directory and exposes cleaned entry names without ensuring that they remain inside the archive namespace. Entries such as ../../etc/cron.d/evil can survive path.Clean and become Object.Remote() values that fs/sync and fs/operations use as destination-relative paths, allowing rclone copy or sync to write outside the selected destination on backends that do not independently confine the path. The non-empty root check also used strings.HasPrefix without a path boundary, so root foo could incorrectly include sibling foobar entries. This issue is fixed in version 1.75.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"rclone is a command-line program to sync files and directories to and from different cloud storage providers. From 1.72.0 until 1.75.1, the archive ZIP backend method (*Fs).readZip in backend/archive/zip/zip.go accepts archive/zip.File.Name values from an untrusted central directory and exposes cleaned entry names without ensuring that they remain inside the archive namespace. Entries such as ../../etc/cron.d/evil can survive path.Clean and become Object.Remote() values that fs/sync and fs/operations use as destination-relative paths, allowing rclone copy or sync to write outside the selected destination on backends that do not independently confine the path. The non-empty root check also used strings.HasPrefix without a path boundary, so root foo could incorrectly include sibling foobar entries. This issue is fixed in version 1.75.1.","source":"cvelist"},{"lang":"en","text":"### Summary\n`backend/archive` mounts a zip file as a browsable, syncable rclone `Fs` (e.g. `rclone lsf :zip:downloaded.zip` or `rclone copy :zip:downloaded.zip dest:`). Go's `archive/zip` package does not sanitize `file.Name` - it is taken verbatim from the untrusted zip's central directory. `readZip()` in `backend/archive/zip/zip.go` applies `path.Clean` to the entry name, but this alone cannot fully neutralize a name with more `..` components than real segments preceding them (e.g. `\"../../etc/cron.d/evil\"` stays exactly as-is after cleaning). When the archive is mounted with an empty root (the common case), there was no check at all that the resulting name stayed inside the archive's own namespace, so it was stored verbatim and returned unchanged by `Object.Remote()`.\n\n`fs/sync`/`fs/operations` use `srcObj.Remote()` directly as the destination-relative path when copying between filesystems, so a maliciously crafted zip file can cause `rclone copy`/`sync` to attempt writes outside the intended destination directory on whatever backend it targets - this is the well-known \"Zip Slip\" vulnerability class (https://security.snyk.io/research/zip-slip-vulnerability) applied to rclone's own zip-mounting backend. It is distinct from `cmd/archive/extract`, which already validates via its own `destPath()` choke point and is not affected.\n\n### Details\nVulnerable code (before fix), `backend/archive/zip/zip.go`, `(*Fs).readZip`:\n```go\nfor _, file := range zr.File {\n\tremote := strings.Trim(path.Clean(file.Name), \"/\")\n\tif remote == \".\" { remote = \"\" }\n\tremote = path.Join(f.prefix, remote)\n\tif f.root != \"\" {\n\t\t// Ignore all files outside the root\n\t\tif !strings.HasPrefix(remote, f.root) { continue }\n\t\t...\n\t}\n\t...\n\to := &Object{f: f, remote: remote, ...}\n\tdt.Add(o)\n}\n```\nThe escape check only ran when `f.root != \"\"`, and even then used a bare `strings.HasPrefix` with no boundary check (so `f.root=\"foo\"` incorrectly also matched a sibling entry `\"foobar\"`).\n\n### PoC\nBuilt a zip in memory with Go's real `archive/zip` writer (entry name `\"../../etc/cron.d/evil\"`, not sanitized by the writer either), wrote it to disk, and mounted it via the actual production constructor `zip.New(ctx, localFs, \"evil.zip\", \"\", \"\")`:\n```\nzip entry Name=\"../../etc/cron.d/evil\" -> Object.Remote()=\"../../etc/cron.d/evil\"\n```\nFully outside the archive's own namespace - confirmed via a regression test that mounts the malicious zip through the real `local` backend and inspects the resulting Fs's internal dirtree and every Object's `Remote()`.\n\n### Impact\nA user who runs `rclone copy`/`sync`/`mount` against an untrusted zip file (downloaded, e-mailed, etc.) can have files written outside the intended destination directory on the destination backend, depending on that backend's own confinement. No server compromise or custom remote configuration is required from the attacker - only a crafted zip file and a normal `rclone copy`/`sync` invocation by the victim.\n\n### Fix\nSkip any zip entry whose cleaned+prefixed name still escapes the archive's own namespace, rather than exposing it. Also tightened the pre-existing root filter's weak prefix check.","format":"markdown","source":"ghsa"},{"lang":"en","text":"rclone archive/zip: Zip Slip via unsanitized zip entry names lets a malicious archive escape its own namespace in github.com/rclone/rclone","format":"markdown","source":"go"}],"published":"2026-09-10T15:48:32.953Z","modified":"2026-09-24T09:15:05.282Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","score":6.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:N","score":6.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 1.72.0, < 1.75.1","status":"affected"}],"vendor":"rclone","product":"rclone","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.72.0","status":"affected","fixed":"1.75.1"}],"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.72.0","status":"affected","fixed":"1.75.1"}],"ecosystem":"Go","package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","source":"go"},{"ranges":[{"status":"affected","introduced":"1.72.0","fixed":"1.75.1"}],"vendor":"rclone","product":"rclone","cpe":"cpe:2.3:a:rclone:rclone:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"1.72.0","status":"affected","fixed":"1.75.1"}],"ecosystem":"Bitnami","package":"rclone","purl":"pkg:bitnami/rclone","source":"bitnami"}],"references":[{"url":"https://github.com/rclone/rclone/security/advisories/GHSA-66hp-wgxq-6f5q","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/rclone/rclone/commit/5dae3adbf571a6cd9ba501eb47397a7e871e1ae0","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/rclone/rclone/commit/6507e13d5a83789f500af96d7188c302c9d74d98","tags":["fix","patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://github.com/rclone/rclone/releases/tag/v1.75.1","tags":["article","release-notes","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-88014","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/rclone/rclone","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-10T16:05:22.070Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-88014","url":"https://www.cve.org/CVERecord?id=CVE-2026-88014","licence":"CVE Terms of Use","modified":"2026-09-10T16:12:36.643Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-66hp-wgxq-6f5q","url":"https://github.com/advisories/GHSA-66hp-wgxq-6f5q","licence":"CC-BY-4.0","modified":"2026-09-19T09:25:51.754Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6464","url":"https://pkg.go.dev/vuln/GO-2026-6464","licence":"CC-BY-4.0","modified":"2026-09-19T09:25:51.754Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-88014","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-88014","licence":"Public domain","modified":"2026-09-23T20:39:36.190Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-RCLONE-2026-88014","url":"https://osv.dev/vulnerability/BIT-RCLONE-2026-88014","licence":"Apache-2.0","modified":"2026-09-24T09:15:05.282Z"}],"updatedAt":"2026-11-25T22:59:37.869Z","epss":{"score":0.00151,"percentile":0.04451,"date":"2026-12-01T12:00:22.000Z"}}