{"id":"CVE-2026-59774","published":"2026-10-14T15:17:20Z","modified":"2026-10-15T04:18:24Z","title":"Gitea's Org-mode markup renderer processes INCLUDE directives supplied to the repository markup endpoint without…","vendor":"Gitea","product":"Gitea","tier":"core","eol":null,"description":{"text":"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.","provenance":"source","from":"NVD"},"summary":{"text":"Gitea's Org-mode markup renderer, used by the repository markup endpoint, fails to block INCLUDE directives that reference server-side paths, which is a path traversal flaw. An unauthenticated remote attacker can exploit it through a suitable public repository without user interaction to read files available to the Gitea service account, and if app.ini and its INTERNAL_TOKEN are exposed, can chain that disclosure with internal logger access to modify a Git hook and run commands as the service account.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:53:48Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"NVD"},"epss":{"score":0.28308,"percentile":0.98119,"date":"2026-10-31","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2026-10-15","exploitedFirstSeen":"2026-10-15","ransomware":false,"evidence":[{"url":"https://previdian.com/CVE-2026-59774","date":"2026-10-15"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":null,"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"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":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2026-101281","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-101281","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":3,"skipped":0,"earliest":"2026-08-06","earliestUrl":"https://github.com/FlowerWitch/CVE-2026-59774_docker","repos":[{"name":"FlowerWitch/CVE-2026-59774_docker","url":"https://github.com/FlowerWitch/CVE-2026-59774_docker","stars":5,"created":"2026-08-06"},{"name":"asvorg/CVE-2026-59774-poc","url":"https://github.com/asvorg/CVE-2026-59774-poc","stars":1,"created":"2026-10-21"},{"name":"Ly0kha/CVE-2026-59774","url":"https://github.com/Ly0kha/CVE-2026-59774","stars":1,"created":"2026-10-24"}]},"metasploit":[{"name":"Forgejo Arbitrary File Read via Org-mode Include","module":"auxiliary/gather/forgejo_orgmode_fileread_cve_2026_59774","type":"auxiliary","disclosureDate":"2026-07-30","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/forgejo_orgmode_fileread_cve_2026_59774.rb"}],"nuclei":[{"id":"CVE-2026-59774","name":"Gitea 1.22.1-1.27.0 - Unauthenticated Arbitrary File Read","severity":"critical","path":"http/cves/2026/CVE-2026-59774.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59774.yaml"}],"first":{"date":"2026-07-30","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/forgejo_orgmode_fileread_cve_2026_59774.rb"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2026-07-30","kind":"exploit-public","label":"First public exploit: Metasploit; later: PoC-in-GitHub 2026-08-06","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/forgejo_orgmode_fileread_cve_2026_59774.rb","provenance":"source"},{"date":"2026-10-14","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59774","provenance":"source"},{"date":"2026-10-15","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://previdian.com/CVE-2026-59774","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"Metasploit","daysToKev":null},"priority":{"score":76.5,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":10.0,"detail":"added 17 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.62,"detail":"percentile 0.9812"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"3 PoC-in-GitHub repos; 1 Metasploit module; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}