Live threats

All CVEs / Gogs

CVE-2018-20303Gogs

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gogs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
gogsgogs< 0.11.82.1218

Official sources

References

Links published by the sources. Open them with care.