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

- Severity: Medium 5.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.88%, higher than 57% of CVEs (2026-11-30)
- Published: 2024-11-21T17:11:06.556Z
- Modified: 2026-06-17T08:06:59.253Z
- Also known as: GHSA-49cc-xrjf-9qf7, GO-2024-3283
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- drakkan sftpgo: >= 2.4.0, < 2.6.3
- github.com/drakkan/sftpgo/v2 (Go): from 2.4.0 before 2.6.3
- sftpgo (Go): from 2.4.0 before 2.6.3
- github.com/drakkan/sftpgo (Go): all versions

## Every score

- GitHub_M: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:4.0 Medium `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

- <https://github.com/drakkan/sftpgo/security/advisories/GHSA-49cc-xrjf-9qf7> (web)
- <https://github.com/drakkan/sftpgo/commit/88b1850b5806eee81150873d4e565144b21021fb> (fix, web)
- <https://github.com/drakkan/sftpgo/commit/b524da11e9466d05fe03304713ee1c61bb276ec4> (fix, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-52309> (advisory)
- <https://github.com/drakkan/sftpgo> (package)
- <https://pkg.go.dev/vuln/GO-2024-3283> (web)

## Sources

- CVE List: [CVE-2024-52309](https://www.cve.org/CVERecord?id=CVE-2024-52309), CVE Terms of Use, modified 2024-11-21
- GitHub Advisory Database: [GHSA-49cc-xrjf-9qf7](https://github.com/advisories/GHSA-49cc-xrjf-9qf7), CC-BY-4.0, modified 2024-12-02
- Go Vulnerability Database: [GO-2024-3283](https://pkg.go.dev/vuln/GO-2024-3283), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-52309](https://nvd.nist.gov/vuln/detail/CVE-2024-52309), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-52309 · Whole record: https://cve.day/CVE-2024-52309.json · Rebuilt by cve.day 2026-11-25T22:58:49.013Z
