CVE-2026-59774: Gitea Org-mode file disclosure and code execution
CVE-2026-59774 affects 36 listed versions of Gitea in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Gitea
36 of 124 listed versions are affected. Fixed in 1.27.1. The newest release, 28.4.0, is not affected.
1.27.0 1.26.4 1.26.3 1.26.2 1.26.1 1.26.0 1.25.5 1.25.4 1.25.3 1.25.2 1.25.1 1.25.0 1.24.7 1.24.6 1.24.5 1.24.4 1.24.3 1.24.2 1.24.1 1.24.0 1.23.8 1.23.7 1.23.6 1.23.5 1.23.4 1.23.3 1.23.2 1.23.1 1.23.0 1.22.6 1.22.5 1.22.4 1.22.3 1.22.2 1.22.1 1.22.0
What it is
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Gitea)
Published by Gitea on 14 October 2026. Last changed 15 October 2026. Exploit code is public (Metasploit or Nuclei).
Sources
Check one version you run: look CVE-2026-59774 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.