CVE-2018-20303
mediumpriority · track · 31EPSS 0.033 · 88 %ileEUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 5–7.5
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-9hxg-w7qf-hh93Gogs Directory Traversal2022-05-14ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (9)
External citations — patches, advisories, analysis.
- https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970cecnnvd
- https://github.com/gogs/gogs/issues/5558cnnvd
- https://pentesterlab.com/exercises/cve-2018-18925/cnnvd
- https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970ceenisa_euvd
- https://github.com/gogs/gogs/issues/5558enisa_euvd
- https://pentesterlab.com/exercises/cve-2018-18925/enisa_euvd
- https://github.com/gogs/gogs/commit/ff93d9dbda5cebe90d86e4b7dfb2c6b8642970cePatchThird Party Advisorynvd
- https://github.com/gogs/gogs/issues/5558Issue TrackingPatchThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan