ADVISORIES

Go Vulnerability Database

GO-2026-6184

Path traversal in serve restic in github.com/rclone/rclone

Details

In rclone serve restic, the WithRemote middleware fails to properly sanitize URL paths beginning with "../" or containing ".". Because path.Clean preserves leading parent directory components in relative paths, requests with leading traversal sequences bypass validation. On affected backends (such as WebDAV, FTP, SFTP, HTTP, and memory), an attacker with access to the REST endpoint can read, create, overwrite, or delete objects outside the configured root directory.

Affected packages

EcosystemPackageAffected versions
Gogithub.com/rclone/rclone
All versions before 1.75.0 (fixed in 1.75.0)

References