CVE-2026-59774
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.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source adp
Exploit chance (EPSS)
28.308%
chance of exploitation in the next 30 days
higher than 98.2% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 1
Nuclei templates: 1
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2026-10-14 |
Timeline
- 2026-10-14Published by the CNA14:28 UTC
- 2026-10-14CISA SSVC decision recordedsame day
Exploit and advisory records
Nuclei templates:
- CVE-2026-59774: Gitea 1.22.1-1.27.0 - Unauthenticated Arbitrary File Read
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| gitea gitea | from 1.22 before 1.27.1fixed in 1.27.1 | 1.27.1 |
References
- https://github.com/go-gitea/gitea/pull/38642
- https://github.com/go-gitea/gitea/pull/38645
- https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r
- http://www.openwall.com/lists/oss-security/2026/08/10/3
- https://blog.gitea.com/release-of-1.27.1/
- https://github.com/go-gitea/gitea/releases/tag/v1.27.1
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-59774'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-59774'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-59774'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-59774'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).