Advisory

GHSA-hw5f-6wvv-xcrh

Also known as: CVE-2024-37897, GO-2024-2940

Summary

SFTPGo has insufficient access control for password reset

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-06-20 16:11 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

github.com/drakkan/sftpgo/v2

Go · All systems

Affected

  • introduced 2.2.0, fixed 2.6.1 (semver)

Fixed versions

2.6.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences