What’s Vulnerable › Vulnerabilities
CVE-2026-59774: Gitea Org-mode file disclosure and code execution
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 28.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2026-10-14 · updated 2026-10-15
- Weakness: CWE-22
Description
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.
Affected products
- Gitea Open Source Git Server: from 1.22 before 1.27.1 — fixed in 1.27.1
How to fix
Upgrade to a fixed version: Gitea Open Source Git Server 1.27.1. Check the vendor advisory for mitigations.
References
- https://blog.gitea.com/release-of-1.27.1/
- https://github.com/go-gitea/gitea/pull/38642
- https://github.com/go-gitea/gitea/pull/38645
- https://github.com/go-gitea/gitea/releases/tag/v1.27.1
- https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r
- http://www.openwall.com/lists/oss-security/2026/08/10/3
Get alerted when CVE-2026-59774 or the next vulnerability affects your stack