CVE-2024-52309: SFTPGo allows administrators to restrict command execution from the EventManager
Impact 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.
Published Nov 21, 2024 · Updated Dec 2, 2024
Affected packages
github.com/drakkan/sftpgo/v2
- Ecosystem
- Go
- Affected
- >= 2.4.0, < 2.6.3
- Fixed in
- 2.6.3
- Check
go list -m github.com/drakkan/sftpgo/v2
sftpgo
- Ecosystem
- Go
- Affected
- >= 2.4.0, < 2.6.3
- Fixed in
- 2.6.3
- Check
go list -m sftpgo
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
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, so they can access the database and server configurations.
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.
Patches
To avoid this confusion, running system commands is now disabled by default, 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.
https://github.com/drakkan/sftpgo/commit/88b1850b5806eee81150873d4e565144b21021fb https://github.com/drakkan/sftpgo/commit/b524da11e9466d05fe03304713ee1c61bb276ec4
Workarounds
Allow EventManager to be used only by SFTPGo administrators who also have shell access.
Credited to hyperreality.
References
- https://github.com/drakkan/sftpgo/security/advisories/GHSA-49cc-xrjf-9qf7
- https://nvd.nist.gov/vuln/detail/CVE-2024-52309
- https://github.com/drakkan/sftpgo/commit/88b1850b5806eee81150873d4e565144b21021fb
- https://github.com/drakkan/sftpgo/commit/b524da11e9466d05fe03304713ee1c61bb276ec4
- https://pkg.go.dev/vuln/GO-2024-3283
- https://github.com/advisories/GHSA-49cc-xrjf-9qf7
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-103028
SFTPGo source-side file-pattern filter bypass during copy operations
medium4.3Oct 15, 2026CVE-2026-77375
SFTPGo: Denial of service via malformed SSH channel request
medium6.5Oct 15, 2026CVE-2026-49244
SFTPGo has path confinement bypass in public browsable share partial ZIP download
medium5.9Jul 2, 2026CVE-2026-49245
SFTPGo has stored XSS via inline parameter on public shares and user file download
low3.7Jul 2, 2026CVE-2026-30914
SFTPGo Vulnerable to Path Traversal and Permission Bypass via Path Normalization Discrepancy
medium5.3No fixMar 13, 2026CVE-2026-30915
SFTPGo improperly sanitizes placeholders in group home directories/key prefixes
medium6.9Mar 13, 2026
