CVE-2026-71312 rclone: PowerShell Smart-Quote Filename Injection Enables SFTP Server-Side Command Execution

High 8.0 Published Updated

Attackers can execute arbitrary PowerShell commands on SFTP servers via crafted filenames due to improper quote escaping in rclone.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-71312?

CVE-2026-71312 is a high-severity command injection vulnerability in rclone, published on 5 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

rclone is a command-line program to sync files and directories to and from different cloud storage providers. Prior to v1.75.0, rclone interpolates remote SFTP paths into PowerShell hash commands in backend/sftp/sftp.go, and quoteOrEscapeShellPath escapes only ASCII apostrophe even though PowerShell treats U+2018, U+2019, U+201A, and U+201B as single-quote delimiters, allowing an attacker-controlled filename to terminate the intended path literal and append PowerShell statements that execute as the victim SSH account when server-side hashing is invoked. This issue is fixed in v1.75.0.

Weakness: CWE-78

Which versions are affected by CVE-2026-71312?

4 open source packages ship an affected version, including github.com/rclone/rclone and rclone.

PackageAffectedFixed in
github.com/rclone/rclone GoAll versions1.75.0
github.com/rclone/rclone GoAll versions1.75.0
github.com/rclone/rclone GoAll versions1.75.0
rclone BitnamiAll versions1.75.0

How do I fix CVE-2026-71312?

Upgrade github.com/rclone/rclone to 1.75.0 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-71312 being exploited?

There is no known exploitation of CVE-2026-71312 in the wild and no public exploit code.

Sources

Also known as BIT-rclone-2026-71312, DEBIAN-CVE-2026-71312, GHSA-2m8m-jhrm-w6j2, GO-2026-6182, MINI-8282-vqf8-w4w9, MINI-9mw3-r46c-vcj4 and 8 more.

Is CVE-2026-71312 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free