# CVE-2026-52809: Gogs: Password-reset tokens use account-activation lifetime, ignoring RESET_PASSWORD_CODE_LIVES

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-23T17:03:25.000Z
- Modified: 2026-11-03T23:17:47.677Z
- Also known as: GHSA-5c3f-6486-3g7g, GO-2026-5140
- Weaknesses: CWE-324, CWE-613
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: < 0.14.3
- gogs.io/gogs (Go): before 0.14.3; all versions

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-5c3f-6486-3g7g> (exploit, advisory, web)
- <https://github.com/gogs/gogs/releases/tag/v0.14.3> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-52809> (advisory)
- <https://github.com/gogs/gogs/pull/8328> (web)
- <https://github.com/gogs/gogs/commit/187e9c557930eb4a8b9b1502ee45cccf3255ee7f> (web)
- <https://github.com/gogs/gogs> (package)

## Sources

- CVE List: [CVE-2026-52809](https://www.cve.org/CVERecord?id=CVE-2026-52809), CVE Terms of Use, modified 2026-11-03
- GitHub Advisory Database: [GHSA-5c3f-6486-3g7g](https://github.com/advisories/GHSA-5c3f-6486-3g7g), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5140](https://pkg.go.dev/vuln/GO-2026-5140), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-52809](https://nvd.nist.gov/vuln/detail/CVE-2026-52809), Public domain, modified 2026-11-03

---

Page: https://cve.day/CVE-2026-52809 · Whole record: https://cve.day/CVE-2026-52809.json · Rebuilt by cve.day 2026-11-25T22:59:25.748Z
