Path Traversal in Gogs
CVE-2018-20303
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
EPSS exploit prediction
EPSS: 0.032 (87.7th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 88th percentile — 87.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.032 · newest: 0.032 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce (Patch, Third Party Advisory)
- pentesterlab.com/exercises/cve-2018-18925/ (Exploit, Third Party Advisory)
- github.com/gogs/gogs/issues/5558 (Patch, Third Party Advisory, Issue Tracking)
Frequently asked questions
- What is CVE-2018-20303?
- CVE-2018-20303 is a high-severity vulnerability in Gogs, classified under Path Traversal. CVSS score: 7.5/10. Published 2018-12-20.
- How severe is CVE-2018-20303?
- High severity. CVSS v3 base score is 7.5 out of 10.
- Is CVE-2018-20303 known to be exploited?
- 7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.