External Control of File Name or Path in gogs - #VU170294
Published: November 25, 2026
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.