Skip to main content

Gogs EUVDEUVD-2026-135956

| CVE-2026-52803 HIGH
Session Fixation (CWE-384)
2026-11-26 GitHub_M
7.6
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain pre-auth session ID from login page
  2. Delivery
    Plant known session cookie in victim browser
  3. Exploit
    Victim logs in, session ID unchanged
  4. Execution
    Reuse fixed session ID
  5. Impact
    Full account takeover

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V7 - Session Management Session fixation prevention
Exploitation Conditions

Exploitation requires the attacker to first fix a known Gogs session cookie (i_like_gogs) in the victim's browser before the victim authenticates - achievable via a crafted login link, XSS on a Gogs subdomain, a man-in-the-middle position, or physical/browser access. The decisive limiting factor is that the victim must then actually log in with that attacker-supplied session (UI:P), and the attacker needs a separate means to set the victim's cookie (AT:P); the Gogs server itself requires no authentication from the attacker (PR:N). It affects all default configurations of Gogs prior to 0.15.0 regardless of settings, since the session ID is never regenerated at login.

Impact

This is a session fixation flaw (CWE-384) in Gogs where the session ID is not regenerated after successful authentication, enabling account takeover. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N, 7.6) indicates a network-reachable attack by an unauthenticated attacker (PR:N) with high confidentiality and integrity impact, but gated by two real preconditions encoded in the vector: AT:P (an attack requirement - the attacker must first plant a known session ID in the victim's browser) and UI:P (the victim must subsequently log in). No EPSS score, no CISA KEV entry, and no confirmed working exploit code were provided, so the signals point to a serious but conditional issue rather than a mass-exploited one. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a high-impact vulnerability that is not yet observed under active exploitation. The practical risk is real for internet-exposed or multi-user Gogs instances - especially where admin accounts exist - but exploitation depends on the attacker first forcing the victim's session cookie, which requires an additional capability (XSS on a subdomain, MITM, social engineering, or physical access). No conflicting signals were found between the vector and the description; both agree this is a remotely initiated attack requiring victim login.

Exploit ScenarioDerived

An attacker obtains a valid pre-authentication session ID from the Gogs login page and plants it in the victim's browser (e.g., via a crafted link, XSS on a related subdomain, or MITM). Because Gogs does not rotate the session ID at login, once the victim authenticates the attacker's fixed session ID becomes an authenticated session, granting the attacker full account takeover - including access to private repositories and, if an admin is targeted, system-wide control. A public PoC reference describing these steps exists in the GHSA advisory; it is not verified as working exploit code.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 26, 2026

Session fixation in Gogs prior to 0.15.0 allows an attacker to take over a victim's account without ever knowing their credentials, because the application keeps the same session ID (the i_like_gogs cookie) before and after a successful sign-in. An attacker who can plant a known session ID in a victim's browser - via a crafted login link, XSS on a Gogs subdomain, a man-in-the-middle position, or direct browser access - is authenticated as that victim once the victim logs in. The GHSA includes documented attack steps as a public PoC reference; it is not verified as working exploit code, and there is no public exploit identified at time of analysis and no indication of active exploitation (not in CISA KEV). The issue is fixed in 0.15.0.

RemediationAI

Upgrade to Gogs 0.15.0, the release in which signing in no longer reuses the pre-authentication session ID; the vendor advisory GHSA-h48f-pxp7-c4mj (https://github.com/gogs/gogs/security/advisories/GHSA-h48f-pxp7-c4mj) and commit 766ef97028cd76150aa406f9827d0d3a35400e84 document the change, and because 0.15.0 bundles several unrelated security fixes, the full release should be adopted rather than a partial backport. The advisory does not document a compensating workaround, so no configuration toggle, setting, or endpoint restriction fully removes the exposure - only the session rotation in 0.15.0 does. Where upgrade must be staged, note that the delivery vectors the advisory itself lists for planting the cookie are a crafted link carrying the cookie, XSS on a Gogs subdomain, a man-in-the-middle position, and physical browser access, so closing those paths (serving Gogs strictly over HTTPS with HSTS to defeat interception, and eliminating script injection on any subdomain sharing the cookie's scope) narrows the practical attack surface, but it does not fix the root cause and leaves the fixation window open for any remaining delivery channel. Prioritization per the available signals is this_week; no KEV listing, decision label, or EPSS score in the supplied data indicates emergency action.

Affected VersionsENISA

gogs < 0.15.0

Affected Packages

euvd gogs fix: 0.15.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Gogs is a Go-based self-hosted Git service built on the Macaron web framework; its sign-in handler lives in internal/route/user/auth.go (SignInPost), where authentication succeeds but the session ID is not regenerated, leaving the pre-authentication cookie value valid for the post-authentication session. That is the classic CWE-384 Session Fixation root cause: the identifier that binds the session to the authenticated principal is chosen by the client, not reissued by the server at the privilege boundary. The Go module is tracked as go/gogs.io/gogs with the vulnerable range < 0.15.0, and the CPE cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* with all versions below 0.15.0. The assessed CVSS:3.1 vector AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N reflects that the Gogs server requires no authentication from the attacker (PR:N) and that the low-complexity network path is offset by two real prerequisites captured as AT:P and UI:P in the CVSS 4.0 vector - the attacker must have an independent means to set the victim's cookie, and the victim must subsequently perform a sign-in for the planted ID to be elevated. The flaw is configuration-independent: every default Gogs deployment before 0.15.0 fails to rotate the session at login. The 0.15.0 release commit (766ef97028cd76150aa406f9827d0d3a35400e84) is a bundled security release; its changelog entry states that signing in previously kept the session ID from before and that this is corrected, alongside separate unrelated fixes (CSRF-prone GET actions, a rename-diff crash, symlink directory creation, case-sensitive Git service bypass, and a GitHub auth-source impersonation issue) that are tracked under their own advisories and are not part of this CVE.

Know when Gogs gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Network-reachable and unauthenticated attacker (PR:N), but the victim must log in (UI:R); successful fixation yields full account takeover giving high confidentiality and integrity impact, no availability effect.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 26, 2026 - 02:01 EUVD
CVE Published
Nov 26, 2026 - 00:54 cve.org
HIGH 7.6

DescriptionCVE.org

Gogs is an open source self-hosted Git service. Prior to 0.15.0, Gogs does not regenerate the session ID after successful authentication. An attacker who forces a victim to use a known session ID can hijack the session after the victim logs in and take over the account. This issue is fixed in version 0.15.0.

Technical POC Analysis

CWE-384, session fixation.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

Gogs, a widely used self-hosted Git service, is affected by a session fixation flaw that enables account takeover without credential knowledge, impacting any organization running versions prior to 0.15.0. Leadership should prioritize remediation because a successful attack can lead to unauthorized access to source code, sensitive repositories, and potentially lateral movement within development environments.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include restricting network access to Gogs, implementing session cookie regeneration at the reverse proxy level, and monitoring authentication logs for anomalous session behavior.

Threat Intelligence Overview

EPSS Score
0.6%
Top 59% exploitable
Prevalence
Medium
popular open-source self-hosted Git service, moderate production footprint
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in Gogs

View all
CVE-2025-8110 HIGH POC
8.7 Dec 10

Code execution on Gogs servers is possible through improper symbolic-link handling in the repository file editor's PutCo

CVE-2014-8682 HIGH POC
7.5 Nov 21

Multiple SQL injection vulnerabilities in Gogs (aka Go Git Service) 0.3.1-9 through 0.5.x before 0.5.6.1105 Beta allow r

CVE-2020-15867 HIGH POC
7.2 Oct 16

The git hook feature in Gogs 0.5.5 through 0.12.2 allows for authenticated remote code execution. Rated high severity (C

CVE-2024-39932 CRITICAL POC
9.9 Jul 04

Gogs through 0.13.0 allows argument injection during the previewing of changes. Rated critical severity (CVSS 9.9), this

CVE-2024-39930 CRITICAL POC
9.9 Jul 04

The built-in SSH server of Gogs through 0.13.0 allows argument injection in internal/ssh/ssh.go, leading to remote code

CVE-2025-64111 CRITICAL POC
9.8 Feb 06

Gogs self-hosted Git service v0.13.3 has a command injection vulnerability enabling remote code execution through crafte

CVE-2026-25242 CRITICAL POC
9.8 Feb 19

Unauthenticated file upload in Gogs self-hosted Git service 0.13.4 and below. Default configuration exposes file upload

CVE-2022-1986 CRITICAL POC
9.8 Jun 09

OS Command Injection in GitHub repository gogs/gogs prior to 0.12.9. Rated critical severity (CVSS 9.8), this vulnerabil

CVE-2018-18925 CRITICAL POC
9.8 Nov 04

Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." s

CVE-2026-25921 CRITICAL POC
9.3 Mar 05

Supply chain attack via LFS object overwrite across repos in Gogs before 0.14.2. PoC and patch available.

CVE-2022-1992 CRITICAL POC
9.1 Jun 09

Path Traversal in GitHub repository gogs/gogs prior to 0.12.9. Rated critical severity (CVSS 9.1), this vulnerability is

CVE-2022-0871 CRITICAL POC
9.1 Mar 11

Missing Authorization in GitHub repository gogs/gogs prior to 0.12.5. Rated critical severity (CVSS 9.1), this vulnerabi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy