5.4medium
Insufficient access control for password reset in sftpgo
- Severity
- 5.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.31% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-hw5f-6wvv-xcrhGO-2024-2940
Description
SFTPGo is a full-featured and highly configurable SFTP, HTTP/S, FTP/S and WebDAV server - S3, Google Cloud Storage, Azure Blob. SFTPGo WebAdmin and WebClient support password reset. This feature is disabled in the default configuration. In SFTPGo versions prior to v2.6.1, if the feature is enabled, even users with access restrictions (e.g. expired) can reset their password and log in. Users are advised to upgrade to version 2.6.1. Users unable to upgrade may keep the password reset feature disabled or set a blank email address for users and admins with access restrictions so they cannot receive the email with the reset code and exploit the vulnerability.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| drakkan sftpgo | >= 2.2.0, < 2.6.1 | CVE List |
| sftpgo_project sftpgo | from 2.2.0 before 2.6.1 | CVE List |
| github.com/drakkan/sftpgo/v2 (Go) | from 2.2.0 before 2.6.1 | GitHub Advisory Database, Go Vulnerability Database |
| github.com/drakkan/sftpgo (Go) | all versions | Go Vulnerability Database |
All scores
| GitHub_M | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N |
Classification
What each source says
CVE List
SFTPGo is a full-featured and highly configurable SFTP, HTTP/S, FTP/S and WebDAV server - S3, Google Cloud Storage, Azure Blob. SFTPGo WebAdmin and WebClient support password reset. This feature is disabled in the default configuration. In SFTPGo versions prior to v2.6.1, if the feature is enabled, even users with access restrictions (e.g. expired) can reset their password and log in. Users are advised to upgrade to version 2.6.1. Users unable to upgrade may keep the password reset feature disabled or set a blank email address for users and admins with access restrictions so they cannot receive the email with the reset code and exploit the vulnerability.
GitHub Advisory Database
Impact
SFTPGo WebAdmin and WebClient support password reset. This feature is disabled in the default configuration. In SFTPGo versions prior to v2.6.1, if the feature is enabled, even users with access restrictions (e.g. expired) can reset their password and log in.
Patches
Fixed in v2.6.1.
Workarounds
The following workarounds are available:
- keep the password reset feature disabled.
- Set a blank email address for users and admins with access restrictions so they cannot receive the email with the reset code and exploit the vulnerability.
Go Vulnerability Database
SFTPGo has insufficient access control for password reset in github.com/drakkan/sftpgo
NVD (es)
SFTPGo es un servidor SFTP, HTTP/S, FTP/S y WebDAV con todas las funciones y altamente configurable: S3, Google Cloud Storage, Azure Blob. SFTPGo WebAdmin y WebClient admiten el restablecimiento de contraseña. Esta característica está deshabilitada en la configuración predeterminada. En las versiones de SFTPGo anteriores a la v2.6.1, si la función está habilitada, incluso los usuarios con restricciones de acceso (por ejemplo, vencidas) pueden restablecer su contraseña e iniciar sesión. Se recomienda a los usuarios que actualicen a la versión 2.6.1. Los usuarios que no puedan actualizar pueden mantener la función de restablecimiento de contraseña desactivada o establecer una dirección de correo electrónico en blanco para los usuarios y administradores con restricciones de acceso para que no puedan recibir el correo electrónico con el código de restablecimiento y explotar la vulnerabilidad.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-37897 changed 2024-08-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hw5f-6wvv-xcrh changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-2940 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2024-37897 changed 2026-06-17 | Public domain |