{"schemaVersion":3,"id":"CVE-2022-36071","aliases":["GHSA-54qx-8p8w-xhg8","GO-2022-0964"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2022-09-02T17:15:12.000Z","modified":"2025-04-22T17:24:43.553Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.3,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":8.3,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:L","exploitability":7.2,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00536,"percentile":0.44302,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00536},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00523,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00536,"percentile":0.44302}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00536,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00536,"percentile":0.44302}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_DRAKKAN_SFTPGO","name":"Sftpgo","source":"github","url":"https://github.com/drakkan/sftpgo/issues/965","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-287","name":"Improper Authentication","description":"When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/287.html"},{"id":"CWE-916","name":"Use of Password Hash With Insufficient Computational Effort","description":"The product generates a hash for a password, but it uses a scheme that does not provide a sufficient level of computational effort that would make password cracking attacks infeasible or expensive.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/916.html"}],"affected":[{"vendor":"drakkan","product":"sftpgo","name":"sftpgo","label":"sftpgo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.2.0, < 2.3.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.2.0, < 2.3.4","eol":null,"hubHref":"/vendor/drakkan/sftpgo"},{"vendor":"github.com/drakkan","product":"sftpgo","name":"github.com/drakkan/sftpgo","label":"sftpgo","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/drakkan/sftpgo","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/drakkan/sftpgo","product":"v2","name":"github.com/drakkan/sftpgo/v2","label":"v2","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/drakkan/sftpgo/v2","purlType":"golang","versions":[{"text":"≥ 2.2.0, < 2.3.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.2.0, < 2.3.4","eol":null,"hubHref":null},{"vendor":"sftpgo_project","product":"sftpgo","name":"sftpgo","label":"sftpgo","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.2.0, < 2.3.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.2.0, < 2.3.4","eol":null,"hubHref":"/vendor/sftpgo_project/sftpgo"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/drakkan/sftpgo/security/advisories/GHSA-54qx-8p8w-xhg8","label":"github.com/drakkan/sftpgo/security/advisories/GHSA-54qx-8p8w-xhg8","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Advisory","Mitigation","Third Party Advisory"]},{"url":"https://github.com/drakkan/sftpgo/issues/965","label":"github.com/drakkan/sftpgo/issues/965","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","Exploit","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-36071","label":"nvd.nist.gov/vuln/detail/CVE-2022-36071","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/drakkan/sftpgo","label":"github.com/drakkan/sftpgo","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2022-09-02T17:15:12.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-22T17:24:43.553Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":43,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T09:06:04.172Z","stale":false,"partial":false}}