Skip to content
OpenAdvisories
Critical · 9.8 Scanner template Public exploit CVE-2026-59774 EUVD-2026-101281

Gitea Org-mode file disclosure and code execution

Published Oct 14, 2026 · Updated Oct 15, 2026 · Assigned by Gitea

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

VendorProductAffectedFixed
Gitea Gitea 1.22 – < 1.27.1 1.27.1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

GitHub 3 repositories

  • FlowerWitch/CVE-2026-59774_docker ★ 5 · Aug 6, 2026

    CVE-2026-59774

  • Ly0kha/CVE-2026-59774 ★ 1 · Oct 24, 2026

    Gitea LFI to RCE exploit (CVE-2026-59774) — arbitrary file read via Org-mode #+INCLUDE, chained to remote code execution through git hook injection

  • asvorg/CVE-2026-59774-poc ★ 1 · Oct 21, 2026

    PoC for Gitea versions before 1.27.1 is vulnerable to Path Traversal (CWE-22), which leads to unauthenticated arbitrary file read / information disclosure leading to RCE CVSS 9.8

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Advisories 1

References