CVE-2025-24366 json
Insufficient sanitization of user provided rsync command in SFTPGo
published 2025-02-07 21 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-3680 , GHSA-vj7w-3m8c-6vpx , GO-2025-3458
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/drakkan/sftpgo/v2 2.6.5
- sftpgo_project sftpgo 2.6.5
- govulncheck-vulndb SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 0.0.20250207T224745-150000.1.32.1
suse advisories SUSE-SU-2025:0429-1
- govulncheck-vulndb openSUSE Tumbleweed 0.0.20250207T224745-1.1
opensuse advisories openSUSE-SU-2025:14754-1
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 21 mo ago
Exploit prediction
0.73% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/drakkan/sftpgo/v2 | >=0.9.5, <2.6.5 <2.6.5 |
2.6.5 |
| go | github.com/drakkan/sftpgo | <=1.2.2 all versions |
no fix listed |
Affected products
- drakkan sftpgo
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
Sources
- CVE List CVE-2025-24366
- GitHub Advisory GHSA-vj7w-3m8c-6vpx
- NVD CVE-2025-24366
- OSV GO-2025-3458
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.