Vulnerability · Published Nov 15, 2024 · Assigned by GitHub_M

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

Medium 5.4

In plain English

A medium-severity security flaw in rclone from rclone. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.4Medium
Exploit odds (30 days)0.2%top 84.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20rclone1.68.2-r0ALPINE-CVE-2024-52522
Alpine:v3.21rclone1.68.2-r0ALPINE-CVE-2024-52522
Alpine:v3.22rclone1.68.2-r0ALPINE-CVE-2024-52522
Alpine:v3.23rclone1.68.2-r0ALPINE-CVE-2024-52522
Alpine:v3.24rclone1.68.2-r0ALPINE-CVE-2024-52522
Debian:12rcloneno fix listedDEBIAN-CVE-2024-52522
Debian:13rcloneno fix listedDEBIAN-CVE-2024-52522
Gogithub.com/rclone/rclone1.68.2GHSA-hrxh-9w67-g4cv
Gogithub.com/rclone/rclone1.68.2GO-2024-3271
Ubuntu:25.10rcloneno fix listedUBUNTU-CVE-2024-52522
Ubuntu:26.10rcloneno fix listedUBUNTU-CVE-2024-52522

Affected products (as reported)

VendorProductVersions
rclone rclone >= 1.59.0, < 1.68.2

Weakness: CWE-59, CWE-61, CWE-281 · Vector: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:L/SI:L/SA:L

References