Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.8
CVE-2026-59774: Gitea may leak files and run commands
CVE-2026-59774 · published 1 day ago
Summary
Gitea’s document renderer can read any file the service can access when processing INCLUDE directives in public repositories. An attacker could view sensitive configuration files and, if they contain a token, use it to alter a Git hook and execute commands as the Gitea service account. Apply the latest Gitea update or restrict the renderer to prevent file inclusion.
What to do
- Update gitea gitea to version 1.27.1 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| gitea | gitea | < 1.27.1 |
Original advisory text
Gitea Org-mode file disclosure and code execution
Gitea's Org-mode markup renderer processes INCLUDE directives supplied to the repository markup endpoint without preventing access to server-side files. An unauthenticated attacker can use a suitable public repository to read files accessible to the Gitea service account. If the disclosed files include app.ini and its INTERNAL_TOKEN, the attacker can chain the disclosure with internal logger access to modify a Git hook and execute commands as the Gitea service account.
References
- https://github.com/go-gitea/gitea/pull/38642 patch
- https://blog.gitea.com/release-of-1.27.1/ release-notes
- https://github.com/go-gitea/gitea/pull/38645 patch
- https://github.com/go-gitea/gitea/releases/tag/v1.27.1 release-notes
- http://www.openwall.com/lists/oss-security/2026/08/10/3
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59774... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-59774 Vendor Advisory
- https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r vendor-advisory
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Severity
9.8
Critical
Type
CWE-22Path Traversal
Timeline
Published14 Oct 2026
Updated15 Oct 2026
First seen14 Oct 2026
Track software like this
Free during beta