CVE-2025-24366
HIGH 7.5CVSS 3.1SFTPGo has insufficient sanitization of user provided rsync command
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.
- Published
- 7 Feb 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-78
- Also known as
- GHSA-vj7w-3m8c-6vpxGO-2025-3458
- Sources
- NVDJSONOSV GHSA-vj7w-3m8c-6vpxJSONOSV GO-2025-3458JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/drakkan/sftpgo/v2 | >= 0.9.5, < 2.6.5 | 2.6.5 |
| OSV | Go | github.com/drakkan/sftpgo | <= 1.2.2 | |
| OSV | Go | github.com/drakkan/sftpgo | all versions | |
| OSV | Go | github.com/drakkan/sftpgo/v2 | < 2.6.5 | 2.6.5 |
References
- https://github.com/drakkan/sftpgo/commit/b347ab6051f6c501da205c09315fe99cd1fa3ba1 · WEB, FIX
- https://github.com/drakkan/sftpgo/security/advisories/GHSA-vj7w-3m8c-6vpx · WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-24366 · ADVISORY
- https://github.com/drakkan/sftpgo · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 7 Feb 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Feb 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Feb 2025)