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.
Published: 2026-08-05
Score: 8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Thu, 06 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 06 Aug 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Wed, 05 Aug 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Rclone
Rclone rclone
Vendors & Products Rclone
Rclone rclone

Wed, 05 Aug 2026 20:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-07T03:55:21.917Z

Reserved: 2026-08-05T18:14:42.064Z

Link: CVE-2026-71312

cve-icon Vulnrichment

Updated: 2026-08-06T14:43:36.573Z

cve-icon NVD

Status : Received

Published: 2026-08-05T21:16:58.867

Modified: 2026-08-07T05:17:03.537

Link: CVE-2026-71312

cve-icon Redhat

Severity : Important

Publid Date: 2026-08-05T20:37:49Z

Links: CVE-2026-71312 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T22:45:03Z

Weaknesses
  • CWE-78

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