Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/drakkan/sftpgo/v2
  4. ›
  5. CVE-2024-52309

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

November 21, 2024 (updated December 2, 2024)

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.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2024-52309 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.4.0 before 2.6.3

Fixed versions

  • 2.6.3

Solution

Upgrade to version 2.6.3 or above.

Source file

go/github.com/drakkan/sftpgo/v2/CVE-2024-52309.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:20 +0000.