CVE-2018-18925: Gogs - Insecure Deserialization
- Cve: CVE-2018-18925
- Name: Gogs - Insecure Deserialization
- 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.
- Impact: Remote attackers can forge session files, potentially leading to remote code execution or session hijacking.
- Remediation: Update to the latest version of Gogs where this issue is fixed.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.31133
- Epss percentile: 0.98311
- Assignee: [email protected]
- Published at: 2018-11-04T05:29:00Z
- Age in days: 2942
- Modified at: 2026-06-17T01:48:07Z
- Patch available: yes
- Public exploits total: 1
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-18925
- Nvd status: modified
- Checked, none or zero: known exploited entries, public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-384 | Session Fixation |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2018-18925 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-18925.yaml |
Hackerone
- Reports: 1
- Rank: 5211
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/j4k0m/CVE-2018-18925 | poc-in-github | 2021-09-12 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/gogs/gogs/issues/5469 | nvd | Patch, Third Party Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-18925.yaml | nuclei_template | Nuclei Template |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| gogs:gogs | <= 0.11.66 | no | nvd | /v1/products/gogs/gogs |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| gogs/gogs | issues | yes | /v1/repositories/gogs/gogs |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2021-09-12
- Remote: yes
- Hackerone reports: 1
- Exposed hosts: 174004
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, initial access since