Insufficient Session Expiration in gogs - CVE-2026-52809

 

Insufficient Session Expiration in gogs - CVE-2026-52809

Published: June 19, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to take over a victim account.

The vulnerability exists due to insufficient session expiration in password-reset token generation and verification in internal/userx/userx.go, internal/email/email.go, and internal/route/user/auth.go when handling password-reset requests and validating reset tokens. A remote attacker can use an intercepted password-reset token after the configured reset window has expired to take over a victim account.

User interaction is required because the victim must initiate a password-reset request, and exploitation is possible when the reset lifetime is configured shorter than the activation lifetime.


Affected software

gogs

How to mitigate CVE-2026-52809

Install security update from vendor's website.

gogs - update to 0.14.3

External References

Related Security Bulletins