Skip to content
OpenAdvisories
High · 7.5 CVE-2025-24366 EUVD-2025-3680GHSA-vj7w-3m8c-6vpxGO-2025-3458

Insufficient sanitization of user provided rsync command in SFTPGo

Published Feb 7, 2025 · Updated Feb 7, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
drakkan sftpgo >= 0.9.5, < 2.6.5 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES 15 SP6 govulncheck-vulndb 0.0.20250207T224745-150000.1.32.1 SUSE-SU-2025:0429-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20250207T224745-1.1 openSUSE-SU-2025:14754-1
openSUSE Leap 15.6 govulncheck-vulndb 0.0.20250207T224745-150000.1.32.1 SUSE-SU-2025:0429-1

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/drakkan/sftpgo <= 1.2.2 — GHSA-vj7w-3m8c-6vpx
Go github.com/drakkan/sftpgo all versions — GO-2025-3458
Go github.com/drakkan/sftpgo/v2 >= 0.9.5, < 2.6.5 2.6.5 GHSA-vj7w-3m8c-6vpx
Go github.com/drakkan/sftpgo/v2 < 2.6.5 2.6.5 GO-2025-3458

Advisories 2

References