Recovery codes abuse in SFTPGo
Published Sep 2, 2022
8.3
HIGHCVSS 3.1
EPSS 0.54%
Description
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.
Affected products
-
- Version >= 2.2.0, < 2.3.4StatusaffectedConstraints-
- Version
- ≥ 2.2.0 · < 2.3.4
No data.
No Red Hat product state for this CVE.
github.com/drakkan/sftpgo/v2
Go
Introduced 2.2.0 Fixed 2.3.4github.com/drakkan/sftpgo
Go
Introduced 0 Fixed not fixed
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | github.com/drakkan/sftpgo/v2 | 2.2.0 | 2.3.4 |
| Go | github.com/drakkan/sftpgo | 0 | not fixed |
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
1 other source (GHSA) ▾
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
NoTechnical Impact
TotalDecision
n/aAssessed Apr 22, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 0.54% (0.00536) | 43.14th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.42% (0.00422) | 33.51th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.02% (0.00017) | 2.19th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.07% (0.00070) | 32.45th | v3 (v2023.03.01) |
| Jun 28, 2024 | 0.07% (0.00070) | 30.61th | v3 (v2023.03.01) |
| Mar 25, 2024 | 0.07% (0.00070) | 28.60th | v3 (v2023.03.01) |
| Sep 9, 2023 | 0.06% (0.00062) | 24.26th | v3 (v2023.03.01) |
| Aug 3, 2023 | 0.06% (0.00056) | 21.04th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.05% (0.00050) | 17.10th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 3, 2022 | 0.89% (0.00885) | 26.16th | v2 (v2022.01.01) |
References (4)
- https://github.com/advisories/GHSA-54qx-8p8w-xhg8 Advisory
- https://github.com/drakkan/sftpgo/issues/965 x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory
- https://github.com/drakkan/sftpgo/security/advisories/GHSA-54qx-8p8w-xhg8 x_refsource_CONFIRMMitigationThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-36071
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-54qx-8p8w-xhg8 | Advisory | |
| https://github.com/drakkan/sftpgo/issues/965 | x_refsource_MISCExploitIssue TrackingPatchThird Party Advisory | |
| https://github.com/drakkan/sftpgo/security/advisories/GHSA-54qx-8p8w-xhg8 | x_refsource_CONFIRMMitigationThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-36071 |
Change history (0)
No recorded changes yet.