GO-2026-6182

Command execution via PowerShell smart quotes in github.com/rclone/rclone

At a glance

Published
Updated
CVE
CVE-2026-71312
Aliases
BIT-rclone-2026-71312, GHSA-2m8m-jhrm-w6j2

Description

PowerShell treats several Unicode smart-quote characters (U+2018, U+2019, U+201A, U+201B) as single-quote delimiters in addition to ASCII apostrophe. When interpolating remote SFTP paths into PowerShell commands, rclone only escapes the ASCII apostrophe, allowing an attacker to craft a filename with smart quotes that closes the path literal and injects arbitrary PowerShell commands executed on the SFTP remote as the victim's SSH account.

Affected packages

PackageVersions
Go · github.com/rclone/rcloneintroduced 0, fixed 1.75.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database