Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-52309

MEDIUM 5.1EPSS 57%

SFTPGo allows administrators to restrict command execution from the EventManager

Also known as GHSA-49cc-xrjf-9qf7, GO-2024-3283

Mitigation

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

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

Vulnerability facts

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
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
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:NOpen in CVSS calculator
Show all 11 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
EPSS
0.88% chance of exploitation in 30 days (percentile 57, 2026-11-26)
CWE
CWE-20
Published
Modified

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

Package / productAffectedFixedSource
Go github.com/drakkan/sftpgo/v2>= 2.4.0, < 2.6.32.6.3osv
Go sftpgo>= 2.4.0, < 2.6.32.6.3osv
Go github.com/drakkan/sftpgo——osv
drakkan sftpgo>= 2.4.0, < 2.6.3—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors