Advisory

GHSA-9hxg-w7qf-hh93

Also known as: CVE-2018-20303

Summary

Gogs Directory Traversal

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-14 01:37 UTC
Modified
2026-05-14 22:46 UTC

Affected packages and fixes

gogs.io/gogs

Go · All systems

Affected

  • introduced 0, fixed 0.11.80-0.20181218063808-ff93d9dbda5c (semver)

Fixed versions

0.11.80-0.20181218063808-ff93d9dbda5c

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences