{"id":"CVE-2025-24366","published":"2025-02-07T21:16:40Z","modified":"2025-02-07T22:49:18Z","title":"Insufficient sanitization of user provided rsync command in SFTPGo","vendor":"drakkan","product":"sftpgo","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00726,"percentile":0.55064,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/drakkan/sftpgo/security/advisories/GHSA-vj7w-3m8c-6vpx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/drakkan/sftpgo/commit/b347ab6051f6c501da205c09315fe99cd1fa3ba1","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":11.01},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"drakkan","affectedVersions":[{"vendor":"drakkan","product":"sftpgo","versions":[">= 0.9.5, < 2.6.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-02-07T22:49:03.247256Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/drakkan/sftpgo/v2","vulnerableRanges":[">=0.9.5, <2.6.5","<2.6.5"],"patched":["2.6.5"],"from":["GHSA-vj7w-3m8c-6vpx","GO-2025-3458"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/drakkan/sftpgo","vulnerableRanges":["<=1.2.2","all versions"],"patched":[],"from":["GHSA-vj7w-3m8c-6vpx","GO-2025-3458"],"provenance":"source"}],"summary":{"text":"SFTPGo, an open source event-driven file transfer solution, has insufficient sanitization of the client-provided rsync command, which is an optional command that is disabled by default and only works with the local filesystem. An authenticated remote user can abuse certain rsync options to read or write files with the permissions of the SFTPGo server process, provided the rsync command has been enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:50Z"},"euvd":{"id":"EUVD-2025-3680","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-37897","published":"2024-06-20","fixed":"2.6.1","kev":false},{"cve":"CVE-2024-52309","published":"2024-11-21","fixed":"2.6.3","kev":false},{"cve":"CVE-2024-52801","published":"2024-11-29","fixed":"2.6.4","kev":false,"link":{"from":"CVE-2024-52801","to":"CVE-2025-24366","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/drakkan/sftpgo/v2","fromFixed":"2.6.4","toFixed":"2.6.5","daysApart":70}]}},{"cve":"CVE-2025-24366","published":"2025-02-07","fixed":"2.6.5","kev":false},{"cve":"CVE-2026-30914","published":"2026-03-13","fixed":"2.7.1","kev":false,"link":{"from":"CVE-2025-24366","to":"CVE-2026-30914","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/drakkan/sftpgo/v2","fromFixed":"2.6.5","toFixed":"2.7.1","daysApart":399}]}},{"cve":"CVE-2026-30915","published":"2026-03-13","fixed":"2.7.1","kev":false,"link":{"from":"CVE-2025-24366","to":"CVE-2026-30915","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/drakkan/sftpgo/v2","fromFixed":"2.6.5","toFixed":"2.7.1","daysApart":399}]}},{"cve":"CVE-2026-49244","published":"2026-08-20","fixed":"2.7.3","kev":false}],"package":"Go:github.com/drakkan/sftpgo/v2"}}