CVE-2018-20303: gogs Path Traversal
CVSS: 7.5v3.0HighModified
AliasesGHSA-9hxg-w7qf-hh93
Published 20-12-2018Last modified 05-08-2024
Vulnerability summary
CVE-2018-20303 is a high (CVSS 7.5) Path Traversal vulnerability in gogs. EPSS estimates a 3.20% chance of exploitation in the next 30 days, higher than 87.9% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
7.5/10
010
High · v3.0 (NVD)EPSS score
3.20%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1reference
Timeline
- 20-12-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 2 sources · 2 versionsHigh 7.5Preferred score · NVD (NIST)
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NSourcesAll 2 agree
- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Medium 5.0Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:N/I:P/A:NSourcesSingle source
EPSS trend
Probability
3.20%
Chance of exploitation in the next 30 days
Percentile
88%
Versus all other CVEs
30-day change
0.00 pp
From 3.20% on 18-09-2026
18-09-202618-10-2026
EPSS score3.20%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (pentesterlab.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Gogs1 product
- gogs< 0.11.82.1218
Gogs.io1 product
- gogs< 0.11.80-0.20181218063808-ff93d9dbda5c
2 vendors · 2 products
References
6 links- github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ceX Refsource MISCPatchThird Party AdvisoryWEB
- github.com/gogs/gogsPACKAGE