{"id":"GHSA-9hxg-w7qf-hh93","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.","aliases":["CVE-2018-20303"],"modified":"2026-05-14T22:46:29.110010Z","published":"2022-05-14T01:37:52Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2023-07-25T18:09:57Z","nvd_published_at":"2018-12-20T00:29:00Z","cwe_ids":["CWE-22"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-20303"},{"type":"WEB","url":"https://github.com/gogs/gogs/issues/5558"},{"type":"WEB","url":"https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce"},{"type":"PACKAGE","url":"https://github.com/gogs/gogs"},{"type":"WEB","url":"https://pentesterlab.com/exercises/cve-2018-18925"}],"affected":[{"package":{"name":"gogs.io/gogs","ecosystem":"Go","purl":"pkg:golang/gogs.io/gogs"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.11.80-0.20181218063808-ff93d9dbda5c"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-9hxg-w7qf-hh93/GHSA-9hxg-w7qf-hh93.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"}]}