New Gitea RCE Lets Repository Writers Plant a Git Hook to Run Shell Commands
Overview
Gitea has addressed a serious remote code execution (RCE) vulnerability that could allow users with write access to repositories to execute shell commands. This flaw, identified as CVE-2026-60004, has a high severity score of 9.8 and affects Gitea versions from 1.17 up to, but not including, 1.27.1. Essentially, an attacker could manipulate patch content to create a Git hook that runs commands as the Gitea service account. The vulnerability poses a significant risk to self-hosted Git users, as it could lead to unauthorized access and control over systems running Gitea. Users are strongly advised to update to version 1.27.1 to mitigate this risk.
Key Takeaways
- Affected Systems: Gitea versions 1.17 to 1.27.0
- Action Required: Update to Gitea version 1.
- Timeline: Newly disclosed
Original Article Summary
Gitea, the self-hosted Git platform, has patched a critical remote code execution vulnerability. A user with ordinary repository write access can turn attacker-controlled patch content into a live Git hook and run shell commands as the Gitea service account. Tracked as CVE-2026-60004 (CVSS score: 9.8), the flaw affects Gitea versions 1.17 and later before 1.27.1 and is fixed in 1.27.1. The
Impact
Gitea versions 1.17 to 1.27.0
Exploitation Status
No active exploitation has been reported at this time. However, organizations should still apply patches promptly as proof-of-concept code may exist.
Timeline
Newly disclosed
Remediation
Update to Gitea version 1.27.1 or later.
Additional Information
This threat intelligence is aggregated from trusted cybersecurity sources. For the most up-to-date information, technical details, and official vendor guidance, please refer to the original article linked below.
Related Topics: This incident relates to CVE, Vulnerability, Patch, and 3 more.