CVE-2025-24366 Details
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.
A command injection vulnerability has been identified in SFTPGo, an open-source file transfer solution, versions 0.9.5 through 2.6.4. The issue arises from insufficient sanitization of user-provided 'rsync' commands, allowing authenticated remote users to manipulate files with the same permissions as the SFTPGo server process. This vulnerability is particularly concerning because it could be exploited to read or write files on the server.
Users are advised to upgrade to SFTPGo version 2.6.5 or later, where this vulnerability has been addressed by implementing proper checks on the 'rsync' command arguments.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Feb 7, 2025CISA-ADP
Assessed Feb 7, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/drakkan/sftpgo/commit/b347ab6051f6c501da205c09315fe99cd1fa3ba1 | [email protected] | Source CodeVendor |
| https://github.com/drakkan/sftpgo/security/advisories/GHSA-vj7w-3m8c-6vpx | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| drakkan SFTPGo | >= 0.9.5, <= 2.6.4 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 7, 2025 | New CVE Received | [email protected] |
Volerion