CVE-2026-59774: Gitea Org-mode file disclosure and code execution

Published Oct 14, 2026
·
Updated

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 INTERNALTOKEN, the attacker can chain the disclosure with internal logger access to modify a Git hook and execute commands as the Gitea service account.

Affected Software

1 affected component
Gitea Gitea

Event History

Oct 14, 2026
CVE Published
via MITRE·02:28 PM
Data Sourced
via MITRE·02:28 PM
DescriptionWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Gitea instances with a suitable public repository are exposed to unauthenticated file disclosure through the repository markup endpoint. Files readable by the Gitea service account may be accessible.

2

What does an attacker need to achieve code execution?

The attacker must first disclose app.ini and obtain its INTERNAL_TOKEN. They can then use internal logger access to modify a Git hook and execute commands as the Gitea service account.

3

Is authentication required to exploit the file disclosure?

No. The disclosure can be performed by an unauthenticated attacker when a suitable public repository is available.

4

What level of access could an attacker gain through code execution?

Commands execute as the Gitea service account. The issue does not state that root or host-administrator access is obtained directly.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203