CVE-2025-64175
HIGH 7.7CVSS 4.0Gogs Vulnerable to 2FA Bypass via Recovery Code
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.
- Published
- 6 Feb 2026
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-287
- Also known as
- GHSA-p6x6-9mx6-26wjGO-2026-4449
- Sources
- NVDJSONOSV GHSA-p6x6-9mx6-26wjJSONOSV GO-2026-4449JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gogs | gogscpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* |
< 0.13.4 | 0.13.4 |
| OSV | Go | gogs.io/gogs | >= 0.11.19, < 0.13.4 | 0.13.4 |
| OSV | Go | gogs.io/gogs | >= 0.11.19 |
References
- https://github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-64175 · ADVISORY
- https://github.com/gogs/gogs/commit/a617d52374e937db0edacfba2a26bdd14a05538e · WEB
- https://github.com/gogs/gogs/commit/d568e048315dc9729c8518d8085cab7dbbfac80f · WEB
- https://github.com/gogs/gogs · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 6 Feb 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Feb 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 6 Feb 2026)