home / blog

2026-11-01 · critical

CVE-2026-60004: Gitea RCE Through diffpatch API

Critical RCE on Gitea via diffpatch API with Git hook. Versions < 1.27.1 affected. CVSS 9.8. Patch now.

CVE-2026-60004: Gitea RCE Through diffpatch API

CVE-2026-60004 is a remote code execution (RCE) vulnerability affecting Gitea versions before 1.27.1. The flaw lies in the diffpatch API and is exploitable through Git hook installation, allowing a remote attacker to execute arbitrary code on affected Gitea servers. The impact directly affects Gitea system administrators, repository managers, and DevOps infrastructures using this versioning solution.

The vulnerability has a CVSS score of 9.8, classified as critical by the National Vulnerability Database. The CVE was published on August 26, 2026. A GitHub signal dated November 1, 2026 (today) indicates the presence of public repositories claiming to contain exploit material related to this flaw, confirming a state of public exposure. No reports of active exploitation have been recorded, but the risk is elevated given the availability of exploits.

Gitea administrators must update immediately to version 1.27.1 or later. Verify your Gitea system inventory and installed versions without delay. If updates are delayed, monitor access to the diffpatch API and implement network restrictions to limit interface exposure to authorized clients only. Review logs for any suspicious access to the diffpatch API and Git hook management.

At a glance

What
CVE-2026-60004 is a remote code execution (RCE) vulnerability in Gitea's diffpatch API exploitable through Git hook installation. An unauthenticated remote attacker can execute arbitrary code.
Severity
CVSS 9.8 (critical). Allows remote code execution without significant restrictions.
Affected versions
All Gitea versions prior to 1.27.1. Consult official Gitea documentation for support status of specific releases.
Fix
Update Gitea to version 1.27.1 or later available from the vendor.
Status
Published August 26, 2026. GitHub signals from November 1, 2026 indicate availability of public exploits.
Action
Perform immediate update. Verify Gitea version inventory. Monitor diffpatch API. Review access logs and Git hook installations.

Sources: NVD, CVE-2026-60004

← All articles