CVE-2018-20303
HIGH 7.5CVSS 3.0Gogs Directory Traversal
In pkg/tool/path.go in Gogs before 0.11.82.1218, a directory traversal in the file-upload functionality can allow an attacker to create a file under data/sessions on the server, a similar issue to CVE-2018-18925.
- Published
- 20 Dec 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-9hxg-w7qf-hh93
- Sources
- NVDJSONOSV GHSA-9hxg-w7qf-hh93JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gogs | gogscpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:* |
< 0.11.82.1218 | 0.11.82.1218 |
| OSV | Go | gogs.io/gogs | < 0.11.80-0.20181218063808-ff93d9dbda5c | 0.11.80-0.20181218063808-ff93d9dbda5c |
References
- https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce · Patch, Third Party Advisory, WEB
- https://github.com/gogs/gogs/issues/5558 · Issue Tracking, Patch, Third Party Advisory, WEB
- https://pentesterlab.com/exercises/cve-2018-18925/ · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-20303 · ADVISORY
- https://github.com/gogs/gogs · PACKAGE
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 20 Dec 2018)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 14 May 2022)