Vulnerabilities · 2018 · Gogs
CVE-2018-20303
Gogs vulnerability
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 products
Gogs. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Gogs runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ce · Patch
- github.com/gogs/gogs/issues/5558 · Patch
- pentesterlab.com/exercises/cve-2018-18925/ · Exploit
- nvd.nist.gov/vuln/detail/CVE-2018-20303
- pentesterlab.com/exercises/cve-2018-18925
- github.com/advisories/GHSA-9hxg-w7qf-hh93
- nvd.nist.gov/vuln/detail/CVE-2018-20303
- cve.org/CVERecord?id=CVE-2018-20303
More vulnerabilities in Gogs products
CVE-2026-26276CVE-2026-26196CVE-2025-8110CVE-2024-56731CVE-2024-55947CVE-2024-54148CVE-2024-44625CVE-2024-39933All 35
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.