Path Traversal in Gogs

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.

Vulnerability class: Path Traversal (Directory Traversal)

EPSS: 0.032 (86.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Affected products

  • Gogs
  • N/a — versions n/a

Weakness classification (CWE)

Public proof-of-concept exploits

References

  • cve@mitre.org (Patch, Third Party Advisory, x_refsource_MISC)
  • cve@mitre.org (Exploit, Third Party Advisory, x_refsource_MISC)
  • cve@mitre.org (Patch, Third Party Advisory, x_refsource_MISC, Issue Tracking)

Frequently asked questions

What is CVE-2018-20303?
CVE-2018-20303 is a high-severity vulnerability in Gogs, classified under Path Traversal. CVSS score: 7.5/10. Published 2018-12-20.
How severe is CVE-2018-20303?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2018-20303 known to be exploited?
7 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.