UNKNOWN Go

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

GO-2026-6184 · BIT-rclone-2026-71309 · CVE-2026-71309 · GHSA-45pq-889g-fcgh

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

Description

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes