CVE Tools

Description

Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.

In plain language

AI Act now

CVE-2026-60004 is a serious Gitea flaw that lets an attacker run code on your server without logging in; if you run Gitea before 1.27.1, you should treat this as an urgent compromise risk.

Executive summary

CVE-2026-60004 is unauthenticated remote code execution in Gitea (diffpatch API) caused by allowing an attacker to install malicious Git hooks, leading to arbitrary command execution on the server; this is listed in CISA KEV with confirmed exploitation.

If affected, business impact
Full server takeoverCryptomining on your infrastructureCustomer data exposure riskService outage and downtime

What to do now

  1. Check your Gitea version and confirm it is earlier than 1.27.1.
  2. Upgrade Gitea to 1.27.1 or later immediately.
  3. If you cannot upgrade right away, apply the vendor-recommended mitigations/workarounds from the Gitea security advisory and immediately limit/disable public access to the diffpatch API as feasible.
  4. Review Gitea server logs for signs of hook installation or suspicious processes, and investigate any indicators of compromise.
Patch / advisory Usually a quick update

CVSS Vector Breakdown

AV:NAC:LPR:NUI:NS:UC:HI:HA:H
Exploitability
AV:NAttack Vector
Network
AC:LAttack Complexity
Low
PR:NPrivileges Required
None
UI:NUser Interaction
None
Scope
S:UScope
Unchanged
Impact
C:HConfidentiality
High
I:HIntegrity
High
A:HAvailability
High

Weaknesses

Affected Products

Gitea
oss-projectaka gitea open source git server
and 1 more affected products View all →

Exploitability

CISA Known Exploited Vulnerability
Added to KEV:Aug 25, 2026
Remediation due:Aug 28, 2026

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.

Official Patch Available
Workaround Available

Attack Graph

Products CVE Techniques Tactics

Click technique nodes for MITRE ATT&CK details · drag to pan · Ctrl/ + scroll to zoom, or go fullscreen.

MITRE ATT&CK

2 techniques
Execution
Initial Access
View detailed technique mapping

References

and 2 more references View all →
13
See all →

Unlock Complete Vulnerability Intelligence

Get the full picture for CVE-2026-60004 and every CVE in our database. Create a free account — no credit card required.

Create Free Account
Plain-language analysis
Impact assessment and exploitation scenario in plain English
Attack graph visualization
Interactive attack path and kill chain mapping
Exploit details & PoC links
ExploitDB, Metasploit, GitHub PoCs with direct links
Nuclei scanner templates
Ready-to-use vulnerability scanner templates
Full remediation guide
Patch instructions, workarounds, and compliance impact
Interactive AI chat
Ask questions about this vulnerability in natural language
Related vulnerabilities
Semantically similar CVEs and attack patterns
REST API & MCP access
Integrate vulnerability data into your workflows

We use analytics cookies to see which pages and articles actually help people. Decline and none of them run — the site works the same. What we store