# CVE-2025-64175: Gogs Vulnerable to 2FA Bypass via Recovery Code

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-06T17:41:07.321Z
- Modified: 2026-06-17T09:53:57.503Z
- Also known as: GHSA-p6x6-9mx6-26wj, GO-2026-4449
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.0+dev; < 0.13.4; before 0.13.4
- gogs.io/gogs (Go): from 0.11.19 before 0.13.4; from 0.11.19

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj> (exploit, advisory, vendor-advisory, web)
- <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)

## Sources

- CVE List: [CVE-2025-64175](https://www.cve.org/CVERecord?id=CVE-2025-64175), CVE Terms of Use, modified 2026-02-26
- GitHub Advisory Database: [GHSA-p6x6-9mx6-26wj](https://github.com/advisories/GHSA-p6x6-9mx6-26wj), CC-BY-4.0, modified 2026-02-19
- Go Vulnerability Database: [GO-2026-4449](https://pkg.go.dev/vuln/GO-2026-4449), CC-BY-4.0, modified 2026-02-19
- NVD: [CVE-2025-64175](https://nvd.nist.gov/vuln/detail/CVE-2025-64175), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-64175 · Whole record: https://cve.day/CVE-2025-64175.json · Rebuilt by cve.day 2026-11-25T22:59:11.080Z
