Symlink Attack Affecting github.com/rclone/rclone/backend/local package, versions <1.74.4


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.37% (30th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMRCLONERCLONEBACKENDLOCAL-18020606
  • published20 Jul 2026
  • disclosed15 Jul 2026
  • creditNguyá»…n Tiến Thành

Introduced: 15 Jul 2026

CVE-2026-54572  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade github.com/rclone/rclone/backend/local to version 1.74.4 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack in the Object.Update() method in backend/local/local.go, which passes the target stored in a .rclonelink file to os.Symlink() without validating that it resolves within the destination directory. An attacker who controls the sync source can write arbitrary files as the victim user, and gain code execution by overwriting files such as ~/.ssh/authorized_keys, shell profiles, or cron jobs, by supplying a .rclonelink whose target is an absolute path or .. sequence that rclone plants and later follows without O_NOFOLLOW. Exploitation requires the victim to sync with the --links flag from an attacker-controlled source such as a bucket, WebDAV, or HTTP share, and the writes occur with the privileges of the user running rclone.

CVSS Base Scores

version 4.0
version 3.1