Vulnerability · Published Feb 7, 2025 · Assigned by GitHub_M
CVE-2025-24366Insufficient sanitization of user provided rsync command in SFTPGo
High 7.5
In plain English
A high-severity OS command injection in sftpgo from drakkan. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 54% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/drakkan/sftpgo | no fix listed | GHSA-vj7w-3m8c-6vpx |
| Go | github.com/drakkan/sftpgo | no fix listed | GO-2025-3458 |
| Go | github.com/drakkan/sftpgo/v2 | 2.6.5 | GHSA-vj7w-3m8c-6vpx |
| Go | github.com/drakkan/sftpgo/v2 | 2.6.5 | GO-2025-3458 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H