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.
Published: 2026-10-14
Score: 9.8 Critical
EPSS: 28.3% Moderate
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Gitea's Org-mode renderer can process INCLUDE directives in repository markup without validating that referenced files reside within the repository. This flaw permits an unauthenticated user to read any file readable by the Gitea service account and represents a path traversal weakness (CWE-22). If the target contains configuration such as app.ini with an INTERNAL_TOKEN, the attacker can chain this disclosure with internal logger access to modify a Git hook, enabling arbitrary command execution as the Gitea service account.

Affected Systems

All Gitea installations running a version older than 1.27.1 are vulnerable. The issue was addressed in release 1.27.1, which patches the Org-mode INCLUDE handling to restrict file access.

Risk and Exploitability

The advisory assigns a CVSS score of 9.8, indicating high severity. The EPSS score of 28% indicates a notable probability of exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers can exploit the flaw from any public repository without authentication, leveraging the service account's file system access to read sensitive configuration and subsequently execute code by tampering with Git hooks. Detection would involve monitoring for unusual file reads and hook modifications.

Generated by OpenCVE AI on October 15, 2026 at 19:43 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.27.1 or later.
  • Verify that the service account running Gitea has the least required privileges and deny write access to sensitive files when possible.
  • Monitor repository hooks and internal logs for unauthorized changes and unexpected execution attempts.

Generated by OpenCVE AI on October 15, 2026 at 19:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 16:30:00 +0000

Type Values Removed Values Added
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 14 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
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.
Title Gitea Org-mode file disclosure and code execution
Weaknesses CWE-22
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-15T03:56:54.937Z

Reserved: 2026-07-08T09:19:07.145Z

Link: CVE-2026-59774

cve-icon Vulnrichment

Updated: 2026-10-14T15:13:47.589Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:20.677

Modified: 2026-10-15T04:18:24.663

Link: CVE-2026-59774

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-15T19:45:13Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')