SecurityContext

CVE-2026-52809: Gogs - Authentication Bypass

  • Cve: CVE-2026-52809
  • Name: Gogs - Authentication Bypass
  • 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.
  • Impact: Attackers can exploit password reset tokens beyond intended expiry, potentially allowing unauthorized account access.
  • Remediation: Upgrade to version 0.14.3 or later.
  • Vulnerability type: broken_authentication
  • Vulnerability impact: broken_authentication
  • Requirement type: logged_in
  • Requirements: Attacker needs a valid password reset token
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.8
  • Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
  • Epss score: 0.0019
  • Epss percentile: 0.08657
  • Assignee: [email protected]
  • Published at: 2026-06-24T21:16:56Z
  • Age in days: 153
  • Modified at: 2026-11-03T23:17:47Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-52809
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-324Use of a Key Past its Expiration Date

References

UrlSourceTags
https://github.com/gogs/gogs/releases/tag/v0.14.3nvd
https://github.com/gogs/gogs/security/advisories/GHSA-5c3f-6486-3g7gnvd

Products

ProductAffectedPlatform boundSourcesUrl
gogs:gogs< 0.14.3nocna_alias_text/v1/products/gogs/gogs

Projects

RepositoryLink kindsIndexedUrl
gogs/gogscommit, fix, package, pull, releases, security_advisoryyes/v1/repositories/gogs/gogs

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 174004
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports