{"id":"CVE-2026-59774","summary":"Gitea Org-mode file disclosure and code execution","details":"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.","aliases":["GHSA-6v53-hr58-556r"],"modified":"2026-10-15T02:47:32.400384739Z","published":"2026-10-14T14:28:25.862Z","database_specific":{"cna_assigner":"Gitea","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59774.json"},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2026/08/10/3"},{"type":"ADVISORY","url":"https://blog.gitea.com/release-of-1.27.1/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59774.json"},{"type":"FIX","url":"https://github.com/go-gitea/gitea/pull/38642"},{"type":"FIX","url":"https://github.com/go-gitea/gitea/pull/38645"},{"type":"ADVISORY","url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.1"},{"type":"ADVISORY","url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59774"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/go-gitea/gitea","events":[{"introduced":"d7f73a1334ab7a97d4e055b7c58cdd9ac303f77a"},{"fixed":"a62dfffbe7d3a454c2f2d3c4b2788ba432724a5f"}],"database_specific":{"extracted_events":[{"introduced":"1.22"},{"fixed":"1.27.1"}],"source":"AFFECTED_FIELD"}}],"versions":["v1.27.0","v1.27.0-rc0","v1.28.0-dev","v1.27.0-dev","v1.26.0-dev","v1.25.0-dev","v1.24.0-dev","v1.22.0-rc1","v1.23.0-dev","v1.22.0-rc0","v1.22.0-dev"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59774.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}