patchminder
Exploited in the wild · CISA KEV CVE-2026-60004

Remote code executionin Gitea.

Published 26 Aug 2026 · Updated 8 Sep 2026 · Every fact sourced

JSONCite
Is it exploited?
Yes

On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 25 Aug 2026.

On CISA's listAttack code is public
Severity
Critical 9.8
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.1 · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 99.0% chance in 30 days · 4 Dec 2026
Fix
Available
Upgrade to 1.27.1 or later
In plain words

Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.

CISA: 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.

What to do now
  • Upgrade Gitea to 1.27.1 or later.
  • Upgrade gitea.dev (Go) to 1.27.1 or later.
  • CISA requires US federal agencies to fix it by 28 Aug 2026.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
Gitea
1.17 to before 1.27.1
1.27.1
CVE record
gitea.dev (Go)
1.17.0 to before 1.27.1
1.27.1
GitHub advisory
code.gitea.io/gitea (Go)
1.17.0 and later
Not confirmed
GitHub advisory
gitea.dev (Go)
before 1.27.1
1.27.1
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 8 Jul 2026
    CVE ID reserved by mitre.
  2. 29 Jul 2026
    First public proof of concept on GitHub.
  3. 25 Aug 2026
    Added to CISA's Known Exploited Vulnerabilities list.
  4. 26 Aug 2026
    Published in the CVE List.
  5. 8 Sep 2026
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.

Metasploit module
None known
Nuclei scan template
Available
Exploit-DB
None known
GitHub proof of concepts
12 repositories
GitHubno warning signs foundimbas007/CVE-2026-60004-POC18 stars · created 3 Aug 2026CVE-2026-60004 Pre-Auth RCE Exploit · Gitea <= 1.27.0 diffpatch git hook injection (CVSS 9.8)
GitHubno warning signs foundachrafzaryouh/CVE-2026-600046 stars · created 30 Jul 2026CVE-2026-60004
GitHubno warning signs foundHORKimhab/CVE-2026-600045 stars · created 29 Jul 2026CVE-2026-60004
GitHubno warning signs foundHackSpeak/CVE-2026-600042 stars · created 4 Aug 2026Gitea diffpatch RCE (CVE-2026-60004) PoC · repo-write to RCE as Gitea service account
GitHubno warning signs foundgagaltotal/CVE-2026-60004-poc-gitea2 stars · created 8 Aug 2026CVE-2026-60004 · Gitea Pre-Auth RCE via diffpatch hook injection
GitHubno warning signs foundEQSTLab/CVE-2026-600041 stars · created 30 Jul 2026Gitea diffpatch RCE
GitHubno warning signs foundyym8538/CVE-2026-600041 stars · created 21 Aug 2026
GitHubno warning signs foundshinthink/CVE-2026-600040 stars · created 3 Aug 2026CVE-2026-60004 · Gitea/Forgejo Diffpatch Git Hook RCE. Bare clone → post-index-change hook injection. CVSS 9.8 | CWE-94 | Gitea < 1.27.1
GitHubno warning signs foundSachinart/CVE-2026-60004-gitea-0day0 stars · created 4 Aug 2026CVE-2026-60004 · Gitea <= 1.27.0 Pre-Auth RCE
GitHubno warning signs foundfevar54/cve-2026-600040 stars · created 25 Aug 2026CVE-2026-60004 es una vulnerabilidad crítica (CVSS 9.8) en Gitea que permite ejecución remota de código sin autenticación mediante el endpoint `/api/v1/repos/{owner}/{repo}/diffpatch`.

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other Gitea vulnerabilities

Same weakness: Code injection

All CWE-94 vulnerabilities

References
Cite this page

Patchminder. CVE-2026-60004: Remote code execution in Gitea. https://patchminder.com/cve/cve-2026-60004/ (accessed 5 December 2026).