PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-52809 gogs CVE debrief

A vulnerability in Gogs, a self-hosted Git service, allows password-reset tokens to be generated with an unintended longer lifetime. This issue arises because tokens are created using the account activation lifetime setting instead of the intended password reset token lifetime setting. As a result, when administrators set a shorter reset window for security or compliance reasons, the tokens remain valid for the longer activation lifetime. This discrepancy could lead to unauthorized access if an attacker obtains a token within the activation lifetime window, despite the administrator's intention to limit the window to a shorter duration.

Vendor
gogs
Product
Unknown
CVSS
MEDIUM 6.8
CISA KEV
Not listed in stored evidence
Original CVE published
2026-06-24
Original CVE updated
2026-11-03
Advisory published
2026-06-24
Advisory updated
2026-11-03

Who should care

Administrators and security teams managing Gogs instances should be aware of this vulnerability and take action to update their instances to prevent potential security risks associated with password-reset tokens.

Why it matters

CVE-2026-52809 allows password-reset tokens to have an unintended longer lifetime, potentially leading to unauthorized access. Defenders should verify Gogs versions, update to 0.14.3 or later, and review token configurations.

  • Defenders need to verify Gogs instance versions and apply patches to prevent token exploitation.
  • Security teams must review and adjust password-reset configurations to align with security policies.
  • Monitoring for suspicious token activity is necessary to detect potential unauthorized access attempts.

Technical summary

The Gogs self-hosted Git service has a vulnerability where password-reset tokens are generated with a lifetime based on the account activation setting (conf.Auth.ActivateCodeLives) instead of the intended password reset setting (conf.Auth.ResetPasswordCodeLives). This means that even if an administrator configures a short reset window (e.g., 10 minutes) for security or compliance, the tokens remain valid for the longer activation lifetime. This issue is addressed in Gogs version 0.14.3.

Defensive priority

Defenders should prioritize verifying their Gogs instance version and applying the patch to prevent potential unauthorized access through password-reset tokens. This involves checking the current version of Gogs and updating to version 0.14.3 or later if necessary.

Recommended defensive actions

  • Verify the current version of Gogs and update to version 0.14.3 or later.
  • Review and adjust the configuration of password-reset token lifetimes to align with organizational security policies.
  • Monitor for any suspicious activity related to password-reset tokens.
  • Perform a thorough review of existing password-reset tokens to identify potential unauthorized access.
  • Implement additional logging and monitoring for Gogs instance activity.
  • Conduct a security audit to ensure no unauthorized access has occurred.
  • Review and update incident response plans to include procedures for potential password-reset token exploitation.

Evidence notes

The CVE record and source details indicate that Gogs versions prior to 0.14.3 are affected by this vulnerability. The issue is fixed in version 0.14.3. However, specific details about exploitation or victim impact are not provided in the source corpus.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-52809 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-52809

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-52809 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-52809

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.