Improper Authentication in gogs - #VU170291

 

Improper Authentication in gogs - #VU170291

Published: November 25, 2026


Vulnerability identifier: #VU170291
CSH Severity: Medium
CVSS v4: 9.1 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-287
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to take over an account without knowing or changing its password or completing two-factor authentication.

The vulnerability exists due to improper authentication in the legacy and web API account activation handlers when they accept password-reset codes as activation credentials and create sessions for already active accounts without checking the second factor. A remote attacker can misuse a valid reset code obtained from the victim's email to gain an authenticated session as the victim.


Affected software

gogs

Remediation

Install security update from vendor's website.

gogs - update to 0.14.4

External References