CVE-2018-18925 in Gogs
Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron.
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Gogs | Gogs | ≤ 0.11.66 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official description
Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2018-18925 |
|---|---|
| BreachSpider ID | BS-2018-GLOBAL-202802-C |
| CVSS vector | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2018-11-04 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-384: CWE-384
Related attack patterns (CAPEC)
CAPEC-31 Accessing/Intercepting/Modifying HTTP Cookies via CWE-384
CAPEC-59 Session Credential Falsification through Prediction via CWE-384
CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-384
CAPEC-61 Session Fixation via CWE-384
CAPEC-39 Manipulating Opaque Client-based Data Tokens via CWE-384
Show all 7
CAPEC-196 Session Credential Falsification through Forging via CWE-384
CAPEC-21 Exploitation of Trusted Identifiers via CWE-384
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2018. A critical vulnerability affects Gogs systems (CVE-2018-18925). A proof-of-concept has been published. Isolate affected systems if patching is not feasible.
Vulnerability details: Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a ".." session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron. CVSS vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Questions
What is CVE-2018-18925?
This vulnerability was disclosed in 2018. A critical vulnerability affects Gogs systems (CVE-2018-18925). A proof-of-concept has been published. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2018-18925?
CVE-2018-18925 has CVSS 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 31.1%.
Is CVE-2018-18925 actively exploited?
No confirmed active exploitation of CVE-2018-18925 as of 2026-09-25.
How do I remediate CVE-2018-18925?
Priority: MEDIUM.
What systems are affected by CVE-2018-18925?
CVE-2018-18925 affects Gogs Gogs.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Gogs","product":"Gogs","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.