Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-52522
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 10:53 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 15 Nov 2024, 17:15 UTC

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.

osv:CVE-2024-52522
Complete source record
{
  "id": "9240261f640235b813ad6d2a362b9a15d5c448e77f93ac621dcef9c0de8a153d",
  "url": "https://osv.dev/vulnerability/CVE-2024-52522",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Rclone Improper Permission and Ownership Handling on Symlink Targets with --links and --metadata",
    "summary": "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.",
    "evidence": "osv:CVE-2024-52522",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-52522",
      "aliases": [
        "BIT-rclone-2024-52522",
        "CVE-2024-52522",
        "GHSA-hrxh-9w67-g4cv",
        "GO-2024-3271"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/rclone/rclone",
              "type": "GIT",
              "events": [
                {
                  "introduced": "00a684d877548b47990a96cef8eeb1462a590c2a"
                },
                {
                  "fixed": "f2d16ab4c5856098abe9e194c5f4dde6bfc56b66"
                },
                {
                  "fixed": "01ccf204f42b4f68541b16843292439090a2dcf0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.59.0"
                      },
                      {
                        "fixed": "1.68.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  },
                  {
                    "range": [
                      {
                        "fixed": "01ccf204f42b4f68541b16843292439090a2dcf0"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.68.1",
            "v1.68.0",
            "v1.67.0",
            "v1.66.0",
            "v1.65.0",
            "v1.64.0",
            "v1.63.0",
            "v1.62.0",
            "v1.61.0",
            "v1.60.0",
            "v1.59.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-52522.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:28.043236687Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52522.json",
        "https://github.com/rclone/rclone/security/advisories/GHSA-hrxh-9w67-g4cv",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-52522",
        "https://github.com/rclone/rclone/commit/01ccf204f42b4f68541b16843292439090a2dcf0"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-281",
          "CWE-59",
          "CWE-61"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52522.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-52522",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 494724,
  "published_at": "2024-11-15T17:15:43.357+00:00"
}