CVE-2024-52309
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.
How to fix
- sftpgo2.6.3 or later
- github.com/drakkan/sftpgo/v22.6.3 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| sftpgoGo | 2.4.0 ≤ v < 2.6.3 | 2.6.3 |
| github.com/drakkan/sftpgo/v2Go | 2.4.0 ≤ v < 2.6.3 | 2.6.3 |
| github.com/drakkan/sftpgoGo | No range specified | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.