What it is
CVE-2026-60004 is an unauthenticated vulnerability affecting Gitea Gitea. Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Vulnerability report
Gitea Before 1.27.1 allows remote code execution
Gitea / Gitea · affected before 1.27.1
Decision summary
Direct answers before the deeper technical record.
What it is
CVE-2026-60004 is an unauthenticated vulnerability affecting Gitea Gitea. Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Is it exploited?
Yes. Previdian tracks this CVE as a known exploited vulnerability. Confidence is confirmed. Listed in CISA KEV. Also confirmed by third-party sources.
Who is affected?
Gitea / Gitea affected before 1.27.1.
What should we do?
Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.
Overview
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Exploitation evidence
Third-party attestation and first-party sensor observation are shown separately so teams can judge the evidence chain.
CISA
Independent exploitation attestation added to the Previdian record.
Pruva
Public scanner or PoC coverage increases practical exploitability.
Per-source evidence links for KEV attestations are available through the Previdian Pro API.
Learn about Pro API access| Source | Added |
|---|---|
| CISA First | 2026-08-25 10:47 UTC |
| TheHackerNews | 2026-08-26 06:27 UTC |
| CERT Polska | 2026-08-26 11:59 UTC |
| CVE | 2026-08-26 21:01 UTC |
Detection
Make the evidence actionable in scanner, SOC, and edge-control workflows.
Raw values available in Pro and Enterprise.
Nuclei template detected 27 Aug 2026.
View Nuclei template (opens in new tab)No Previdian virtual patch is currently available. Future rules ship for ModSecurity, Cloudflare, and AWS WAF.
Learn about virtual patches →Scanner and exploit-framework references linked to this CVE.
| Scanner | Reference | Detected |
|---|---|---|
| Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-60004.yaml | 27 Aug 2026 |
Risk and context
CVSS v3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
—
Recent mention · CERT Polska
Zespół CERT Polska informuje o krytycznej podatności w Gitea, oznaczonej jako CVE-2026-60004.Podatność pozwala atakującemu z dostępem do zapisu w repozytorium na zdalne wykonanie dowolnych poleceń systemowych z uprawnieniami użytkownika usługi Gitea. Wykorzystanie podatności...
Read full advisoryRecent mention · CERT Polska
Krytyczna podatność w GiteaCERT Polska · 26 Aug 2026
Zespół CERT Polska informuje o krytycznej podatności w Gitea, oznaczonej jako CVE-2026-60004.Podatność pozwala atakującemu z dostępem do zapisu w repozytorium na zdalne wykonanie dowolnych poleceń systemowych z uprawnieniami użytkownika usługi Gitea. Wykorzystanie podatności wymaga posiadania konta, jednak domyślna konfiguracja Gitea umożliwia otwartą rejestrację nowych użytkowników bez konieczności akceptacji przez administratoraProblem dotyczy wersji od 1.17 do 1.27.0 włącznie.Podatność jest aktywnie wykorzystywana do przeprowadzania ataków. W związku z tym rekomendujemy analizę logów w...
Recent mention · TheHackerNews
Critical Gitea RCE Actively Exploited as Reported Attack Drops Miner-Like PayloadTheHackerNews · 26 Aug 2026
The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Tuesday warned of active exploitation efforts targeting a recently patched critical security flaw impacting Gitea. The vulnerability in question is CVE-2026-60004 (CVSS score: 9.8), a case of remote code execution that allows an attacker with ordinary write access to a repository to execute arbitrary shell commands as the
These PoCs are unverified and could contain malware. Use at your own risk.
github · Created 2026-08-08 13:08:31 UTC · 2 stars · AI assessment 90%
CVE-2026-60004 — Gitea Pre-Auth RCE via diffpatch hook injection
github · Created 2026-08-04 22:51:05 UTC · 0 stars · AI assessment 90%
CVE-2026-60004 — Gitea <= 1.27.0 Pre-Auth RCE
github · Created 2026-08-04 12:16:59 UTC · 1 stars · AI assessment 90%
Gitea diffpatch RCE (CVE-2026-60004) PoC - repo-write to RCE as Gitea service account
github · Created 2026-07-30 08:19:19 UTC · 1 stars · AI assessment 90%
Gitea diffpatch RCE
pruva · Created 2026-07-29 10:56:28 UTC
Severity: CRITICAL | CVE: CVE-2026-60004 | Package: go-gitea/gitea
nuclei · Created Unknown
Timeline
Scanner coverage available
Exploitation attested by an external source
Vulnerability disclosed publicly
Exploitation attested by an external source
Exploitation attested by an external source
Listed in the CISA Known Exploited Vulnerabilities catalog
Public proof-of-concept code published
Identifier reserved by the CNA
Pro API
Confidence, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
GET /api/v2/pro/kevs/CVE-2026-60004
Free JSON includes basic KEV fields{
"cve_id": "CVE-2026-60004",
"confidence": "Confirmed",
"cvss_score": 9.8,
"cvss_estimated": false,
"epss_score": null,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "attempts": 0, "sensors": 0 }
}
Early warning alerts
Receive curator-selected alerts when exploitation activity warrants attention. Each alert includes the evidence and context needed to decide what requires attention now.