Skip to content
Fencer Vulns
high 7.5

CVE-2018-20303 json

Gogs Directory Traversal

published 2018-12-20 7 y ago modified 2026-06-17 4 mo ago also GHSA-9hxg-w7qf-hh93 , EUVD-2022-3398

cvss
7.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
3.3%
EPSS 3.3% chance of exploitation in 30 days, percentile 88%
public exploits
0
none known

Summary

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.

Patch / fix

  • go gogs.io/gogs 0.11.80-0.20181218063808-ff93d9dbda5c
  • gogs gogs 0.11.82.1218

Exploit prediction

3.29% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • pentesterlab.com https://pentesterlab.com/exercises/cve-2018-18925/ referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
NVD 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:N/I:P/A:N
GitHub 3.0 7.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
go gogs.io/gogs
<0.11.80-0.20181218063808-ff93d9dbda5c
0.11.80-0.20181218063808-ff93d9dbda5c

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.