Path traversal in Gitea - CVE-2026-59774

 

Path traversal in Gitea - CVE-2026-59774

Published: August 3, 2026


Vulnerability identifier: #VU140783
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-59774
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to path traversal in the Org-mode renderer when processing Org-mode markup containing a #+INCLUDE directive through the /{owner}/{repo}/markup endpoint. A remote attacker can submit a specially crafted markup request to execute arbitrary code.

Exploitation requires a publicly readable repository accepted by the markup route, and the issue can be chained by reading INTERNAL_TOKEN from app.ini and injecting a Git hook through the internal logger.


Affected software

Gitea

How to mitigate CVE-2026-59774

Install security update from vendor's website.

Gitea - update to 1.27.1

External References

Related Security Bulletins