patchminder
Proof of concept · CISA assessment CVE-2022-36071

Authentication bypassin drakkan SFTPGo.

Published 2 Sep 2022 · Updated 22 Apr 2025 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Proof of concept public (CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks. assessment).

Severity
High 8.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1
Attack likelihood
Low
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 0.6% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 2.3.4 or later
In plain words

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.

What to do now
  • Upgrade sftpgo to 2.3.4 or later.
  • Upgrade github.com/drakkan/sftpgo/v2 (Go) to 2.3.4 or later.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
sftpgo
2.2.0 to before 2.3.4
2.3.4
CVE record
github.com/drakkan/sftpgo/v2 (Go)
2.2.0 to before 2.3.4
2.3.4
GitHub advisory
github.com/drakkan/sftpgo (Go)
all versions
Not confirmed
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 15 Jul 2022
    CVE ID reserved by GitHub_M.
  2. 2 Sep 2022
    Published in the CVE List.
  3. 22 Apr 2025
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Proof of concept (CISA assessment). CISA assessment (SSVC): exploitation poc.

Metasploit module
None known
Nuclei scan template
None known
Exploit-DB
None known
GitHub proof of concepts
None known

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other SFTPGo vulnerabilities

Same weakness: Improper authentication

All CWE-287 vulnerabilities

References
Cite this page

Patchminder. CVE-2022-36071: Authentication bypass in drakkan SFTPGo. https://patchminder.com/cve/cve-2022-36071/ (accessed 5 December 2026).