CVE-2025-64175 Details
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.
A vulnerability in Gogs versions through 0.13.3 allows for bypassing two-factor authentication (2FA) recovery code validation. The issue arises because recovery codes are not scoped to individual users, enabling cross-account exploitation. An attacker with knowledge of a victim's username and password can use any unused recovery code from their own account to bypass the victim's 2FA, leading to full account takeover. This vulnerability undermines the effectiveness of 2FA in all environments where it is enabled.
Users can upgrade to Gogs versions 0.13.4 or 0.14.0+dev to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj | CISA-ADP | Vendor Advisory |
| https://github.com/gogs/gogs/security/advisories/GHSA-p6x6-9mx6-26wj | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-287 | Improper Authentication | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gogs gogs | < 0.13.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 17, 2026 | Initial Analysis | [email protected] |
| Feb 6, 2026 | CVE Modified | CISA-ADP |
| Feb 6, 2026 | New CVE Received | [email protected] |