CVE-2025-64175
Unknown
Unknown - Not Provided
Cross-Account 2FA Bypass in Gogs Enables Account Takeover
Publication date: 2026-02-06
Last updated on: 2026-02-17
Assigner: GitHub, Inc.
Description
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 Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| gogs | gogs | to 0.13.4 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-287 | When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. |