CVE-2018-20303
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (3.29%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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 3.0
- 7.5 HIGHCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS
- 3.29% probability · 88th percentile
- Public exploits
- None in Exploit-DB
- CISA KEV
- Not listed
- Weakness
- CWE-22
- Affected
- gogs/gogs
- Source
- cve@mitre.org
EPSS 3.3% since 27 October 2026; no change recorded yet. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
References
- https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970cePatch, Third Party Advisory
- https://github.com/gogs/gogs/issues/5558Issue Tracking, Patch, Third Party Advisory
- https://pentesterlab.com/exercises/cve-2018-18925/Exploit, Third Party Advisory
- https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970cePatch, Third Party Advisory
- https://github.com/gogs/gogs/issues/5558Issue Tracking, Patch, Third Party Advisory
- https://pentesterlab.com/exercises/cve-2018-18925/Exploit, Third Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.