External Control of File Name or Path in gogs - #VU170294

 

External Control of File Name or Path in gogs - #VU170294

Published: November 25, 2026


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

Vulnerability details

The vulnerability allows a remote attacker to read files accessible to the Gogs server process, potentially exposing credentials and signing secrets.

The vulnerability exists due to unrestricted external control of file paths in the go-org renderer used by Gogs when rendering repository content in Org mode. A remote attacker can view a crafted public repository document to obtain server file contents disclosed through the include directive, while the related setup-file directive reads files without directly displaying their contents.


Affected software

gogs

Remediation

Install security update from vendor's website.

gogs - update to 0.14.4

External References

Related Security Bulletins