Rclone is a command-line program to sync files and directories to and from different cloud storage providers. From 1.46.0 until 1.74.3, rclone rcd --rc-serve accepts unauthenticated GET and HEAD requests to paths of the form: /[remote:path]/object. The remote value is parsed from the URL and passed to normal backend initialization. Inline remote configuration can set backend options that execute local commands during initialization. As a result, a single unauthenticated GET or HEAD request can execute a command as the rclone process user. This vulnerability is fixed in 1.74.3.
When Rclone runs in `rcd --rc-serve` mode, it accepts unauthenticated GET and HEAD requests to paths in the format `/[remote:path]/object`. The `remote` value is retrieved directly from the URL and passed to the backend initialization process. The inline remote configuration mechanism allows embedding backend configuration options directly in the remote resource name — some of these options cause local system commands to be executed during initialization. As a result, an attacker can execute arbitrary commands in the context of the user running the Rclone process without any authentication (CWE-306, CWE-78).
A remote attacker without authentication can execute arbitrary system commands with the privileges of the Rclone process, leading to complete system compromise, data theft, or destruction.
Update Rclone to version 1.74.3 or newer, where the vulnerability has been fixed. Until an update is available, it is recommended to avoid running Rclone with the `rcd --rc-serve` option in network-accessible environments or to protect the rcd interface with authentication mechanisms and restrict access at the firewall level.
Rclone versions 1.46.0 through 1.74.2 (inclusive), running in `rcd --rc-serve` mode
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HRclone
APPRclone1.46 – 1.74.3 (excl.)
Related vulnerabilities
Rclone: nieuwierzytelnione RCE przez endpoint RC operations/fsinfo
Rclone RC: pominięcie uwierzytelnienia przez endpoint options/set
Rclone: path traversal w trybie serve restic --private-repos
Rclone: ucieczka poza katalog docelowy przez niezweryfikowany symlink
An issue was discovered in Rclone before 1.53.3. Due to the use of a weak random number generator, the passwor...