github.com/rclone/rclone
Affected
- introduced
1.46.0, fixed1.74.3(semver)
Fixed versions
1.74.3
Fix
- Fixed version
1.74.3go get github.com/rclone/[email protected]
Advisory
Also known as: BIT-rclone-2026-49980, CVE-2026-49980, GO-2026-5596
Rclone: Unauthenticated command execution in rclone rcd --rc-serve via inline remote instantiation, bypassing CVE-2026-41179 fix
Summary
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.
Versions from 1.55.0 onwards are vulnerable to command execution. Earlier versions (from 1.46.0) are vulnerable to the unauthenticated local file read described under "Additional impact" but not to command execution, because inline backend option overrides did not exist until 1.55.0.
Preconditions
Preconditions for this vulnerability are:
--rc flag or by running the rclone rcd server--rc-addr flag is in use--rc-user/--rc-pass/--rc-htpasswd/etc--rc-serve flag must be in useImpact
An unauthenticated network attacker who can reach the RC HTTP listener can execute commands as the rclone process user.
Additional impact observed during testing:
GET and HEAD both trigger backend initialization.local remotes.global.* options can mutate process-wide rclone configuration, including global.http_proxy.<img> tag pointing at http://127.0.0.1:5572/.... This is an additional impact multiplier, not the primary attack precondition.Mitigations / Workarounds
--rc-user/--rc-pass or --rc-htpasswd, which has always been the recommended deployment.--rc-serve if file serving is not needed.The Fix
The vulnerabilities in this advisory have been fixed by two commits:
--rc-serve inline remotesglobal.* connection string options changing configCritical Basis: The source's own band: CRITICAL
1.46.0, fixed 1.74.3 (semver)1.74.3
1.74.3go get github.com/rclone/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0