Recovery codes abuse in SFTPGo
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-287.
Summary
SFTPGo is configurable SFTP server with optional HTTP/S, FTP/S and WebDAV support. SFTPGo WebAdmin and WebClient support login using TOTP (Time-based One Time Passwords) as a secondary authentication factor. Because TOTPs are often configured on mobile devices that can be lost, stolen or damaged, SFTPGo also supports recovery codes. These are a set of one time use codes that can be used instead of the TOTP. In SFTPGo versions from version 2.2.0 to 2.3.3 recovery codes can be generated before enabling two-factor authentication. An attacker who knows the user's password could potentially generate some recovery codes and then bypass two-factor authentication after it is enabled on the account at a later time. This issue has been fixed in version 2.3.4. Recovery codes can now only be generated after enabling two-factor authentication and are deleted after disabling it.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| drakkan | sftpgo | 2.2.0 to before 2.3.4 | 2.3.4 | Patch available | CNA |
| — | github.com/drakkan/sftpgo/v2 (Go) | 2.2.0 to before 2.3.4 | 2.3.4 | Patch available | GHSA-54qx-8p8w-xhg8 |
- sftpgo Vendordrakkan Affected 2.2.0 to before 2.3.4 Fixed in 2.3.4 Patch available CNA
- github.com/drakkan/sftpgo/v2 (Go) Vendor— Affected 2.2.0 to before 2.3.4 Fixed in 2.3.4 Patch available GHSA-54qx-8p8w-xhg8
Remediation
- Fix · CNA sftpgo (drakkan) Fixed in 2.3.4
- Fix · GHSA-54qx-8p8w-xhg8 github.com/drakkan/sftpgo/v2 (Go) Fixed in 2.3.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-36071
- 2026-10-03 Alias added: GHSA-54qx-8p8w-xhg8
References
More drakkan Sftpgo vulnerabilities
- TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
- TI-2022-18599 XSS Vulnerabilities in WebClient CVSS 3.1MEDIUM 6.1
- TI-2026-23740 SFTPGo has a Path Traversal and Permission Bypass via Path Normalization Discrepancy CVSS 4.0MEDIUM 5.3
- TI-2026-23741 SFTPGo improperly sanitizes placeholders in group home directories/key prefixes CVSS 4.0MEDIUM 5.3
Sources
- CVE-2022-36071 · CVE Program
- CVE-2022-36071 · NVD
- FIRST EPSS
- GHSA-54qx-8p8w-xhg8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences