{"id":"CVE-2025-64175","published":"2026-02-06T17:41:07Z","modified":"2026-02-26T15:04:15Z","title":"Gogs Vulnerable to 2FA Bypass via Recovery Code","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"Gogs is an open source self-hosted Git service. In version 0.13.3 and prior, Gogs’ 2FA recovery code validation does not scope codes by user, enabling cross-account bypass. If an attacker knows a victim’s username and password, they can use any unused recovery code (e.g., from their own account) to bypass the victim’s 2FA. This enables full account takeover and renders 2FA ineffective in all environments where it's enabled.. This issue has been patched in versions 0.13.4 and 0.14.0+dev.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0047,"percentile":0.4157,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj","tags":["x_refsource_CONFIRM"]}],"priority":{"score":13.7,"factors":[{"name":"EPSS percentile","points":8.31},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.0+dev","< 0.13.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-07T04:55:22.362410Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":[">=0.11.19, <0.13.4",">=0.11.19"],"patched":["0.13.4"],"from":["GHSA-p6x6-9mx6-26wj","GO-2026-4449"],"provenance":"source"}],"summary":{"text":"The vulnerability is in Gogs' two-factor authentication recovery code validation, which does not scope codes to individual users. The flaw affects Gogs version 0.13.3 and prior. An attacker who already knows a victim's username and password, and has a valid account of their own with unused recovery codes, can submit one of their own codes to bypass the victim's 2FA. This requires network access to the Gogs instance and no user interaction, and it yields full account takeover wherever 2FA is enabled.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:22Z"},"euvd":{"id":"EUVD-2025-206882","exploited":false,"provenance":"source"}}