CVE-2024-52522

Rclone Improper Permission and Ownership Handling on Symlink Targets with --links and --metadata

State
Published
Severity
5.4 Medium
Published
Nov 15, 2024
Updated
Nov 21, 2024
Reserved
Nov 11, 2024

Read the record on cve.org

Description

Rclone is a command-line program to sync files and directories to and from different cloud storage providers. Insecure handling of symlinks with --links and --metadata in rclone while copying to local disk allows unprivileged users to indirectly modify ownership and permissions on symlink target files when a superuser or privileged process performs a copy. This vulnerability could enable privilege escalation and unauthorized access to critical system files, compromising system integrity, confidentiality, and availability. This vulnerability is fixed in 1.68.2.

Scores

CVSSScoreVectorSource
4.05.4 MediumCVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:L/SI:L/SA:LGitHub_M

Weaknesses

  • CWE-59 Improper Link Resolution Before File Access ('Link Following')
  • CWE-61 UNIX Symbolic Link (Symlink) Following
  • CWE-281 Improper Preservation of Permissions

Affected Products

ProductVersions
rclonerclone
  • >= 1.59.0, < 1.68.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.