{"id":"JLSEC-2026-280","summary":"Rclone: Unauthenticated options/set allows runtime auth bypass, leading to sensitive operations and command execution","details":"### Summary\n\nThe RC endpoint `options/set` is exposed without `AuthRequired: true`, but it can mutate global runtime configuration, including the RC option block itself. An unauthenticated attacker can set `rc.NoAuth=true`, which disables the authorization gate for many RC methods registered with `AuthRequired: true` on reachable RC servers that are started without global HTTP authentication. This can lead to unauthorized access to sensitive administrative functionality, including configuration and operational RC methods.\n\n### Preconditions\n\nPreconditions for this vulnerability are:\n\n  - The rclone remote control API **must** be enabled, either by the `--rc` flag or by running the `rclone rcd` server\n  - The remote control API **must** be reachable by the attacker - by default rclone only serves the rc to localhost unless the `--rc-addr` flag is in use\n  - The rc must have been deployed **without** global RC HTTP authentication - so not using `--rc-user`/`--rc-pass`/`--rc-htpasswd`/etc\n\n### Details\n\nThe root cause is present from v1.45 onward. Some higher-impact exploitation paths became available in later releases as additional RC functionality was introduced.\n\nThe issue is caused by two properties of the RC implementation:\n\n 1. `options/set` is exposed without `AuthRequired: true`\n 2. the RC server enforces authorization for `AuthRequired` calls using the mutable runtime value `s.opt.NoAuth`\n\nRelevant code paths:\n\n  - [`fs/rc/config.go`](https://github.com/rclone/rclone/blob/bf55d5e6d37fd86164a87782191f9e1ffcaafa82/fs/rc/config.go)\n    \n      + registers `options/set` without `AuthRequired: true`\n      + `rcOptionsSet` reshapes attacker-controlled input into global option blocks\n\n  - [`fs/rc/rcserver/rcserver.go`](https://github.com/rclone/rclone/blob/bf55d5e6d37fd86164a87782191f9e1ffcaafa82/fs/rc/rcserver/rcserver.go)\n    \n      + request handling checks:\n        \n          * `if !s.opt.NoAuth && call.AuthRequired && !s.server.UsingAuth()`\n    \n      + once `rc.NoAuth` is changed to `true`, later `AuthRequired` methods become callable without credentials\n\nThis creates a runtime auth-bypass primitive on the RC interface.\n\nAfter setting `rc.NoAuth=true`, previously protected administrative methods become callable, including configuration and operational endpoints such as:\n\n  - `config/listremotes`\n  - `config/dump`\n  - `config/get`\n  - `operations/list`\n  - `operations/copyfile`\n  - `core/command`\n\nRelevant code for the second-stage command execution path:\n\n  - [`fs/metadata.go`](https://github.com/rclone/rclone/blob/bf55d5e6d37fd86164a87782191f9e1ffcaafa82/fs/metadata.go)\n    \n      + `metadataMapper()` uses `exec.Command(...)`\n\n  - [`fs/operations/rc.go`](https://github.com/rclone/rclone/blob/bf55d5e6d37fd86164a87782191f9e1ffcaafa82/fs/operations/rc.go)\n    \n      + `operations/copyfile` is normally `AuthRequired: true`\n      + once `rc.NoAuth=true`, it becomes reachable without credentials\n\nThis was validating using the following:\n\n  - current `master` as of 2026-04-14: `bf55d5e6d37fd86164a87782191f9e1ffcaafa82`\n  - latest public release tested locally: `v1.73.4`\n\nThe issue was also verified on a public amd64 Ubuntu host controlled by the tester, using direct host execution (not containerized PoC execution).\n\n### PoC\n\n#### Minimal reproduction\n\nStart a vulnerable server:\n\n```bash\nrclone rcd --rc-addr 127.0.0.1:5572\n```\n\nNo `--rc-user`, no `--rc-pass`, no `--rc-htpasswd`.\n\nFirst confirm that a protected RC method is initially blocked:\n\n```bash\ncurl -sS -X POST http://127.0.0.1:5572/config/listremotes \\\n  -H 'Content-Type: application/json' \\\n  --data '{}'\n```\n\nExpected result: HTTP 403.\n\nUse unauthenticated `options/set` to disable the auth gate:\n\n```bash\ncurl -sS -X POST http://127.0.0.1:5572/options/set \\\n  -H 'Content-Type: application/json' \\\n  --data '{\"rc\":{\"NoAuth\":true}}'\n```\n\nExpected result: HTTP 200 `{}`\n\nThen call the same protected method again without credentials:\n\n```bash\ncurl -sS -X POST http://127.0.0.1:5572/config/listremotes \\\n  -H 'Content-Type: application/json' \\\n  --data '{}'\n```\n\nExpected result: HTTP 200 with a JSON response such as:\n\n```json\n{\"remotes\":[]}\n```\n\n#### Testing performed\n\nThis was successfully reproduced:\n\n  - on the tester's ocal test environment\n  - on a public amd64 Ubuntu host controlled by the tester\n\nUsing the public host, the following was confirmed:\n\n  - unauthenticated `options/set` successfully set `rc.NoAuth=true`\n  - previously protected RC methods became callable without credentials\n  - the issue was reproducible through direct host execution\n\n### Impact\n\nThis is an authorization bypass on the RC administrative interface.\n\nIt can allow an unauthenticated network attacker, on a reachable RC deployment without global HTTP authentication, to disable the intended auth boundary for protected RC methods and gain access to sensitive configuration and operational functionality.\n\nDepending on the enabled RC surface and runtime configuration, this can further enable higher-impact outcomes such as local file read, credential/config disclosure, filesystem enumeration, and command execution.","modified":"2026-04-27T21:02:20.133079565Z","published":"2026-04-27T20:35:04.206Z","upstream":["CVE-2026-41176","EUVD-2026-25142","GHSA-25qr-6mpr-f7qx"],"database_specific":{"sources":[{"id":"CVE-2026-41176","database_specific":{"status":"Undergoing Analysis"},"url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-41176","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41176","published":"2026-04-23T00:16:45.800Z","imported":"2026-04-27T16:36:01.604Z","modified":"2026-04-24T14:50:56.203Z"},{"id":"GHSA-25qr-6mpr-f7qx","url":"https://api.github.com/advisories/GHSA-25qr-6mpr-f7qx","published":"2026-04-22T14:44:13Z","html_url":"https://github.com/advisories/GHSA-25qr-6mpr-f7qx","imported":"2026-04-27T16:36:09.090Z","modified":"2026-04-27T16:23:08Z"},{"url":"https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-25142","id":"EUVD-2026-25142","published":"2026-04-22T23:57:54Z","modified":"2026-04-25T03:55:43Z","imported":"2026-04-27T16:36:01.240Z","html_url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-25142"}],"license":"CC-BY-4.0"},"references":[{"type":"WEB","url":"https://github.com/advisories/GHSA-25qr-6mpr-f7qx"},{"type":"WEB","url":"https://github.com/rclone/rclone/blob/bf55d5e6d37fd86164a87782191f9e1ffcaafa82/fs/rc/config.go"},{"type":"WEB","url":"https://github.com/rclone/rclone/blob/bf55d5e6d37fd86164a87782191f9e1ffcaafa82/fs/rc/rcserver/rcserver.go"},{"type":"WEB","url":"https://github.com/rclone/rclone/security/advisories/GHSA-25qr-6mpr-f7qx"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41176"}],"affected":[{"package":{"name":"Rclone_jll","ecosystem":"Julia","purl":"pkg:julia/Rclone_jll?uuid=d3707c4a-c138-5086-90bb-c65de4e50315"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.73.5+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-280.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"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"}],"credits":[{"name":"0wnerDied","contact":["https://github.com/0wnerDied"],"type":"FINDER"},{"name":"ncw","contact":["https://github.com/ncw"],"type":"REMEDIATION_DEVELOPER"}]}