RCE in Gitea
CVE-2026-60004
- CVSS v3
- 9.8 Critical
- CISA KEV
- Since 2026-08-25
- Public exploits
- 13 repositories
- EPSS
- 0.240 · 98.3th percentile
- Published
- 2026-08-26
What to do
- 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. CISA KEV catalog
- BOD 22-01 due date
- Affected
- 1 affected product
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.240, 98.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
CISA KEV (Known Exploited Vulnerabilities)
This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.
BOD 22-01 due date: .
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.
Browse the full CISA KEV catalog with PoC counts, Metasploit modules and EPSS.
Public exploits and proof-of-concept code
13 public repositories with exploit or proof-of-concept code for this CVE:
- imbas007/CVE-2026-60004-POC (18 stars, last pushed 2026-08-03): CVE-2026-60004 Pre-Auth RCE Exploit — Gitea <= 1.27.0 diffpatch git hook injection (CVSS 9.8)
- ashrafzaryouh/CVE-2026-60004 (6 stars, last pushed 2026-07-30): CVE-2026-60004
- EQSTLab/CVE-2026-60004 (2 stars, last pushed 2026-08-19): Gitea diffpatch RCE
- gagaltotal/CVE-2026-60004-poc-gitea (2 stars, last pushed 2026-08-08): CVE-2026-60004 — Gitea Pre-Auth RCE via diffpatch hook injection
- HackSpeak/CVE-2026-60004 (2 stars, last pushed 2026-08-04): Gitea diffpatch RCE (CVE-2026-60004) PoC - repo-write to RCE as Gitea service account
- yym8538/CVE-2026-60004 (1 star, last pushed 2026-08-21)
- basesixtythree/B63-POC-CVE-2026-60004 (last pushed 2026-11-01): CVE-2026-60004 (Gitea): unauth RCE via diffpatch add/add collision -> live git hook in bare temp clone (KEV) — b63 showcase, lab-verified with patched + unaffected negatives
- erberkan/CVE-2026-60004-PoC (last pushed 2026-09-14): Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
- InfoSec-DB/CVE-2026-60004-Gitea-RCE-PoC (last pushed 2026-08-30): 🫖 Direct single-target Gitea CVE-2026-60004 RCE validation PoC
- InfoSec-DB/CVE-2026-60004-Gitea-Validator (last pushed 2026-08-30): 🫖 Contract-correlated discovery and authorized validation tool for Gitea CVE-2026-60004
3 more are listed on the interactive page.
Also mentioned in 3 other repositories (0xBlackash/CVE-2026-60004, 0xredash/CVE-2026-60004, HORKimhab/CVE-2026-60004). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- blog.gitea.com/release-of-1.27.1/ (Release Notes)
- github.com/0xBlackash/CVE-2026-60004 (Exploit, Third Party Advisory, Mitigation)
- github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m (Exploit, Vendor Advisory)
- www.runzero.com/blog/gitea/ (Third Party Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog (US Government Resource)
This CVE has public exploit evidence. See the latest CVEs with public exploits.