Vulnerability details

CVE-2025-64175

gogs gogs

Gogs Vulnerable to 2FA Bypass via Recovery Code

CVSS 4.0
7.7High

Official 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

ScoreVersionSourceVector
7.7High 4.0 CVEProject cvelistV5 (CNA) (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

Affected products

VendorProductVersionsSource
gogs gogs < 0.13.4 CVEProject cvelistV5 (CNA)
gogs gogs < 0.14.0+dev CVEProject cvelistV5 (CNA)

References and advisories

1
Kolun on Telegram @kolunsec Exploited CVEs, key news and a daily digest Alerts for this product's next CVEsFollow the product to get new vulnerabilities on Telegram.

Details

Published
2026-02-06
Last updated
2026-02-26
State
Published
Assigner (CNA)
GitHub_M

Exploit prediction (EPSS)

0.47%
Probability of exploitation in 30 days
40.9%
Percentile (among all CVEs)

SSVC assessment (CISA)

Automatable
No
Exploitation
None
Technical impact
Total

Weaknesses (CWE)

  • CWE-287
    Improper Authentication