Live threats

All CVEs / Gitea

CVE-2026-59774Gitea

Server-side file disclosure in Gitea Org-mode markup renderer

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
—
Auth required
No
Published
Oct 14, 2026
Updated
Oct 15, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Gitea's Org-mode markup renderer fails to validate INCLUDE directives, allowing an unauthenticated attacker to read server files through a public repository. If sensitive files like app.ini with INTERNAL_TOKEN are exposed, the attacker can chain this disclosure with Git hook access to execute commands as the Gitea service account.

Show the original NVD 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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 1.27.1

Update Gitea to version 1.27.1 or later to apply validation of INCLUDE directives in the Org-mode processor.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Gitea.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.