VDB
KO

GO-2026-6184

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

Quick fix

GO-2026-6184 — github.com/rclone/rclone: upgrade to the fixed version with the command below.

go get github.com/rclone/rclone@v1.75.0

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go / github.com/rclone/rclone
Introduced in: 0 Fixed in: 1.75.0
Fix go get github.com/rclone/rclone@v1.75.0

References