CVE-2024-52309: SFTPGo - Command Injection
- Cve: CVE-2024-52309
- Name: SFTPGo - Command Injection
- 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.
- Impact: Attackers with admin permissions can execute arbitrary system commands, potentially leading to full system compromise.
- Remediation: Update to the latest version where system command execution is disabled by default or properly restrict allowed commands.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: admin_privileges
- Requirements: Attacker needs administrator permissions to configure EventManager commands
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.1
- Cvss 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Epss score: 0.0063
- Epss percentile: 0.51119
- Assignee: [email protected]
- Published at: 2024-11-21T18:15:12Z
- Age in days: 733
- Modified at: 2026-06-17T08:06:59Z
- Patch available: yes
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-52309
- Nvd status: deferred
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-20 | Improper Input Validation |
References
Same in every row:
- Source: nvd
- Tags:
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| sftpgo_project:sftpgo | >= 2.4.0, < 2.6.3 | no | cna_alias_text | /v1/products/sftpgo_project/sftpgo |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| drakkan/sftpgo | commit, fix, package, security_advisory | yes | /v1/repositories/drakkan/sftpgo |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts