Gitea Code Injection Vulnerability
Gitea — Gitea
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
9.8
86.8%
Vector breakdown
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- Aug 26, 2026
- Modified
- Aug 27, 2026
- Added to KEV
- Aug 25, 2026
- Federal patch due
- Aug 28, 2026
CISA required action
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 applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
Weakness classification
Proof-of-concept & exploitation references
8 foundWeaponization
Public repositories whose name or description references CVE-2026-60004, found via a live GitHub search at request time. These are community-sourced signals, not a verified working exploit - cross-check each one before relying on it, and treat higher star counts and recent activity as (weak) corroboration, not proof.
- imbas007/CVE-2026-60004-POC★ 17
CVE-2026-60004 Pre-Auth RCE Exploit — Gitea <= 1.27.0 diffpatch git hook injection (CVSS 9.8)
updated Aug 27, 2026
- HORKimhab/CVE-2026-60004★ 4
CVE-2026-60004
updated Jul 31, 2026
- gagaltotal/CVE-2026-60004-poc-gitea★ 2
CVE-2026-60004 — Gitea Pre-Auth RCE via diffpatch hook injection
updated Aug 11, 2026
- 0xBlackash/CVE-2026-60004★ 1
CVE-2026-60004
updated Aug 26, 2026
- HackSpeak/CVE-2026-60004★ 1
Gitea diffpatch RCE (CVE-2026-60004) PoC - repo-write to RCE as Gitea service account
updated Aug 4, 2026
- EQSTLab/CVE-2026-60004★ 1
Gitea diffpatch RCE
updated Aug 26, 2026
- shinthink/CVE-2026-60004★ 0
CVE-2026-60004 — Gitea/Forgejo Diffpatch Git Hook RCE. Bare clone → post-index-change hook injection. CVSS 9.8 | CWE-94 | Gitea < 1.27.1
updated Aug 3, 2026
- fevar54/cve-2026-60004★ 0
CVE-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`.
updated Aug 25, 2026
References
How this class of flaw gets exploited
Frequently asked questions
What is CVE-2026-60004?
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
How severe is CVE-2026-60004?
CVE-2026-60004 has a CVSS base score of 9.8 out of 10 (CVSS 3.1).
Is CVE-2026-60004 actively exploited in the wild?
Yes. CVE-2026-60004 is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added Aug 25, 2026, meaning CISA has confirmed evidence of active exploitation.
What is the EPSS score for CVE-2026-60004?
86.8% - meaning FIRST.org's EPSS model estimates a 86.8% probability this vulnerability will be exploited in the wild within 30 days (100% percentile among all scored CVEs).
Is there exploit tooling available for CVE-2026-60004?
Yes - a public Nuclei template referencing CVE-2026-60004 exist in public repositories we checked. We also found 8 public GitHub repositories referencing this CVE.
What type of vulnerability is CVE-2026-60004?
CVE-2026-60004 is classified under CWE-94 (CWE-94 Improper Control of Generation of Code ('Code Injection')).
Cross-checked against
Impactr finds and proves whether CVE-2026-60004 - or flaws like it - are actually reachable in your own web apps and APIs, with a reproducible exploit as evidence.
Join the waitlist