{"answers":{"affected":"4 open source packages ship an affected version, including github.com/rclone/rclone and rclone.","exploited":"There is no known exploitation of CVE-2024-52522 in the wild and no public exploit code.","fix":"Upgrade github.com/rclone/rclone to 1.68.2 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-52522 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-52522 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/rclone/rclone (Go): affected from 1.59.0; fixed in 1.68.2\n- github.com/rclone/rclone (Go): affected from 1.59.0; fixed in 1.68.2\n- github.com/rclone/rclone (Go): affected from 1.59.0; fixed in 1.68.2\n- rclone (Bitnami): affected from 1.59.0; fixed in 1.68.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-52522/ (Markdown: https://insights.sbomify.com/CVE-2024-52522/index.md)","id":"CVE-2024-52522","markdown":"https://insights.sbomify.com/CVE-2024-52522/index.md","name":"CVE-2024-52522","record":{"aliases":["BIT-rclone-2024-52522","DEBIAN-CVE-2024-52522","GHSA-hrxh-9w67-g4cv","GO-2024-3271","JLSEC-2026-279","UBUNTU-CVE-2024-52522","openSUSE-SU-2024:14524-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Cloud storage sync tool","requires_auth":"low_privilege","summary":"Privileged rclone copies with symlink and metadata flags allow unprivileged users to modify file ownership and permissions, leading to privilege escalation.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"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","version":"4.0"},"cwes":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access"},{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"},{"id":"CWE-281","name":"Improper Preservation of Permissions"}],"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.","ecosystems":["Bitnami","Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Rclone Improper Permission and Ownership Handling on Symlink Targets with --links and --metadata","id":"CVE-2024-52522","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"privilege_escalation","year":"2024"},"n_packages":5,"n_references":2,"next":{"headline":"Nextcloud Server Custom defined credentials of external storages are sent back to the frontend","id":"CVE-2024-52523"},"packages":[{"ecosystem":"Bitnami","fixed":["1.68.2"],"introduced":["1.59.0"],"last_affected":[],"package":"rclone","purl":"pkg:bitnami/rclone","source":"BIT-rclone-2024-52522"},{"ecosystem":"Go","fixed":["1.68.2"],"introduced":["1.59.0"],"last_affected":[],"package":"github.com/rclone/rclone","purl":null,"source":"GHSA-hrxh-9w67-g4cv"},{"ecosystem":"Go","fixed":["1.68.2"],"introduced":["1.59.0"],"last_affected":[],"package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","source":"GHSA-hrxh-9w67-g4cv"},{"ecosystem":"Go","fixed":["1.68.2"],"introduced":["1.59.0"],"last_affected":[],"package":"github.com/rclone/rclone","purl":"pkg:golang/github.com/rclone/rclone","source":"GO-2024-3271"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.68.2-2.1"],"introduced":["0"],"last_affected":[],"package":"rclone","purl":"pkg:rpm/opensuse/rclone\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14524-1"}],"prev":{"headline":"Nextcloud Server has a potential hash collision for background jobs could skip queuing them","id":"CVE-2024-52521"},"products":["rclone"],"published":"2024-11-15","related":[],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-11-21","vendors":["rclone"]},"summary":"Privileged rclone copies with symlink and metadata flags allow unprivileged users to modify file ownership and permissions, leading to privilege escalation.","url":"https://insights.sbomify.com/CVE-2024-52522/"}