Gitea <1.27.1 RCE via diffpatch API Git hook
CVE-2026-60004 Published on August 26, 2026
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Known Exploited Vulnerability
This Gitea Code Injection Vulnerability is part of CISA's list of Known Exploited Vulnerabilities. Gitea contains a code injection vulnerability that allows an attacker with repository write access to send a malicious patch to the diffpatch API endpoint to plant an executable Git hook and run shell commands as the Gitea service account.
The following remediation steps are recommended / required by August 28, 2026: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicab
Vulnerability Analysis
CVE-2026-60004 is exploitable with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.
Weakness Type
What is a Code Injection Vulnerability?
The software constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
CVE-2026-60004 has been classified to as a Code Injection vulnerability or weakness.
Products Associated with CVE-2026-60004
Want to know whenever a new CVE is published for Gitea? stack.watch will email you.
Affected Versions
Gitea:- Version 1.17 and below 1.27.1 is affected.