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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.1
- **CVSS:** 5.1 (v4.0, CNA) `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`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Attack requirements: None; Privileges required: High; User interaction: None; Confidentiality impact: None; Integrity impact: None; Availability impact: None; Confidentiality impact on other systems: Low; Integrity impact on other systems: Low; Availability impact on other systems: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.88% (percentile 57, 2026-11-26)
- **CWE:** CWE-20
- **Aliases:** GHSA-49cc-xrjf-9qf7, GO-2024-3283
- **Published:** 2024-11-21T17:11:06.556Z
- **Modified:** 2026-06-17T08:06:59.253Z

## Who should check

- Projects that depend on Go package github.com/drakkan/sftpgo/v2 (\>= 2.4.0, \< 2.6.3)
- Projects that depend on Go package sftpgo (\>= 2.4.0, \< 2.6.3)
- Projects that depend on Go package github.com/drakkan/sftpgo
- Anyone running drakkan sftpgo \>= 2.4.0, \< 2.6.3

## 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 and fixed versions

- Go `github.com/drakkan/sftpgo/v2`: affected \>= 2.4.0, \< 2.6.3; fixed 2.6.3 (osv)
- Go `sftpgo`: affected \>= 2.4.0, \< 2.6.3; fixed 2.6.3 (osv)
- Go `github.com/drakkan/sftpgo`: affected see advisory; fixed no fix listed yet (osv)
- drakkan sftpgo: \>= 2.4.0, \< 2.6.3 (cvelist)

## Mitigation

- Upgrade github.com/drakkan/sftpgo/v2 to 2.6.3 or later.
- Upgrade sftpgo to 2.6.3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-52309. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-52309.md
Affected: github.com/drakkan/sftpgo/v2 >= 2.4.0, < 2.6.3; sftpgo >= 2.4.0, < 2.6.3; github.com/drakkan/sftpgo
Fixed in: 2.6.3

Steps:
1. Search this machine and project for github.com/drakkan/sftpgo/v2 (Go), sftpgo (Go), github.com/drakkan/sftpgo (Go), drakkan sftpgo: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-52309 being exploited?

There is no confirmed exploitation: CVE-2024-52309 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.88% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-52309?

Medium: CVSS 5.1 (v4.0, scored by CNA). Remote, login needed.

### Which versions are affected by CVE-2024-52309?

github.com/drakkan/sftpgo/v2 \>= 2.4.0, \< 2.6.3; sftpgo \>= 2.4.0, \< 2.6.3; github.com/drakkan/sftpgo.

### Is there a fix for CVE-2024-52309?

Yes. Fixed in 2.6.3. Upgrade github.com/drakkan/sftpgo/v2 to 2.6.3 or later. Upgrade sftpgo to 2.6.3 or later.

### How do I check if I'm affected by CVE-2024-52309?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/drakkan/sftpgo/security/advisories/GHSA-49cc-xrjf-9qf7>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-52309>
- patch: <https://github.com/drakkan/sftpgo/commit/88b1850b5806eee81150873d4e565144b21021fb>
- patch: <https://github.com/drakkan/sftpgo/commit/b524da11e9466d05fe03304713ee1c61bb276ec4>
- other: <https://github.com/drakkan/sftpgo>
- other: <https://pkg.go.dev/vuln/GO-2024-3283>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-52309>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-49cc-xrjf-9qf7> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-3283> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-52309> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-52309>
