Rclone is a command-line program to sync files and directories to and from different cloud storage providers. Starting in version 1.48.0 and prior to version 1.73.5, the RC endpoint `operations/fsinfo` is exposed without `AuthRequired: true` and accepts attacker-controlled `fs` input. Because `rc.GetFs(...)` supports inline backend definitions, an unauthenticated attacker can instantiate an attacker-controlled backend on demand. For the WebDAV backend, `bearer_token_command` is executed during backend initialization, making single-request unauthenticated local command execution possible on reachable RC deployments without global HTTP authentication. Version 1.73.5 patches the issue.
The RC endpoint `operations/fsinfo` does not have the `AuthRequired: true` flag set, making it accessible without authentication. It accepts an attacker-controlled `fs` parameter, and the `rc.GetFs(...)` mechanism supports inline backend definitions, allowing dynamic creation of backends as desired by the attacker. When the attacker specifies a WebDAV backend, the `bearer_token_command` option is executed by the operating system during backend initialization—before any user identity verification. As a result, a single HTTP request to an accessible RC instance is sufficient to execute any local command on the server.
An unauthenticated attacker can execute arbitrary system commands in the context of the Rclone process running on the server, leading to complete system takeover, data theft, or further lateral movement in the network.
Rclone should be updated to version 1.73.5, which patches the described vulnerability. Until the update is applied, it is recommended to disable the RC interface or secure it with global HTTP authentication and restrict access to the RC endpoint using a firewall to trusted IP addresses.
Rclone versions 1.48.0 to 1.73.4 inclusive, with the RC (Remote Control) interface enabled without global HTTP authentication.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XRclone
APPRclone1.48.0 – 1.73.5 (excl.)
Related vulnerabilities
Rclone RCD: nieuwierzytelniony command injection przez inline konfigurację zdalną
Rclone RC: pominięcie uwierzytelnienia przez endpoint options/set
Rclone: ucieczka poza katalog docelowy przez niezweryfikowany symlink
Rclone: path traversal w trybie serve restic --private-repos
An issue was discovered in Rclone before 1.53.3. Due to the use of a weak random number generator, the passwor...