CVE-2025-64175 json
Gogs Vulnerable to 2FA Bypass via Recovery Code
published 2026-02-06 9 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-206882 , GHSA-p6x6-9mx6-26wj , GO-2026-4449
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 40%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go gogs.io/gogs 0.13.4
- gogs gogs 0.13.4, 0.14.0+dev
- govulncheck-vulndb openSUSE Leap 15.6 0.0.20260226T182644-150000.1.149.1
suse advisories SUSE-SU-2026:0757-1
- govulncheck-vulndb openSUSE Leap 16.0 0.0.20260723T184607-160000.1.1
opensuse advisories openSUSE-SU-2026:21483-1
- github.com/gogs/gogs@a617d52 commit
- github.com/gogs/gogs@d568e04 commit
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 9 mo ago
Exploit prediction
0.47% chance of exploitation in the next 30 days, higher than 40% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 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 |
| CNA | 4.0 | 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 |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | >=0.11.19, <0.13.4 >=0.11.19 |
0.13.4 |
Affected products
- gogs gogs
Classification
- Weakness
-
- CWE-287 Improper Authentication
References
-
github.com
/gogs/gogs/commit/a617d52374e937db0edacfba2a26bdd14a05538e
web
-
github.com
/gogs/gogs/commit/d568e048315dc9729c8518d8085cab7dbbfac80f
web
-
github.com
/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj
exploit, web, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2025-64175
advisory
-
github.com
/gogs/gogs
package
Sources
- CVE List CVE-2025-64175
- GitHub Advisory GHSA-p6x6-9mx6-26wj
- NVD CVE-2025-64175
- OSV GO-2026-4449
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.