Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2026-52809

CVE-2026-52809: Gogs's password-reset tokens use account-activation lifetime, ignoring RESET_PASSWORD_CODE_LIVES

June 23, 2026

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.

References

  • github.com/advisories/GHSA-5c3f-6486-3g7g
  • github.com/gogs/gogs/commit/187e9c557930eb4a8b9b1502ee45cccf3255ee7f
  • github.com/gogs/gogs/pull/8328
  • github.com/gogs/gogs/releases/tag/v0.14.3
  • github.com/gogs/gogs/security/advisories/GHSA-5c3f-6486-3g7g
  • nvd.nist.gov/vuln/detail/CVE-2026-52809

Code Behaviors & Features

Detect and mitigate CVE-2026-52809 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.14.3

Fixed versions

  • 0.14.3

Solution

Upgrade to version 0.14.3 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-324: Use of a Key Past its Expiration Date
  • CWE-613: Insufficient Session Expiration

Source file

go/gogs.io/gogs/CVE-2026-52809.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 21 Jul 2026 00:18:31 +0000.