Security Resilience

CVE-2026-52809

gogs

Published
24 June 2026
Modified
03 November 2026
CVSS Score v3.1 6.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS Score 0.0020 6th percentile
Risk Priority 49 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-52809 is a medium-severity Use of a Key Past its Expiration Date (CWE-324) vulnerability in gogs (named in the CVE record; NVD lists no product yet). Its CVSS base score is 6.8 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Valid Accounts (T1078); ranked at the 6th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-12 (Session Termination) and IA-5 (Authenticator Management) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1078 Valid Accounts Stealth
Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1078.004 Cloud Accounts Stealth
Valid accounts in cloud environments may allow adversaries to perform actions to achieve Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1548.003 Sudo and Sudo Caching Privilege Escalation
Adversaries may perform sudo caching and/or use the sudoers file to elevate privileges.
T1550.001 Application Access Token Lateral Movement
Adversaries may use stolen application access tokens to bypass the typical authentication process and access restricted accounts, information, or services on remote systems.
T1550.004 Web Session Cookie Lateral Movement
Adversaries can use stolen session cookies to authenticate to web applications and services.
T1584.006 Web Services Resource Development
Adversaries may compromise access to third-party web services that can be used during targeting.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2025-54592Shared CWE-613
CVE-2026-54479Shared CWE-613
CVE-2025-27898Shared CWE-613
CVE-2026-9705Shared CWE-613
CVE-2026-12796Shared CWE-613
CVE-2024-0943Shared CWE-613
CVE-2023-45187Shared CWE-613
CVE-2026-71206Shared CWE-613
CVE-2023-5865Shared CWE-613
CVE-2026-103279Shared CWE-613

Affected Assets

gogs
gogs
named in the CVE record; NVD lists no product yet

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

AC-12 directly requires automatic session termination after a defined period, structurally preventing reuse of expired session identifiers.

SC-12 requires establishing and managing cryptographic keys including distribution, storage, access and destruction, which directly enforces expiration and rotation policies.

IA-5 requires managing authenticators (including passwords and tokens) with verification, distribution and revocation steps that cover expiration enforcement.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.AA-01 mostly match
blocks

Credential lifecycle management directly includes enforcing session expiration to prevent reuse.

PR.AA-05 mostly match
blocks

Authorization policy enforcement and review covers terminating stale sessions to limit access scope.

ID.AM-08 partial match
blocks

Lifecycle management of cryptographic assets directly includes enforcing key expiration and rotation.

PR.AA-03 partial match
blocks

Authentication mechanisms can incorporate session timeout checks but do not inherently address expiration policy.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

A.8.29's combined programme of code review, static analysis, and penetration testing reaches CWE-613 through both SOURCE (session-timeout configurations and token-expiration logic are visible in code, as the demonstrative example shows) and RUNTIME (a session that fails to expire is observable by waiting and re-using the credential). The remainder is bounded and nameable: session expiration logic that lives in framework defaults not surfaced in the reviewed code, or in distributed token-issuance/validation components where the expiration check is implicit rather than explicit.

removes

A.8.5 items (k) and (l) directly mandate session termination after inactivity and connection duration restrictions, which are the primary mechanisms for session expiration and address the core of CWE-613; applying the clause to a system that lacked these removes the timeout-based weakness, but the CWE has been expanded to include logout invalidation and session fixation variations that A.8.5 does not reach, and non-configurable third-party products (the majority of observed CVE instances) cannot be remediated by this clause alone.

prevents

Training developers about cryptographic key management and certificate validation can reduce instances of expired-key usage, but the effect is a minority one because the weakness is a specific code defect (failing to check expiration) and training is fallible; the strongest controls for this weakness sit in A.8.24 (cryptography policy) and A.8.29 (security testing), not in awareness.

blocks

The user responsibility section's guidance to 'log-off active sessions and terminate services when no longer needed' is a user practice that, when followed, terminates sessions and prevents exploitation of those specific sessions, but it does not address the automatic session expiration logic in the application code where the weakness actually lives, and users do not always follow the practice.

blocks

A.8.24 mandates key management practices including expiration dates, retirement, and revocation, so a well-implemented system does not use expired keys at all — the weakness is prevented from arising or removed when keys expire, not left in place and blocked from exploitation.

prevents

A.8.28 mandates secure coding standards and practices that can include key lifecycle handling (checking expiration, rotating keys), and its guidance on common coding defects and secure design/architecture reaches this weakness, but the clause mandates a practice rather than a mechanism, so coverage depends on what the standard actually specifies and on developer adherence — consistent with the `partial` rungs on A.8.28 vs CWE-502 and CWE-79.

References