Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
Gitea Gitea
Exploitation
Public or AI PoC available; prioritize validation
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Gitea 的 Org-mode 标记渲染器在处理提交到仓库标记端点的 INCLUDE 指令时,未对服务器端文件的访问进行限制。未经验证的攻击者可以利用一个公开可用的仓库,读取 Gitea 服务账户可访问的文件。如果泄露的文件中包含 app.ini 及其 INTERNAL_TOKEN,攻击者可将该信息泄露与内部日志访问结合,通过修改 Git 钩子(hook)以 Gitea 服务账户的身份执行命令。

AI Predicted 9.8 Difficulty: Easy

Affected Version Matrix 1

VendorProduct Version RangeStatus
Gitea Gitea 1.22< 1.27.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-59774

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Gitea Org-mode file disclosure and code execution
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Gitea Gitea 1.22 ~ 1.27.1 -

II. Public POCs for CVE-2026-59774

# POC Description Source Link Shenlong Link
1 Gitea versions 1.22.1 through 1.27.0 initialize the go-org markup renderer without replacing its default ReadFile callback. An unauthenticated attacker can submit Org-mode markup containing an #+INCLUDE directive with an absolute path to the repository markup endpoint of any public repository, causing the server to read and render arbitrary files accessible to the Gitea service user. https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59774.yaml POC Details
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-59774

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-59774 (2)

Security Blog Posts for CVE-2026-59774 (1)

Other References for CVE-2026-59774 (2)

Same Patch Batch · Gitea · 2026-10-14 · 36 CVEs total

CVE-2026-68964 Gitea restricted-user SSH and GPG key metadata disclosure
CVE-2026-70396 Gitea organization repository creation token scope bypass
CVE-2026-70406 Gitea private comparison disclosure with public-only tokens
CVE-2026-70400 Gitea private migration creation with public-only tokens
CVE-2026-70402 Gitea local code execution through writable Git hooks
CVE-2026-67577 Gitea restricted-user activity and heatmap disclosure
CVE-2026-63792 Gitea private reusable workflow disclosure to fork runs
CVE-2026-63021 Gitea Swift package manifest memory exhaustion
CVE-2026-62925 Gitea Alpine package parsing memory exhaustion
CVE-2026-70407 Gitea organization listing token scope bypass
CVE-2026-68957 Gitea restricted-user issue search disclosure
CVE-2026-73814 Gitea repository ownership escalation by administrators
CVE-2026-73800 Gitea reusable workflow secret exposure in pull_request_target
CVE-2026-73535 Gitea second-factor bypass through OpenID identity linking
CVE-2026-73804 Gitea API token scope escalation through HTTP signatures
CVE-2026-73539 Gitea external renderer argument injection and code execution
CVE-2026-78231 Gitea blind SSRF through OpenID assertion verification
CVE-2026-78433 Gitea private attachment disclosure through repository mismatch
CVE-2026-73130 Gitea repository initialization resource exhaustion
CVE-2026-73802 Gitea Runner host isolation bypass through container options

Showing top 20 of 36 CVEs. View all on vendor page &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2026-59774

No comments yet


Leave a comment