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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.7%top 45.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Gogithub.com/drakkan/sftpgono fix listedGHSA-vj7w-3m8c-6vpx
Gogithub.com/drakkan/sftpgono fix listedGO-2025-3458
Gogithub.com/drakkan/sftpgo/v22.6.5GHSA-vj7w-3m8c-6vpx
Gogithub.com/drakkan/sftpgo/v22.6.5GO-2025-3458

Affected products (as reported)

VendorProductVersions
drakkan sftpgo >= 0.9.5, < 2.6.5

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References