{"answers":{"affected":"6 open source packages ship an affected version, including github.com/drakkan/sftpgo and github.com/drakkan/sftpgo/v2.","exploited":"There is no known exploitation of CVE-2025-24366 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2025-24366 is a high-severity command injection vulnerability in drakkan sftpgo, published on 7 Feb 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-24366 and fix it if it is affected.\n\nWhat it is: CVE-2025-24366 is a high-severity command injection vulnerability in drakkan sftpgo, published on 7 Feb 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-24366 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/drakkan/sftpgo (Go): affected all versions; no fix listed\n- github.com/drakkan/sftpgo (Go): affected all versions up to 1.2.2; no fix listed\n- github.com/drakkan/sftpgo (Go): affected all versions up to 1.2.2; no fix listed\n- github.com/drakkan/sftpgo/v2 (Go): affected all versions; fixed in 2.6.5\n- github.com/drakkan/sftpgo/v2 (Go): affected from 0.9.5; fixed in 2.6.5\n- github.com/drakkan/sftpgo/v2 (Go): affected from 0.9.5; fixed in 2.6.5\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-2025-24366/ (Markdown: https://insights.sbomify.com/CVE-2025-24366/index.md)","id":"CVE-2025-24366","markdown":"https://insights.sbomify.com/CVE-2025-24366/index.md","name":"CVE-2025-24366","record":{"aliases":["GHSA-vj7w-3m8c-6vpx","GO-2025-3458"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"SFTPGo file transfer","requires_auth":"low_privilege","summary":"Authenticated users can inject rsync options to read or write files on the server if the optional rsync command is enabled.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"SFTPGo is an open source, event-driven file transfer solution. SFTPGo supports execution of a defined set of commands via SSH. Besides a set of default commands some optional commands can be activated, one of them being `rsync`. It is disabled in the default configuration and it is limited to the local filesystem, it does not work with cloud/remote storage backends. Due to missing sanitization of the client provided `rsync` command, an authenticated remote user can use some options of the rsync command to read or write files with the permissions of the SFTPGo server process. This issue was fixed in version v2.6.5 by checking the client provided arguments. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["Go"],"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":"Insufficient sanitization of user provided rsync command in SFTPGo","id":"CVE-2025-24366","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2025"},"n_packages":6,"n_references":2,"next":{"headline":"Cacti allows Arbitrary File Creation leading to RCE","id":"CVE-2025-24367"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/drakkan/sftpgo","purl":"pkg:golang/github.com/drakkan/sftpgo","source":"GO-2025-3458"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.2.2"],"package":"github.com/drakkan/sftpgo","purl":null,"source":"GHSA-vj7w-3m8c-6vpx"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["1.2.2"],"package":"github.com/drakkan/sftpgo","purl":"pkg:golang/github.com/drakkan/sftpgo","source":"GHSA-vj7w-3m8c-6vpx"},{"ecosystem":"Go","fixed":["2.6.5"],"introduced":["0"],"last_affected":[],"package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"GO-2025-3458"},{"ecosystem":"Go","fixed":["2.6.5"],"introduced":["0.9.5"],"last_affected":[],"package":"github.com/drakkan/sftpgo/v2","purl":null,"source":"GHSA-vj7w-3m8c-6vpx"},{"ecosystem":"Go","fixed":["2.6.5"],"introduced":["0.9.5"],"last_affected":[],"package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"GHSA-vj7w-3m8c-6vpx"}],"prev":{"headline":"vaultwarden allows escalation of privilege via variable confusion in OrgHeaders trait","id":"CVE-2025-24365"},"products":["sftpgo"],"published":"2025-02-07","related":[],"sources":[{"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-02-07","vendors":["drakkan"]},"summary":"Authenticated users can inject rsync options to read or write files on the server if the optional rsync command is enabled.","url":"https://insights.sbomify.com/CVE-2025-24366/"}