Command execution via PowerShell smart quotes in github.com/rclone/rclone
GO-2026-6182 · BIT-rclone-2026-71312 · CVE-2026-71312 · GHSA-2m8m-jhrm-w6j2
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
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.
Ready to move
Start Securing
Free, no credit card | First findings in minutes