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 Intelligence
Gitea Before 1.27.1 allows remote code execution
Gitea · affected before 1.27.1
Exploitation attempts observed by Previdian sensors. They do not show that the target was vulnerable or that the attempt succeeded.
1,328
Attempts observed
112
Unique attacker IPs
16
Attacker countries
BR · CL · CN · DE · ES · HK · ID · JP · MY · NL · RU · SC · SG · TW · US · VN
2
Sensors observed
CVE-2026-60004 exploitation attempts over the last 45 days
Daily events observed by Previdian sensors
Updated 27 Nov 2026
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.
Have exploitation attempts been observed?
Yes. Previdian sensors have observed 1,328 exploitation attempts, 112 unique attacker IPs, and 16 countries targeting CVE-2026-60004. First observed Oct 15, 2026; last observed Nov 15, 2026. Listed in CISA KEV. Also reported by third-party sources. Confidence is confirmed.
Who is affected?
Gitea affected before 1.27.1.
What should we do?
Patch immediately, validate internet-facing exposure, and monitor for matching requests.
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 attempts.
Previdian sensor
Previdian sensors observed exploitation attempts targeting this vulnerability.
Pruva
Public scanner or PoC coverage increases practical exploitability.
Per-source evidence links for KEV attestations are available through the Previdian API.
Request a Demo| 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 |
| Previdian Sensors | 2026-10-15 21:15 UTC |
Operational indicators for this CVE are listed under Detection.
Sensor telemetry
Previdian sensor observations are exploitation attempts targeting this vulnerability. They do not show that the target was vulnerable or that the attempt succeeded. The cards and chart show volume, unique attackers, and daily activity.
First observed 15 Oct 2026 · Last observed 15 Nov 2026
Enterprise includes sensor region and window summaries, plus raw IPs, paths, User-Agents, and payloads.
Detection
Make the evidence actionable in scanner, SOC, and edge-control workflows.
Request targets, User-Agents, and callback host details are available on Enterprise.
Nuclei template detected 27 Aug 2026.
View Nuclei template (opens in new tab)Previdian virtual patch guidance is available for this CVE.
Attacker IP indicators observed. Available on Enterprise.
Sensor-derived attacker IP indicators are available on Enterprise under Detection and through the API.
Request a DemoScanner 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 |
Compensating WAF rules for this CVE.
Enterprise feature. Virtual patch rule content and deployable vendor exports (ModSecurity, Cloudflare, AWS WAF) are available to Previdian Enterprise users.
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 · SOCRadar
Top RCE Vulnerabilities A remote code execution (RCE) vulnerability is a software flaw that lets an attacker run their own code on a target system from a remote location. Exploiting vulnerabilities like this is now the m
Read full advisoryRecent mention · SOCRadar
Top RCE VulnerabilitiesSOCRadar · 14 Oct 2026
Top RCE Vulnerabilities A remote code execution (RCE) vulnerability is a software flaw that lets an attacker run their own code on a target system from a remote location. Exploiting vulnerabilities like this is now the m
Recent 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.
github · Created 2026-11-01 19:44:46 UTC · 0 stars · AI assessment 94%
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
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-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
API
Confidence, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.
GET /api/v2/enterprise/kevs/CVE-2026-60004
Sample API response{
"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": true
},
"sensor_telemetry": { "attempts": 1328, "sensors": 2 }
}
Timeline
01:15 UTC
Compensating WAF rule available to block exploitation
21:11 UTC
Indicators of compromise recorded
21:11 UTC
Previdian sensors observed exploitation attempts targeting this vulnerability.
04:31 UTC
Scanner coverage available
21:01 UTC
Exploitation attempts reported by an external source
19:45 UTC
Vulnerability disclosed publicly
11:59 UTC
Exploitation attempts reported by an external source
06:27 UTC
Exploitation attempts reported 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