CVE-2026-59774 Details
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.
A vulnerability in Gitea's Org-mode markup renderer allows for unauthenticated arbitrary file reads. This issue is present in Gitea versions 1.22.1 prior to 1.27.1. The vulnerability arises because the renderer processes INCLUDE directives without restricting access to server-side files. An attacker can exploit this by sending a crafted directive to the repository markup endpoint of a public repository, potentially accessing sensitive files like app.ini. If the app.ini file contains the INTERNAL_TOKEN, the attacker could use it to inject a Git hook and execute commands as the Gitea service account.
Users can upgrade to Gitea version 1.27.1, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 14, 2026CISA-ADP
Assessed Oct 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://blog.gitea.com/release-of-1.27.1/ | Gitea Limited | AdvisoryRelease NotesVendor |
| https://github.com/go-gitea/gitea/pull/38642 | Gitea Limited | Source CodeVendor |
| https://github.com/go-gitea/gitea/pull/38645 | Gitea Limited | Source CodeVendor |
| https://github.com/go-gitea/gitea/releases/tag/v1.27.1 | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r | Gitea Limited | AdvisoryRemedyVendor |
| http://www.openwall.com/lists/oss-security/2026/08/10/3 | CVE | Mailing ListRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | Gitea Limited |
Affected Products
| Product | Versions |
|---|---|
| Gitea | >= 1.22.1, <= 1.27.0 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | CISA-ADP |
| Oct 14, 2026 | CVE Modified | CISA-ADP |
| Oct 14, 2026 | CVE Modified | CVE |
| Oct 14, 2026 | New CVE Received | Gitea Limited |
Volerion