SB2026072953 - Multiple vulnerabilities in Gitea



SB2026072953 - Multiple vulnerabilities in Gitea

Published: July 29, 2026 Updated: August 25, 2026

Security Bulletin ID SB2026072953
CSH Severity
High
Patch available
YES
Number of vulnerabilities 2
Exploitation vector Remote access
Highest impact Code execution

Breakdown by Severity

High 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 2 vulnerabilities.


1) Code Injection (CVE-ID: CVE-2026-60004) Exploited

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

CVSSv4: 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]


The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to improper input validation in diffpatch endpoint. A remote attacker can execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


2) Path traversal (CVE-ID: CVE-2026-59774) Exploited

CWE-ID: CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

CVSSv4: 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]


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.


Remediation

Install update from vendor's website.