Gitea Code Injection Vulnerability
Exploited in the wild, in CISA KEV since 25 Aug 2026 (due 28 Aug 2026), with 2 public exploits. Fixed in Gitea 1.27.1.
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Briefing
Written from the sources below · claude-haiku-5-5
CVE-2026-60004 is a code injection flaw in Gitea before 1.27.1 that allows remote code execution through the diffpatch API by installing Git hooks. Gitea deployments running versions earlier than 1.27.1 are affected.
Why it mattersIt is listed in CISA KEV as known exploited, and public nuclei detection material exists, so exposed Gitea instances face active attack risk.
ActionUpgrade Gitea to 1.27.1 or later, and check instances for unexpected Git hooks in repositories.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Gitea | Gitea | >=1.17 <1.27.1 | 1.27.1 |
Exploit evidence
2 public sources
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Gitea, strongest first
Embed
A live severity badge for an advisory, README or ticket