MediumGHSA-49cc-xrjf-9qf7CVE-2024-52309GO-2024-3283

SFTPGo allows administrators to restrict command execution from the EventManager

Published 21 Nov 2024 · Updated 2 Dec 2024

Is your project on an affected github.com/drakkan/sftpgo/v2?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected packages

Affected
>=2.4.0 <2.6.3
Fixed in
2.6.3
Update to the fixed version for your release line, for example:go get github.com/drakkan/sftpgo/v2@v2.6.3
Affected
>=2.4.0 <2.6.3
Fixed in
2.6.3
Update to the fixed version for your release line, for example:go get sftpgo@v2.6.3

Details

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.

Is GHSA-49cc-xrjf-9qf7 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/drakkan/sftpgo/v2, and gives you the command that fixes it.

More advisories for github.com/drakkan/sftpgo/v2

  • LowCVE-2026-77375SFTPGo: Denial of service via malformed SSH channel request in github.com/drakkan/sftpgo · 19 Oct 2026
  • LowCVE-2026-103028SFTPGo source-side file-pattern filter bypass during copy operations in github.com/drakkan/sftpgo · 19 Oct 2026
  • MediumCVE-2026-103028SFTPGo source-side file-pattern filter bypass during copy operations · 15 Oct 2026
  • MediumCVE-2026-77375SFTPGo: Denial of service via malformed SSH channel request · 15 Oct 2026
  • LowCVE-2026-49245SFTPGo has stored XSS via inline parameter on public shares and user file download in github.com/drakkan/sftpgo · 7 Jul 2026
  • LowCVE-2026-49244SFTPGo has path confinement bypass in public browsable share partial ZIP download in github.com/drakkan/sftpgo · 7 Jul 2026
All 22 advisories for github.com/drakkan/sftpgo/v2

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.