{"id":"CVE-2024-52309","aliases":["CVE-2024-52309","GHSA-49cc-xrjf-9qf7","GO-2024-3283"],"related":[],"kind":"vulnerability","state":"published","title":"SFTPGo allows administrators to restrict command execution from the EventManager","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nOne powerful feature of SFTPGo is the ability to have the EventManager execute scripts or run applications in response to certain events.\nThis feature is very common in all software similar to SFTPGo and is generally unrestricted. \n\nHowever, 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.\n\nThis 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.\n\n### Patches\n\nTo 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.\n\nhttps://github.com/drakkan/sftpgo/commit/88b1850b5806eee81150873d4e565144b21021fb\nhttps://github.com/drakkan/sftpgo/commit/b524da11e9466d05fe03304713ee1c61bb276ec4\n\n### Workarounds\n\nAllow EventManager to be used only by SFTPGo administrators who also have shell access.","format":"markdown","source":"ghsa"},{"lang":"en","text":"SFTPGo allows administrators to restrict command execution from the EventManager in github.com/drakkan/sftpgo","format":"markdown","source":"go"},{"lang":"es","text":"SFTPGo es un servidor SFTP, HTTP/S, FTP/S y WebDAV con todas las funciones y altamente configurable: S3, Google Cloud Storage, Azure Blob. Una característica poderosa de SFTPGo es la capacidad de hacer que EventManager ejecute scripts o ejecute aplicaciones en respuesta a ciertos eventos. Esta característica es muy común en todo el software similar a SFTPGo y generalmente no tiene restricciones. Sin embargo, cualquier administrador de SFTPGo con permiso para ejecutar un script tiene acceso al sistema operativo/contenedor subyacente con los mismos permisos que el usuario que ejecuta SFTPGo. Esto es inesperado para algunos administradores de SFTPGo que piensan que existe una distinción clara entre acceder al shell del sistema y acceder a la interfaz de usuario de WebAdmin de SFTPGo. Para evitar esta confusión, la ejecución de comandos del sistema está deshabilitada de forma predeterminada en 2.6.3 y se agregó una lista de permitidos para que los administradores del sistema que configuren SFTPGo deban definir explícitamente qué comandos se pueden configurar desde la interfaz de usuario de WebAdmin.","source":"nvd"}],"published":"2024-11-21T17:11:06.556Z","modified":"2026-06-17T08:06:59.253Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":5.1,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"}],"cwes":["CWE-20"],"affected":[{"ranges":[{"version":">= 2.4.0, < 2.6.3","status":"affected"}],"vendor":"drakkan","product":"sftpgo","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.4.0","status":"affected","fixed":"2.6.3"}],"ecosystem":"Go","package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.4.0","status":"affected","fixed":"2.6.3"}],"ecosystem":"Go","package":"sftpgo","purl":"pkg:golang/sftpgo","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/drakkan/sftpgo","purl":"pkg:golang/github.com/drakkan/sftpgo","source":"go"},{"ranges":[{"type":"semver","introduced":"2.4.0","status":"affected","fixed":"2.6.3"}],"ecosystem":"Go","package":"github.com/drakkan/sftpgo/v2","purl":"pkg:golang/github.com/drakkan/sftpgo/v2","source":"go"}],"references":[{"url":"https://github.com/drakkan/sftpgo/security/advisories/GHSA-49cc-xrjf-9qf7","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/drakkan/sftpgo/commit/88b1850b5806eee81150873d4e565144b21021fb","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/drakkan/sftpgo/commit/b524da11e9466d05fe03304713ee1c61bb276ec4","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52309","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/drakkan/sftpgo","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3283","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-21T20:40:11.076Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-52309","url":"https://www.cve.org/CVERecord?id=CVE-2024-52309","licence":"CVE Terms of Use","modified":"2024-11-21T20:40:32.988Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-49cc-xrjf-9qf7","url":"https://github.com/advisories/GHSA-49cc-xrjf-9qf7","licence":"CC-BY-4.0","modified":"2024-12-02T18:04:00.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3283","url":"https://pkg.go.dev/vuln/GO-2024-3283","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:01.517Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-52309","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52309","licence":"Public domain","modified":"2026-06-17T08:06:59.253Z"}],"updatedAt":"2026-11-25T22:58:49.013Z","epss":{"score":0.00882,"percentile":0.56981,"date":"2026-11-30T12:00:22.000Z"}}