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.0: 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/E:U/U:Green
CVE-ID: CVE-2026-52809
CWE-ID: CWE-613
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: gogs.io
Affected software:
gogs

Detailed vulnerability description

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.


How to mitigate CVE-2026-52809

Install security update from vendor's website.

Sources