{"id":"CVE-2018-20303","published":"2018-12-20T00:00:00Z","modified":"2024-08-05T11:58:18Z","title":"In pkg/tool/path.go in Gogs before 0.11.82.1218, a directory traversal in the file-upload functionality can allow an…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03291,"percentile":0.8879,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce","tags":["x_refsource_MISC"]},{"url":"https://pentesterlab.com/exercises/cve-2018-18925/","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/issues/5558","tags":["x_refsource_MISC"]}],"priority":{"score":17.8,"factors":[{"name":"EPSS percentile","points":17.76}]},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.11.80-0.20181218063808-ff93d9dbda5c"],"patched":["0.11.80-0.20181218063808-ff93d9dbda5c"],"from":["GHSA-9hxg-w7qf-hh93"],"provenance":"source"}],"summary":{"text":"The flaw is a directory traversal in the file-upload functionality of Gogs, located in pkg/tool/path.go. An attacker who can use that upload functionality can create a file under data/sessions on the server by manipulating the path.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:23Z"},"euvd":{"id":"EUVD-2022-3398","exploited":false,"provenance":"source"},"lineage":{"parents":[{"from":"CVE-2018-18925","to":"CVE-2018-20303","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"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.","from":"CVE.org","in":"CVE-2018-20303"}]}],"packageHistory":[{"cve":"CVE-2014-8681","published":"2014-11-21","fixed":"0.5.8","kev":false},{"cve":"CVE-2014-8682","published":"2014-11-21","fixed":"0.5.8","kev":false},{"cve":"CVE-2014-8683","published":"2014-11-21","fixed":"0.5.8","kev":false},{"cve":"CVE-2018-20303","published":"2018-12-20","fixed":"0.11.80-0.20181218063808-ff93d9dbda5c","kev":false},{"cve":"CVE-2019-14544","published":"2019-08-02","fixed":"0.11.91","kev":false,"link":{"from":"CVE-2018-20303","to":"CVE-2019-14544","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:gogs.io/gogs","fromFixed":"0.11.80-0.20181218063808-ff93d9dbda5c","toFixed":"0.11.91","daysApart":225}]}},{"cve":"CVE-2018-15178","published":"2018-08-08","fixed":"0.12.0","kev":false},{"cve":"CVE-2018-15192","published":"2018-08-08","fixed":"0.12.0","kev":false}],"package":"Go:gogs.io/gogs"}}