CVE-2026-71312

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

Published Aug 5, 2026 CVSS 3.1 · 8 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in rclone allows attacker‑controlled SFTP filenames to terminate a PowerShell string literal when the utility builds hash commands for server‑side hashing. The escape routine only handles ASCII apostrophes and fails to quote Unicode ‘smart‑quote’ characters that PowerShell also treats as delimiters, leading to command injection (CWE‑78). The injection causes arbitrary PowerShell statements to run as the victim’s SSH account, giving an attacker the same privileges as the SSH user.

Affected Systems

All releases of the rclone command‑line synchronisation tool before version 1.75.0 are vulnerable because the unsafe interpolation logic was in place until that version. Users running any older rclone against an SFTP server that may hold filenames containing Unicode quote characters are at risk.

Risk and Exploitability

The flaw carries a CVSS score of 8, classifying it as high severity. It is not listed in CISA’s KEV catalog and no EPSS score is available, but the vulnerability can be triggered by any file name containing smart‑quote characters on a remote SFTP server. An attacker that can control or upload a file with such a name can invoke the server‑side hashing routine and execute arbitrary PowerShell commands through the victim’s SSH credentials. It appears that the attack does not require special privileges on the client machine; this inference comes from the fact that the description does not mention any client‑side privilege escalation steps.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade rclone to 1.75.0 or later, which removes the unsafe PowerShell hash construction.
  • If an upgrade is not immediately possible, avoid using server‑side hashing against SFTP servers that might contain filenames with Unicode quote characters; use client‑side hashing instead.
  • Sanitise filenames on the SFTP server to ensure they contain no Unicode characters that act as PowerShell single‑quote delimiters (U+2018, U+2019, U+201A, U+201B) before they are used in hash calculations.

Generated by OpenCVE AI on August 5, 2026 at 21:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2m8m-jhrm-w6j2 rclone: PowerShell Smart-Quote Filename Injection Enables SFTP Server-Side Command Execution
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Rclone
Rclone rclone
Vendors & Products Rclone
Rclone rclone
Type Values Removed Values Added
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.
Title rclone: PowerShell Smart-Quote Filename Injection Enables SFTP Server-Side Command Execution
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 3, 2026, 10:13 PM
Reserved
Aug 5, 2026, 6:14 PM
Status
Awaiting Analysis
Published
Aug 5, 2026, 9:16 PM
Modified
Nov 3, 2026, 11:17 PM
Severity
Important
Public date
Aug 5, 2026, 8:37 PM