high7.5
CVE-2018-20303
Gogs Directory Traversal
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| go | gogs.io/gogs | < 0.11.80-0.20181218063808-ff93d9dbda5c | 0.11.80-0.20181218063808-ff93d9dbda5c |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Gogs | Gogs | before 0.11.82.1218 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce
- https://github.com/gogs/gogs/issues/5558
- https://pentesterlab.com/exercises/cve-2018-18925/
- https://github.com/advisories/GHSA-9hxg-w7qf-hh93
- https://nvd.nist.gov/vuln/detail/CVE-2018-20303
- https://pentesterlab.com/exercises/cve-2018-18925