H3-2026-1057¶
Gitea Org Mode Local File Inclusion Vulnerability
| Category | VULNERABILITY |
| Base Score | 7.7 |
Description¶
Go-gitea Gitea's org mode markup renderer relies on the go-org library's default file reading behavior when processing include directives, which reads the referenced path directly from the local filesystem of the Gitea server. Remote attackers can submit org markup containing an include directive that names an arbitrary local file to the repository markup rendering route, causing the server to read and return that file's contents in the rendered output. The root cause is that the renderer is not configured to reject or sandbox local file reads triggered by the include directive. Exploitation requires network access to a Gitea instance with at least one accessible repository and its markup rendering route.
Impact¶
Remote attackers read arbitrary files from the Gitea server filesystem, including application configuration, secrets, and private keys. This can lead to full compromise of the Gitea instance and any credentials stored in its configuration. Organizations self hosting Gitea for source control face exposure of repository secrets and signing keys.