Gogs session fixation in sign-in allows account takeover
- Exploited
- No known exploitation
- Fix
- Fixed in 0.15.0
- Who is exposed
- Specific setups only
Summary
Gogs, a self-hosted Git service, does not renew a user's session ID when they sign in. Remotely, without logging in, an attacker can fix a session ID in advance, and if the victim signs in with it, the attacker can take over the account.
Written by a model
Original description
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.
Who should check
Teams running self-hosted Gogs versions before 0.15.0 that allow users to sign in to the web interface.
“The Gogs application does NOT regenerate session IDs upon successful authentication.”
What to do
Upgrade to a fixed version: 0.15.0.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-52803 (Gogs: Session Fixation via Missing Session ID Regeneration on Sign-In), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-52803 (entry last updated 2026-11-26):
Affected:
- gogs gogs: fixed in 0.15.0
Fixed versions: 0.15.0.
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, a user action.
CISA KEV: CVE-2026-52803 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-52803 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/gogs/gogs/security/advisories/GHSA-h48f-pxp7-c4mj
- https://github.com/gogs/gogs/commit/766ef97028cd76150aa406f9827d0d3a35400e84
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-52803
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-52803"}.Affected versions
- gogs gogsfixed in 0.15.0
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure12/25Specific setups only, reachable over the network without a login
- Reach?/20Unknown. No tracked technology or package matched
- Severity7.6/10CVSS 7.6
- No patch0/5No signal
What would change the score
- Would score about 70 if added to CISA KEV
- Would score about 65 if CISA's SSVC rates exploitation active
Timeline
- CVE published
- First seen by cve.now
Evidence 4
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · gogs/gogs · Advisory GHSA-h48f-pxp7-c4mj |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-52803 |
| Record | NVD · CVE-2026-52803 |
| Other links 1 | |
| Repository | GitHub · gogs/gogs · Commit 766ef970 |
Questions about CVE-2026-52803
Is CVE-2026-52803 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
Which versions are affected by CVE-2026-52803?
gogs: before 0.15.0.
Source: cve.now feed data
How do I fix CVE-2026-52803?
Upgrade to a fixed version: 0.15.0.
Source: cve.now feed data
Related
- CVE-2026-52813Gogs: Path Traversal in organization name results in RCE through Git hooks
- CVE-2026-52806Gogs: RCE via git rebase --exec argument injection in pull request merge
- CVE-2026-52811Gogs: UploadRepoFiles writes outside repo working tree via committed parent sym
- CVE-2026-52800Gogs: CSRF Leading to Organization Owner Takeover
- CVE-2026-52805Gogs: Migration Redirect Bypass Leads to Internal Repository Theft
- CVE-2026-52797Gogs: Overwriting critical files results in a denial of service
No corrections so far. Something wrong on this page? Report an error.