What it is
CVE-2026-60004 is an unauthenticated vulnerability affecting 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 · 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 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 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
A trusted third party reported exploitation.
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 |
| The Hacker News | 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.
Request targets and User-Agents available in Pro. Callback host details available in 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
Potential damage if exploited. Separate from whether attackers are using it.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
24.0%
Estimated chance of exploitation in the next 30 days. Previdian's warning comes from evidence, not this score.
Recent mention · The Hacker News
Ravie LakshmananSep 22, 2026Vulnerability / Endpoint Security The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Monday added a now-patched security flaw impacting Zyxel GS1900 series switches to its Known Exploited Vulnerabilities (KEV) catalog, citing...
Read full advisoryRecent mention · The Hacker News
Zyxel and Veeam Flaws Under Active Exploitation With Command and SYSTEM AccessThe Hacker News · 22 Sep 2026
Ravie LakshmananSep 22, 2026Vulnerability / Endpoint Security The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Monday added a now-patched security flaw impacting Zyxel GS1900 series switches to its Known Exploited Vulnerabilities (KEV) catalog, citing evidence of active exploitation. The vulnerability, tracked as CVE-2026-7273 (CVSS score: 8.8), is a stack-based buffer overflow vulnerability that could result in arbitrary operating system (OS) command execution. "A stack-based buffer overflow vulnerability in the CGI program of the Zyxel GS1900 series switch firmware...
Recent mention · GreyNoise
Open Season on Kapibala: Attacker Steals Over 18,000 Government Records Through WordPress ExploitationGreyNoise · 21 Sep 2026
GreyNoise has been tracking malicious use of an IP address since early June 2026 due to its frequent use in scans and attacks against a variety of technologies. We detail a few of the more notable intrusions we observed including the theft of more than 18,000 sensitive records from a western government.
Recent mention · The Hacker News
Red Heron Exploits Gitea RCE to Compromise 13 Organizations Across Six CountriesThe Hacker News · 14 Sep 2026
A suspected Chinese threat actor tracked as Red Heron has been attributed to the rapid exploitation of a recently disclosed security vulnerability in Gitea to compromise internet-facing instances as part of a multi-national campaign. "Red Heron scanned 1,386 Gitea instances across seven countries and maintained a separate dataset of 477 Taiwan-based systems," Acronis Threat Research Unit (TRU)
Recent mention · Github Advisory Database (Go)
[gitea.dev] Gitea: Remote Code Execution via diffpatch Git Hook InstallationGithub Advisory Database (Go) · 08 Sep 2026
Summary Gitea's diffpatch endpoint can be abused to install and execute a Git hook from repository-controlled content. An attacker with ordinary write access to a repository can execute arbitrary shell commands as the Gitea OS user. With default open registration, an unauthenticated visitor can obtain the required write access by registering an account and creating a repository. Details services/repository/files/patch.go applies attacker-controlled patches in a shared bare temporary clone: cmdApply := gitcmd.NewCommand("apply", "--index", "--recount", "--cached", "--binary") if...
Recent mention · RecordedFuture
August 2026 CVE LandscapeRecordedFuture · 08 Sep 2026
In August 2026, Insikt Group® identified 73 high-impact vulnerabilities that should be prioritized for remediation, 43 of which had a Very Critical Recorded Future Risk Score. This represents a 14% decrease from last month.
Recent 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 · The Hacker News
Critical Gitea RCE Actively Exploited as Reported Attack Drops Miner-Like PayloadThe Hacker News · 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.
1dayexploit · Created 2026-09-22 14:30:00 UTC
CVE-2026-60004: Gitea pre-auth RCE via diffpatch API and Git hook installation. Versions 1.17.0-1.27.0 affected, fixed in 1.27.1.
github · Created 2026-09-14 15:55:30 UTC · 0 stars · AI assessment 90%
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
github · Created 2026-08-30 20:44:59 UTC · 0 stars · AI assessment 90%
🫖 Direct single-target Gitea CVE-2026-60004 RCE validation PoC
github · Created 2026-08-30 20:34:21 UTC · 0 stars · AI assessment 90%
🫖 Contract-correlated discovery and authorized validation tool for Gitea CVE-2026-60004
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
ghsa · Created Unknown · AI assessment 95%
Gitea: Remote Code Execution via diffpatch Git Hook Installation
nuclei · Created Unknown
Timeline
04:31 UTC
Scanner coverage available
21:01 UTC
Exploitation attested by an external source
19:45 UTC
Vulnerability disclosed publicly
11:59 UTC
Exploitation attested by an external source
06:27 UTC
Exploitation attested by an external source
10:47 UTC
Listed in the CISA Known Exploited Vulnerabilities catalog
10:56 UTC
Public proof-of-concept code published
09:19 UTC
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": 0.23988,
"exploit_status": {
"exploited_in_the_wild": true,
"active_exploitation_observed": false
},
"sensor_telemetry": { "attempts": 0, "sensors": 0 }
}