🛡️ CVE-2026-71313 — rclone

🟡 CVSS 6.9 — Medium ✅ No Known Exploit CWE-22 NVD
6.9
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

rclone: Local Encoding Path Traversal

Summary

The local backend relies on its configurable filename encoder to prevent remote filename data from becoming operating-system path syntax. If a local destination uses an encoding that omits Dot, such as Slash, None, or Raw, a remote object's standard-encoded .. component is decoded into an actual .. component. backend/local.localPath then passes the decoded name to filepath.Join, which resolves the component and produces a path outside the configured local root.

An attacker who can create object names in a remote source that a victim copies or synchronizes to such a local destination can create or overwrite files outside the selected destination directory, with the permissions of the rclone process.

The default local encoding includes Dot and is not affected by that exact path. This finding requires a non-default local encoding that preserves filesystem path syntax. On Windows, a second confirmed form uses a preserved backslash to turn a remote filename into a native ..\file path even when the destination encoding still includes Dot.

This is not merely an odd filename-conversion result. The local remote's configured root is the destination selected by the user, and ordinary backend operations are expected to remain within it. Rclone documents custom and Raw encodings as filename-conversion controls; it does not document them as an opt-out from destination confinement. The defect is that confinement depends on an encoding mask instead of an independent post-conversion path check.

Affected Assets & Attack Surface

Confirmed affected versions

  • v1.51.0 through v1.74.4
  • Local development commit tested: a0c09f1381ae93e2a9a33c529d170186c61ad058
  • Public master inspected through commit c99b2d11edb0986cd2b1190e9fa25a58a3f12661 (2026-07-23)

v1.51.0 introduced the configurable encoding option for the local backend. Encodings such as None or Slash could omit Dot from that version onward. The explicit Raw encoding was introduced later, in v1.68.0.

Required destination configuration

The destination is a local backend whose effective encoding does not safely encode . and .. components. Examples include:

```text

--local-encoding Slash

--local-encoding None

--local-encoding Raw

```

The first PoC below uses Slash. Default configurations are not affected because the platform-specific encoder.OS masks include Dot.

On Windows, custom encodings that omit BackSlash can introduce an additional traversal form: an object-key component such as ..\marker.txt can become a native path separator plus .., even if the encoding still contains Dot. The fix therefore should enforce containment after conversion to the native path format rather than only require the Dot flag.

Attacker-controlled input

The relevant input is an object name returned by a source backend. The confirmed source case is S3:

  • backend/s3/s3.go:2554 converts raw object keys to rclone's standard path representation with f.opt.Enc.ToStandardPath.
  • A raw .. component becomes the standard component ...
  • When the destination local encoder omits Dot, FromStandardPath decodes .. back to ...

Amazon S3 permits relative path components when their left-to-right cumulative count does not exceed the preceding non-relative components. Consequently, an object named:

```text

tenant/../marker.txt

```

is valid. When the victim's source remote is rooted at bucket/tenant/, the relative object name becomes ../marker.txt before standard encoding. A malicious S3-compatible endpoint can return equivalent keys without relying on Amazon S3.

Reachable operations

The unsafe path resolver is used throughout the local backend, including:

  • backend/local/local.go:798localPath
  • backend/local/local.go:803Put
  • backend/local/local.go:979Move
  • backend/local/local.go:1534Object.Update
  • backend/local/local.go:1747Object.Remove
  • Local directory creation and object lookup operations that call localPath

Normal copy and synchronization propagate the source name to the destination:

  • fs/sync/sync.go:518 passes src.Remote() to operations.Copy.
  • fs/operations/copy.go:390 uses that remote name for destination Put or Update.

Commands that copy attacker-controlled source objects to a local destination are therefore in scope, including copy, sync, and move.

Technical Root Cause Analysis

Rclone represents backend filenames using its standard encoding. lib/encoder/standard.go defines encoder.Standard with EncodeDot, causing raw names equal to . or .. to be represented by fullwidth characters:

```text

. -> .

.. -> ..

```

When a standard path is converted for a destination backend, lib/encoder/encoder.go:1214-1240 performs the following transformation for every path component:

```go

func FromStandardName(e Encoder, s string) string {

if e == Standard {

return

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality none, integrity high, availability low.

Weakness class

CVE-2026-71313 is classified as CWE-22: Path Traversal. A file path built from user input is not confined to the intended directory, letting an attacker reach files elsewhere on the filesystem.

Affected software

CVE-2026-71313 is recorded against 2 packages.

  • github.com/rclone/rclone
  • unknown

Timeline and source

Published on 5 August 2026 and last revised on 10 August 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
github.com (Web)
github.com (Package)
github.com (Web)

Details

Severity Medium
CVSS Score 6.9
CVSS Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:N/I:H/A:L
CWE CWE-22
Public Exploit ✅ No
Source NVD
Published 2026-08-05
Updated 2026-08-12
Modified 2026-08-10
Fix URL N/A

Affected Packages

Software From version Fixed in
github.com/rclone/rclone
unknown

Similar Threats

Vulnerability Monitoring

Track new vulnerabilities in rclone

CVE-2026-71313 is rated CVSS 6.9 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.

Set Up Free Alerts →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.