CVE-2026-60004

published 26 Aug 2026 · updated 8 Sep 2026

Gitea Code Injection Vulnerability

10.0CriticalCVSS 9.8EPSS 24%CISA KEV · due 28 Aug 20262 public exploits

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

VendorProductVersionsFixed
GiteaGitea>=1.17 <1.27.11.27.1

Exploit evidence

2 public sources

kev

Timeline

Every event on this vulnerability

PublishedCVE-2026-60004·
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.
7.0High

Related

Other vulnerabilities in Gitea, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-60004 severity on Zeptric[![CVE-2026-60004](https://zeptric.io/badge/cve/CVE-2026-60004.svg)](https://zeptric.io/cve/CVE-2026-60004)