CVE-2024-37897 Insufficient access control for password reset in sftpgo
Attackers with restricted access can reset passwords and log in if the password reset feature is enabled in SFTPGo.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-37897?
CVE-2024-37897 is a medium-severity authentication bypass vulnerability in drakkan sftpgo, published on 20 Jun 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-287
Which versions are affected by CVE-2024-37897?
4 open source packages ship an affected version, including github.com/drakkan/sftpgo/v2 and github.com/drakkan/sftpgo.
| Package | Affected | Fixed in |
|---|---|---|
github.com/drakkan/sftpgo/v2 Go | From 2.2.0 | 2.6.1 |
github.com/drakkan/sftpgo/v2 Go | From 2.2.0 | 2.6.1 |
github.com/drakkan/sftpgo/v2 Go | From 2.2.0 | 2.6.1 |
github.com/drakkan/sftpgo Go | All versions | None |
How do I fix CVE-2024-37897?
Upgrade github.com/drakkan/sftpgo/v2 to 2.6.1 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2024-37897 being exploited?
There is no known exploitation of CVE-2024-37897 in the wild and no public exploit code.
Sources
Also known as GHSA-hw5f-6wvv-xcrh, GO-2024-2940.