Authentication Bypass Using an Alternate Path or Channel Affecting gogs.io/gogs/internal/database package, versions >=0.11.19 <0.13.4-rc.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.42% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOGSIOGOGSINTERNALDATABASE-15248356
  • published8 Feb 2026
  • disclosed6 Feb 2026
  • creditUnknown

Introduced: 6 Feb 2026

CVE-2025-64175  (opens in a new tab)
CWE-288  (opens in a new tab)

How to fix?

Upgrade gogs.io/gogs/internal/database to version 0.13.4-rc.1 or higher.

Overview

Affected versions of this package are vulnerable to Authentication Bypass Using an Alternate Path or Channel in the UseRecoveryCode() function, which fails to check the supplied userID before validating the second factor. A user in possession of the username and password of another user can gain access to their account by using any unused recovery code, such as one from their own account.

References

CVSS Base Scores

version 4.0
version 3.1