{"id":"CVE-2026-59774","published":"2026-10-14T15:17:20.677","lastModified":"2026-10-15T04:18:24.663","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.","cvssScore":9.8,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwes":["CWE-22"],"vendors":[],"products":[],"references":[{"url":"https://blog.gitea.com/release-of-1.27.1/","tags":[]},{"url":"https://github.com/go-gitea/gitea/pull/38642","tags":[]},{"url":"https://github.com/go-gitea/gitea/pull/38645","tags":[]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.1","tags":[]},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2026/08/10/3","tags":[]}],"exploitRefs":[{"url":"https://github.com/go-gitea/gitea/pull/38642","tags":[]},{"url":"https://github.com/go-gitea/gitea/pull/38645","tags":[]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.1","tags":[]},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r","tags":[]}],"hasPoc":true,"ai":{"summary":"Gitea's Org-mode renderer allows unauthenticated attackers to read arbitrary server files via INCLUDE directives, potentially leading to full system compromise through command execution.","exploitability":"Very easy to exploit with no prerequisites; attackers only need access to a public repository to trigger file disclosure.","blast_radius":"High impact across all Gitea installations using Org-mode markup, especially those with sensitive configuration files accessible to the service account.","remediation":"Upgrade to Gitea 2.590 or later to fix the Org-mode INCLUDE directive processing vulnerability.","detection":"Monitor for unusual file access patterns in the Gitea service account's directory and check for requests to the repository markup endpoint with INCLUDE directives in the logs.","tags":["file-disclosure","rce","orgmode","gitea"],"model":"garnet-coder","analyzedAt":"2026-10-15T08:49:59.469Z"}}