{"cve":"CVE-2018-20303","nvd":{"published":"2018-12-20T00:29:00.350","modified":"2026-06-17T01:52:35.247","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-22"],"references":["https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce","https://github.com/gogs/gogs/issues/5558","https://pentesterlab.com/exercises/cve-2018-18925/","https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce","https://github.com/gogs/gogs/issues/5558"],"products":["gogs:gogs"],"source":"nvd","synced_at":"2026-10-19T20:54:36.112582389+00:00"},"epss":{"cve":"CVE-2018-20303","score":0.03291,"percentile":0.88489,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9hxg-w7qf-hh93","url":"https://osv.dev/vulnerability/GHSA-9hxg-w7qf-hh93","summary":"Gogs Directory Traversal","modified":"2026-05-14T22:46:29.110010Z","packages":[{"ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":["<0.11.80-0.20181218063808-ff93d9dbda5c"],"fixed":["0.11.80-0.20181218063808-ff93d9dbda5c"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}