Known Exploited Vulnerability
9.8
CRITICAL CVSS 3.1
CVE-2026-60004
Gitea Code Injection Vulnerability - [Actively Exploited]
Description

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

INFO

Published Date :

Aug. 26, 2026, 8:17 p.m.

Last Modified :

Aug. 27, 2026, 11:41 a.m.

Remotely Exploit :

Yes !
CISA Notification
CISA KEV (Known Exploited Vulnerabilities)

For the benefit of the cybersecurity community and network defenders—and to help every organization better manage vulnerabilities and keep pace with threat activity—CISA maintains the authoritative source of vulnerabilities that have been exploited in the wild.

Description :

Gitea contains a code injection vulnerability that allows an attacker with repository write access to send a malicious patch to the diffpatch API endpoint to plant an executable Git hook and run shell commands as the Gitea service account.

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.

Known Ransomware Campaign Use:

Unknown

Notes :

https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-60004

Affected Products

The following products are affected by CVE-2026-60004 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Gitea gitea
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 3.1 CRITICAL 8254265b-2729-46b6-b9e3-3dfca2d5bfca
CVSS 3.1 CRITICAL [email protected]
CVSS 3.1 CRITICAL MITRE-CVE
Solution
Update Gitea to version 1.27.1 or later to fix Git hook installation vulnerability.
  • Update Gitea to 1.27.1 or later.
  • Review Git hook installation processes.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-60004.

URL Resource
https://blog.gitea.com/release-of-1.27.1/ Release Notes
https://github.com/0xBlackash/CVE-2026-60004 Exploit Mitigation Third Party Advisory
https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m Exploit Vendor Advisory
https://www.runzero.com/blog/gitea/ Third Party Advisory
https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004 US Government Resource
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-60004 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-60004 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-60004 vulnerability anywhere in the article.

  • The Hacker News
Red Heron Exploits Gitea RCE to Compromise 13 Organizations Across Six Countries

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 p ... Read more

Published Date: Sep 14, 2026 (1 day, 15 hours ago)
  • europa.eu
Cyber Brief 26-09 - August 2026

Cyber Brief (August 2026)September 3, 2026 - Version 1TLP:CLEARExecutive summaryWe analysed 385 open source reports for this Cyber Brief1.Relating to cyber policy and law enforcement, two alleged memb ... Read more

Published Date: Sep 03, 2026 (1 week, 5 days ago)
  • security.nl
Ruim achtduizend Gitea-servers bevatten actief misbruikt beveiligingslek

Op internet zijn ruim achtduizend Gitea-servers te vinden, waaronder meer dan tweehonderd in Nederland, die een actief misbruikt beveiligingslek bevatten, zo laat The Shadowserver Foundation vandaag o ... Read more

Published Date: Aug 28, 2026 (2 weeks, 4 days ago)

The following table lists the changes that have been made to the CVE-2026-60004 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Aug. 27, 2026

    Action Type Old Value New Value
    Added CPE Configuration OR *cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:* versions from (including) 1.17.0 up to (excluding) 1.27.1
    Added Reference Type MITRE: https://blog.gitea.com/release-of-1.27.1/ Types: Release Notes
    Added Reference Type MITRE: https://github.com/0xBlackash/CVE-2026-60004 Types: Exploit, Mitigation, Third Party Advisory
    Added Reference Type MITRE: https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m Types: Exploit, Vendor Advisory
    Added Reference Type CISA-ADP: https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004 Types: US Government Resource
    Added Reference Type MITRE: https://www.runzero.com/blog/gitea/ Types: Third Party Advisory
  • CVE CISA KEV Update by 9119a7d8-5eab-497f-8521-727c672e3725

    Aug. 26, 2026

    Action Type Old Value New Value
    Added Date Added 2026-08-25
    Added Due Date 2026-08-25
    Added Required Action 2026-08-25
    Added Vulnerability Name 2026-08-25
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Aug. 26, 2026

    Action Type Old Value New Value
    Added Reference https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004
    Added SSVC {'id': 'CVE-2026-60004', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'active'}, {'automatable': 'yes'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-08-26T20:21:46.783249Z'}
  • New CVE Received by [email protected]

    Aug. 26, 2026

    Action Type Old Value New Value
    Added Description Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
    Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CWE CWE-94
    Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/60xxx/CVE-2026-60004.json">CVE-2026-60004</a>
    Added Reference https://blog.gitea.com/release-of-1.27.1/
    Added Reference https://github.com/0xBlackash/CVE-2026-60004
    Added Reference https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m
    Added Reference https://www.runzero.com/blog/gitea/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.