Rclone
rclone: PowerShell Smart-Quote Filename Injection Enables SFTP Server-Side Command Execution
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.75.0
Fixed in 1.75.0
Mitigation
Upgrade rclone to 1.75.0 or later.
References
- Vendor advisory github.com/rclone/rclone/security/advisories/G…
- Patch github.com/rclone/rclone/commit/e122fba1a57641…
- Release notes github.com/rclone/rclone/releases/tag/v1.75.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.