CVE-2026-60004 — Gitea Code Injection Vulnerability
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Who exploits it and how urgent it is
A 0–100 score combining confirmed exploitation, ransomware and APT use, public exploits, EPSS and severity.
How the score was calculated
- Confirmed exploitation (CISA KEV)+35
- Public exploit/PoC (nuclei, github)+10
- EPSS 24% (30-day exploitation probability)+15
- Technical severity (critical)+10
- Automatable exploitation (SSVC)+3
The score orders the patch queue; it does not replace your asset context (internet exposure, criticality, compensating controls).
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the sources call it.
CISA SSVC assessment CISA
Three decision points CISA publishes for the CVEs it assesses (SSVC 2.0.3). A stakeholder decision, not a severity score.
Remediation
Fixes and mitigations documented by the sources — linked to the original advisory.
- Documented mitigation — github.com (NIST National Vulnerability Database)
- Go Gitea.dev: fixed in version 1.27.1 — github.com (GitHub Security Advisories)
CISA required action CISA
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.
US federal deadline: Aug 28, 2026 — passed 48 day(s) ago
First 24 hours
Ordered from the record’s own fields — exposure first, because you cannot patch what you have not found. A rule-generated starting point.
- Identify exposed assets running the affected vendor/product/version combinations (Gitea Gitea, Go Gitea.dev).
- Treat as emergency remediation: the CVE is in CISA KEV (confirmed exploitation).
- The attack is network-based and needs no privileges: restrict exposure (ACLs, VPN, WAF) until patched.
- Apply the fixed version or the patch documented under Remediation.
- EPSS ahead of 98% of scored CVEs: prioritize it in the patch queue.
- Search available logs for exploit probes matching the vulnerability class (injection), errors and authentication anomalies.
Affected scope
Vendor, product and versions as the sources word them.
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Every base score collected
Sources score independently and may disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Scored by |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | Critical | 3.9 | 5.9 | cve@mitre.org via NIST National Vulnerability Database |
| 9.8 | CVSS 3.1 | Critical | — | — | GitHub, Inc. via GitHub Security Advisories |
| 9.8 | CVSS 3.1 | Critical | — | — | mitre via CVE Program (cve.org) e CISA ADP |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (score shown at the top: cve@mitre.org) Weakness MITRE
Weakness class according to MITRE’s CWE catalog.
CISA KEV details CISA
CISA lists a CVE once it has evidence of exploitation against real targets.
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a reference date.
Public exploits, PoCs and detection templates
Public code that demonstrates or tests the flaw raises the odds of mass exploitation — and Nuclei templates help find vulnerable assets in your environment.
- CVE-2026-60004 Pre-Auth RCE Exploit — Gitea <= 1.27.0 diffpatch git hook injection (CVSS 9.8) ★ 17 Aug 3, 2026
- CVE-2026-60004 ★ 5 Jul 29, 2026
- CVE-2026-60004 ★ 5 Jul 30, 2026
- Gitea diffpatch RCE (CVE-2026-60004) PoC - repo-write to RCE as Gitea service account ★ 2 Aug 4, 2026
- CVE-2026-60004 — Gitea Pre-Auth RCE via diffpatch hook injection ★ 2 Aug 8, 2026
- Gitea diffpatch RCE ★ 1 Jul 30, 2026
- yym8538/CVE-2026-60004 ★ 1 Aug 21, 2026
- 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 ★ 0 Aug 3, 2026
- CVE-2026-60004 — Gitea <= 1.27.0 Pre-Auth RCE ★ 0 Aug 4, 2026
- 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`. ★ 0 Aug 25, 2026
Warning: public PoCs are sometimes disguised malware. Use them only for authorized testing in an isolated environment. This portal does not host exploit code — it only points to the sources.
EPSS over time FIRST
Oct 12, 2026 → Oct 14, 2026 · 3 reading(s) · max 23.99%
Detection
Read off the CVSS vector and the weakness class. Starting points, not tested rules.
- Prioritize edge telemetry for the network-reachable component (proxy, WAF, IDS/IPS).
- Look for parameters with command/query metacharacters and unexpected child processes of the service.
- Hunt retroactively in logs from before Aug 25, 2026 (KEV listing): exploitation may have started earlier.
Timeline
What happened to this CVE, newest first.
- 2026
- Fix documented
- Affected products added · go/gitea.dev
- Affected products added · gitea/gitea
- SSVC assessment updated
- Record published
- Fix documented
- Affected products added · gitea/gitea
- CVSS changed · 9.8
- Source status changed · → Analyzed
- Added to CISA KEV (detected)
- Record created in this database
- CVE published
- Added to CISA KEV catalog
Source activity
Repeated readings are counted rather than listed.
- 2× References added · Oct 13, 2026 – Oct 13, 2026
- 1× Official description updated · Oct 13, 2026 – Oct 13, 2026
References
14 on the record
- github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m
- github.com/0xBlackash/CVE-2026-60004
- www.cisa.gov/known-exploited-vulnerabilities-catalog
- nvd.nist.gov/vuln/detail/CVE-2026-60004
- blog.gitea.com/release-of-1.27.1
- www.runzero.com/blog/gitea
- github.com/go-gitea/gitea/releases/tag/v1.27.1
- blog.gitea.com/release-of-1.27.1/
- www.runzero.com/blog/gitea/
- github.com/go-gitea/gitea/pull/38637
- github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82
- github.com/advisories/GHSA-rcr6-4jqh-j84m
- github.com/go-gitea/gitea/pull/38638
- github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe
Elsewhere on this site
Related CVEs (same products)
- Unknown CVE-2026-78433 Gitea private attachment disclosure through repository mismatch 1d
- Unknown CVE-2026-78231 Gitea blind SSRF through OpenID assertion verification 1d
- Unknown CVE-2026-73800 Gitea reusable workflow secret exposure in pull_request_target 1d
- Unknown CVE-2026-73804 Gitea API token scope escalation through HTTP signatures 1d
- Unknown CVE-2026-73814 Gitea repository ownership escalation by administrators 1d
- Medium CVE-2026-73273 Gitea Maven checksum upload quota bypass and memory exhaustion 1d
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record
Text assembled only from the fields above — no additional claims.
What should defenders know first?
CVE-2026-60004 is "Gitea Code Injection Vulnerability", rated Critical. It affects Gitea (Gitea); versions are in the scope table. It is in CISA KEV: there is evidence of real-world exploitation. CVSS 9.8 describes technical severity. EPSS 23.99% estimates the probability of exploitation in 30 days; neither replaces your asset context. First verify whether exposed or business-critical assets run the affected versions, apply vendor fixes or mitigations, and preserve logs for review.
Comments
Moderated technical discussion. Read the community guidelines.
No comments yet.
Sign in or create an account to comment and suggest corrections.