{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2018-20303","published":"2018-12-20T00:29:00.350000Z","last_modified":"2026-06-17T01:52:35.247000Z","status":"Modified","cvss":{"version":"3.0","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","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-22"],"cpes":[{"criteria":"cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*","part":"a","vendor":"gogs","product":"gogs","version_end_excluding":"0.11.82.1218"}],"cpes_truncated":false,"vendors":["gogs"],"products":["gogs/gogs"],"epss":{"score":0.03291,"percentile":0.89265,"date":"2026-11-28","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-9hxg-w7qf-hh93","ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":[{"introduced":"0","fixed":"0.11.80-0.20181218063808-ff93d9dbda5c"}],"versions":[],"versions_truncated":false}],"severity":"high","priority_score":60,"links":{"html_es":"/es/cve/CVE-2018-20303/","html_en":"/en/cve/CVE-2018-20303/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2018-20303","cve_org":"https://www.cve.org/CVERecord?id=CVE-2018-20303"},"untrusted":{"vendor_name":"Gogs","product_name":"Gogs","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/gogs/gogs/issues/5558","tags":["Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://pentesterlab.com/exercises/cve-2018-18925/","tags":["Exploit","Third Party Advisory"]}]}}