CVE-2018-20303Gogs
High 7.5 No auth needed
Follow: this CVE · Gogs · Gogs We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 3.3% probability of exploitation in 30 days · percentile 89
- Auth required
- No
- Published
- Dec 20, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Gogs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | gogs.io/gogs |
< 0.11.80-0.20181218063808-ff93d9dbda5c |
0.11.80-0.20181218063808-ff93d9dbda5c |
go get gogs.io/gogs@v0.11.80-0.20181218063808-ff93d9dbda5c |
Per OSV / GitHub Advisories (GHSA-9hxg-w7qf-hh93). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gogs | gogs | < 0.11.82.1218 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Issue Tracking Patch Third Party Advisory
- pentesterlab.com Exploit Third Party Advisory