---
id: CVE-2026-71312
title: >-
  rclone is a command-line program to sync files and directories to and from
  different cloud storage providers
summary: >-
  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
  quoteOrEscap…
severity: high
cvss: 8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
vendor: rclone
product: github.com/rclone/rclone
affected:
  - github.com/rclone/rclone <= 1.74.4
patched:
  - github.com/rclone/rclone 1.75.0
published: '2026-08-05'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T20:50:00.950'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-71312'
references:
  - url: >-
      https://github.com/rclone/rclone/commit/e122fba1a57641b63a580aa26c026903a84e2e88
    label: security-advisories@github.com
  - url: 'https://github.com/rclone/rclone/releases/tag/v1.75.0'
    label: security-advisories@github.com
  - url: 'https://github.com/rclone/rclone/security/advisories/GHSA-2m8m-jhrm-w6j2'
    label: security-advisories@github.com
  - url: 'https://github.com/rclone/rclone/security/advisories/GHSA-2m8m-jhrm-w6j2'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://github.com/advisories/GHSA-2m8m-jhrm-w6j2'
  - url: 'https://github.com/rclone/rclone'
tags:
  - nvd
  - ghsa
  - go
  - osv
epss: 0.0049
epssPercentile: 0.39654
aliases:
  - GHSA-2m8m-jhrm-w6j2
  - BIT-rclone-2026-71312
  - GO-2026-6182
ecosystem: go
ingestedAt: '2026-08-05T20:51:27.866Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-71312)

Affected packages:

- `github.com/rclone/rclone <= 1.74.4`

Patched in:

- `github.com/rclone/rclone 1.75.0`

Source: https://github.com/advisories/GHSA-2m8m-jhrm-w6j2
