CVE-2024-52522 Rclone Improper Permission and Ownership Handling on Symlink Targets with --links and --metadata
Privileged rclone copies with symlink and metadata flags allow unprivileged users to modify file ownership and permissions, leading to privilege escalation.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2024-52522?
CVE-2024-52522 is a medium-severity vulnerability in rclone, published on 15 Nov 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
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.
Which versions are affected by CVE-2024-52522?
4 open source packages ship an affected version, including github.com/rclone/rclone and rclone.
| Package | Affected | Fixed in |
|---|---|---|
github.com/rclone/rclone Go | From 1.59.0 | 1.68.2 |
github.com/rclone/rclone Go | From 1.59.0 | 1.68.2 |
github.com/rclone/rclone Go | From 1.59.0 | 1.68.2 |
rclone Bitnami | From 1.59.0 | 1.68.2 |
Linux distribution packages (1)
rclone openSUSE:Tumbleweed | All versions | 1.68.2-2.1 |
How do I fix CVE-2024-52522?
Upgrade github.com/rclone/rclone to 1.68.2 or later.
Is CVE-2024-52522 being exploited?
There is no known exploitation of CVE-2024-52522 in the wild and no public exploit code.
Sources
Also known as BIT-rclone-2024-52522, DEBIAN-CVE-2024-52522, GHSA-hrxh-9w67-g4cv, GO-2024-3271, JLSEC-2026-279, UBUNTU-CVE-2024-52522 and 1 more.