Vulnerability · Published Nov 21, 2024 · Assigned by GitHub_M

CVE-2024-52309SFTPGo allows administrators to restrict command execution from the EventManager

Medium 5.1

In plain English

A medium-severity improper input validation 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.6% (higher than 50% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)5.1Medium
Exploit odds (30 days)0.6%top 49.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

SFTPGo is a full-featured and highly configurable SFTP, HTTP/S, FTP/S and WebDAV server - S3, Google Cloud Storage, Azure Blob. One powerful feature of SFTPGo is the ability to have the EventManager execute scripts or run applications in response to certain events. This feature is very common in all software similar to SFTPGo and is generally unrestricted. However, any SFTPGo administrator with permission to run a script has access to the underlying OS/container with the same permissions as the user running SFTPGo. This is unexpected for some SFTPGo administrators who think that there is a clear distinction between accessing the system shell and accessing the SFTPGo WebAdmin UI. To avoid this confusion, running system commands is disabled by default in 2.6.3, and an allow list has been added so that system administrators configuring SFTPGo must explicitly define which commands are allowed to be configured from the WebAdmin UI.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Gogithub.com/drakkan/sftpgono fix listedGO-2024-3283
Gogithub.com/drakkan/sftpgo/v22.6.3GHSA-49cc-xrjf-9qf7
Gogithub.com/drakkan/sftpgo/v22.6.3GO-2024-3283
Gosftpgo2.6.3GHSA-49cc-xrjf-9qf7

Affected products (as reported)

VendorProductVersions
drakkan sftpgo >= 2.4.0, < 2.6.3

Weakness: CWE-20 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

References