CVE-2025-64175: Gogs Vulnerable to 2FA Bypass via Recovery Code
Vulnerability summary
CVE-2025-64175 is a high (CVSS 8.8) Improper Authentication vulnerability in gogs. EPSS estimates a 0.47% chance of exploitation in the next 30 days, higher than 40.7% of scored vulnerabilities.
Not severe (CVSS 7.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 06-02-2026PublishedVulnerability first disclosed.
- 26-02-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · GoEcosystem advisory · calculated7.7HighCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- NVDNIST7.7HighCVSS: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
EPSS trend
Probability
0.47%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
Decrease -0.01 pp
From 0.48% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Gogs1 product
- gogs< 0.14.0+dev | < 0.13.4
Gogs.io1 product
- gogs≥ 0.11.19, < 0.13.4 | ≥ 0.11.19 (No fix recorded)
2 vendors · 2 products
References
5 links- github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wjX Refsource CONFIRMWEBAdvisoryVendor Advisory
- github.com/gogs/gogsPACKAGE