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

Medium 5.4 Published Updated

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.

Weakness: CWE-59, CWE-61, CWE-281

Which versions are affected by CVE-2024-52522?

4 open source packages ship an affected version, including github.com/rclone/rclone and rclone.

PackageAffectedFixed in
github.com/rclone/rclone GoFrom 1.59.01.68.2
github.com/rclone/rclone GoFrom 1.59.01.68.2
github.com/rclone/rclone GoFrom 1.59.01.68.2
rclone BitnamiFrom 1.59.01.68.2
Linux distribution packages (1)
rclone openSUSE:TumbleweedAll versions1.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.

Is CVE-2024-52522 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free