rclone: Incomplete path validation allows backend root escape in serve restic
Description
rclone is a command-line program to sync files and directories to and from different cloud storage providers. From 1.40.0 until 1.75.0, rclone serve restic does not correctly reject URL paths beginning with ../ in cmd/serve/restic/restic.go WithRemote, which accepts a leading parent path and passes it to GET, HEAD, POST, and DELETE handlers for configured backends including WebDAV, FTP, HTTP, Memory, and SFTP. An attacker who can access the REST endpoint may read, create, overwrite, or delete objects outside the path configured by the operator when the operator publishes a backend subdirectory and the backend credential can access parent or sibling objects. This issue is fixed in 1.75.0.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
1Patches
Vulnerability mechanics
References
3- github.com/rclone/rclone/commit/cc5a189f00efe68ed0ddb32d3237b42549a9f264mitrex_refsource_MISC
- github.com/rclone/rclone/releases/tag/v1.75.0mitrex_refsource_MISC
- github.com/rclone/rclone/security/advisories/GHSA-45pq-889g-fcghmitrex_refsource_CONFIRM
News mentions
0No linked articles in our index yet.