{"id":"CVE-2026-52809","published":"2026-06-24T20:29:29Z","modified":"2026-11-03T22:13:27Z","title":"Gogs: Password-reset tokens use account-activation lifetime, ignoring RESET_PASSWORD_CODE_LIVES","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0019,"percentile":0.08871,"provenance":"source"},"cwes":[{"id":"CWE-324","name":"Use of a Key Past its Expiration Date"},{"id":"CWE-613","name":"DEPRECATED: Insufficient Session Expiration"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-5c3f-6486-3g7g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.14.3","tags":["x_refsource_MISC"]}],"priority":{"score":6.5,"factors":[{"name":"EPSS percentile","points":1.77},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-06-26T03:55:42.253878Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.3","all versions"],"patched":["0.14.3"],"from":["GHSA-5c3f-6486-3g7g","GO-2026-5140"],"provenance":"source"}],"summary":{"text":"The Gogs self-hosted Git service, prior to 0.14.3, generates password-reset tokens using the account-activation lifetime rather than the configured password-reset lifetime (RESET_PASSWORD_CODE_LIVES), so the setting has no effect on enforcement. An attacker who obtains a reset token that is still within the activation lifetime, while the user must interact with the reset process, can use it to reset the account password even after the shorter configured reset window has passed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:15:15Z"},"euvd":{"id":"EUVD-2026-39079","exploited":false,"provenance":"source"}}