Path traversal in gogs - #VU170289

 

Path traversal in gogs - #VU170289

Published: November 25, 2026


Vulnerability identifier: #VU170289
CSH Severity: Low
CVSS v4: 7.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: N/A
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to read arbitrary files accessible to the Gogs process on Windows, including configuration files containing secrets and database credentials.

The vulnerability exists due to path traversal in the repository AutoInit template loader when it normalizes user-supplied template names without accounting for Windows path separators. A remote user can supply a crafted template name through the repository creation form or API to retrieve file contents from the new repository's initial commit.


Affected software

gogs

Remediation

Install security update from vendor's website.

gogs - update to 0.14.4

External References