{"id":"CVE-2018-20303","aliases":["GHSA-9hxg-w7qf-hh93"],"url":"https://o3.security/vulnerability/CVE-2018-20303","summary":"Gogs Directory Traversal","details":"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":"2018-12-20T00:29:00.350Z","modified":"2026-07-08T05:54:31.099012088Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"Go","name":"gogs.io/gogs","fixedVersion":"0.11.80-0.20181218063808-ff93d9dbda5c"}],"fix":{"url":"https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce","label":"gogs/gogs@ff93d9d"},"references":[{"type":"FIX","url":"https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce"},{"type":"FIX","url":"https://github.com/gogs/gogs/issues/5558"},{"type":"EVIDENCE","url":"https://pentesterlab.com/exercises/cve-2018-18925/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20303"},{"type":"PACKAGE","url":"https://github.com/gogs/gogs"},{"type":"WEB","url":"https://pentesterlab.com/exercises/cve-2018-18925"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-08T05:54:31.099012088Z"}}