Remote Code Execution in Gitea

Patch nowFull system takeover over the network, no login needed.
9.8CRITICAL

CVE-2026-60004

Key Information:

Vendor

Gitea

Status
Gitea
CVE ID
CVE ID:
CVE-2026-60004
Vendor
CVE Published:
26 August 2026
Fixed in
Fixed in:
1.27.1

Timeline

Exploit known the day it was published

  • 💰

    Used in Ransomware

  • 📈

    Vulnerability started trending

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • 🦅

    CISA Reported

  • 📰

    First article discovered by The Hacker News

  • Vulnerability Reserved

Badges

📈 Trended📈 Score: 3,890💰 Ransomware👾 Exploit Exists🟡 Public PoC🟣 EPSS 23%🦅 CISA Reported📰 News Worthy

How risky is it?

  • Yes: Works over the network, no login needed
  • Yes: Public exploit code (4 proof-of-concepts)
  • Yes: Attacked in the wild (on CISA's KEV list)
  • Yes: Used by ransomware

Our verdict

Patch now

Attackers are using it. Patch or mitigate today.

What to do

1Update to a fixed version
Gitea 1.17 to below 1.27.1 is vulnerable
Install Gitea 1.27.1 or later
2Follow CISA's 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.

3Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Gitea. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

4Look for signs of compromise

It is being exploited in the wild, so check logs on exposed Gitea systems for unusual requests or new processes from before you patched. The 4 public proof-of-concepts show what an attack looks like.

5Why it's rated "Patch now"
  • CISA lists it as a Known Exploited Vulnerability, so it is being attacked in the wild.
  • Ransomware groups use it.
  • Exploit code is public, so attacks are easy to copy.
  • It can be exploited remotely without credentials.
  • EPSS gives it a 23.9% chance of exploitation in the next 30 days.
  • Its CVSS severity is critical (9.8).

What is CVE-2026-60004?

CVE-2026-60004 is a remote code execution vulnerability in Gitea, a self-hosted Git service. The flaw exists in the diffpatch API, which allows authenticated attackers to execute arbitrary shell commands by submitting malicious patches. An attacker can exploit this vulnerability by registering an account and creating a repository, which grants them the necessary write access to trigger the flaw.

Gitea version 1.27.1 was released on July 27, 2026, to address this vulnerability. The flaw has been actively exploited in the wild, with reports of a threat actor using it to compromise numerous organizations across multiple countries.

Potential Impact of CVE-2026-60004

  1. Arbitrary Code Execution: An attacker can execute arbitrary commands with the privileges of the Gitea service account, potentially leading to full system compromise.

  2. Data Exfiltration: Successful exploitation can allow attackers to steal sensitive data, including source code and credentials from compromised repositories.

CISA has reported CVE-2026-60004

CISA provides regional cyber and physical services to support security and resilience across the United States. CISA monitor the most dangerous vulnerabilities and have identified CVE-2026-60004 as being exploited . Our sources show ransomware groups using it, even though CISA's catalog does not flag ransomware use yet.

The CISA's recommendation is: 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.

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

News Articles

favicon imageThe Hacker News

Red Heron Exploits Gitea RCE to Compromise 13 Organizations Across Six Countries

Red Heron exploited Gitea CVE-2026-60004 to steal repositories, collect credentials, persist, and move laterally across victim networks

favicon imageBleepingComputer

Over 8,300 Gitea servers vulnerable to code execution attacks

Over 8,300 Internet-exposed Gitea instances are still unpatched against a critical security flaw exploited in ongoing remote code execution attacks, according to cybersecurity watchdog Shadowserver.

CISA Confirms Gitea CVE-2026-60004 Exploited: Cryptominer Hits 5,000 Exposed Dev Servers

Gitea CVE-2026-60004, a CVSS 9.8 code-injection flaw, is now on CISA’s Known Exploited Vulnerabilities list after attackers deployed cryptocurrency-mining malware on unpatched dev servers. Federal

References

Workflow Vulnerability in Gitea Actions

CVE-2026-104626
GiteaGitea8.8HIGH

Workflow Approval Gate Bypass in Gitea

CVE-2026-58424
GiteaGitea Open Source Git ...👾8.9HIGH

Authentication Bypass in Gitea Docker Image

CVE-2026-20896
GiteaGitea Open Source Git ...😄👾9.8CRITICAL
View more Gitea vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

EPSS Score

23% chance of being exploited in the next 30 days.

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
.