Vulnerability Description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, password-reset tokens are generated using conf.Auth.ActivateCodeLives (the account-activation lifetime), not conf.Auth.ResetPasswordCodeLives. The token lifetime is baked into the token itself at generation time and is re-extracted from the token at verification time, making RESET_PASSWORD_CODE_LIVES irrelevant to actual enforcement. When an administrator configures a shorter reset window (e.g., 10 minutes) for compliance or security reasons, reset tokens remain exploitable for the full activation lifetime instead, while the reset email falsely advertises the shorter expiry. This vulnerability is fixed in 0.14.3.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/gogs/gogs/releases/tag/v0.14.3
- https://github.com/gogs/gogs/security/advisories/GHSA-5c3f-6486-3g7g
- https://github.com/gogs/gogs/security/advisories/GHSA-5c3f-6486-3g7g
FAQ
What is CVE-2026-52809?
CVE-2026-52809 is a vulnerability with a CVSS score of 6.8 (MEDIUM). Gogs is an open source self-hosted Git service. Prior to 0.14.3, password-reset tokens are generated using conf.Auth.ActivateCodeLives (the account-activation lifetime), not conf.Auth.ResetPasswordCod...
How severe is CVE-2026-52809?
CVE-2026-52809 has been rated MEDIUM with a CVSS base score of 6.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-52809?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.