Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2823+ Articles
167+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. News
  3. Red Heron Exploits Gitea RCE to Compromise 13 Organizations Across Six Countries
Red Heron Exploits Gitea RCE to Compromise 13 Organizations Across Six Countries
NEWS

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

China-linked actor Red Heron weaponized Gitea RCE CVE-2026-60004 within days, breaching 13 orgs across six countries with a custom implant.

Dylan H.

News Desk

September 14, 2026
6 min read

China-Linked Actor Turns a Gitea RCE Into a Global Espionage Campaign

A suspected Chinese threat actor tracked as Red Heron has been attributed to the rapid, automated exploitation of a critical remote code execution flaw in Gitea, the self-hosted Git service, compromising internet-facing instances as part of a multi-national campaign. According to research published by the Acronis Threat Research Unit (TRU), Red Heron scanned 1,386 Gitea instances across seven countries and confirmed breaches at 13 organizations across six countries — turning a public proof-of-concept into a working exploitation framework within days of the underlying vulnerability's disclosure.


Incident Summary

FieldDetails
Threat ActorRed Heron (suspected China-linked, moderate-confidence attribution)
VulnerabilityCVE-2026-60004 — Gitea diffpatch RCE (CWE-94), CVSS 9.8
Affected SoftwareGitea 1.17 through 1.27.0 (self-hosted); fixed in 1.27.1
Instances Scanned1,386 across seven countries, plus a separate dataset of 477 Taiwan-based systems
Confirmed Victims13 organizations across six countries
Countries CompromisedTaiwan (4), United States (4), Canada (2), Argentina (1), Qatar (1), Sri Lanka (1)
Sectors TargetedDefense, elections, energy, aerospace, telecommunications, government, public safety, research
Malware/Toolingexp_enhanced.py exploitation framework, JITTERLY implant, SIXZUT rootkit
Vulnerability DisclosedJuly 2026 (patched release: July 27, 2026)
Active Exploitation BeganJuly 29, 2026
Attributed ByAcronis Threat Research Unit (researcher Subhajeet Singha)

What Happened

The campaign centers on CVE-2026-60004, a critical remote code execution vulnerability (CVSS 9.8) in Gitea's diffpatch functionality, affecting self-hosted Gitea versions 1.17 through 1.27.0. Per Gitea's own advisory, the flaw lets an attacker with ordinary repository write access submit patch content that gets materialized as a Git hook and executed as the Gitea OS user — and because Gitea ships with open registration enabled by default, an unauthenticated visitor can obtain that write access simply by registering an account and creating a repository. The endpoint involved is /api/v1/repos/{owner}/{repo}/diffpatch.

Gitea shipped a fix in version 1.27.1, released July 27, 2026. Within days, Red Heron had converted a public proof-of-concept into exp_enhanced.py, an automated Python framework capable of registering accounts, exploiting vulnerable servers, stealing repository contents, and cleaning up selected traces of the intrusion. Acronis TRU says active exploitation by the group began July 29, 2026 — barely 48 hours after the patched release shipped.

The scanning effort was extensive: Red Heron probed 1,386 internet-facing Gitea instances across seven countries, and separately maintained a focused dataset of 477 Taiwan-based systems. Of the targets actually compromised, Acronis counted 13 organizations spread across Taiwan (4), the United States (4), Canada (2), Argentina (1), Qatar (1), and Sri Lanka (1).

Post-Exploitation Toolkit

Once inside, Red Heron deployed:

  • JITTERLY — a C++ Linux implant supporting more than 30 post-exploitation commands, including shell execution, file transfer, network tunneling, and internal pivoting.
  • SIXZUT — an LD_PRELOAD rootkit used to hide malicious files, processes, and network connections from the compromised host.

Notable Incidents

  • In one Taiwanese environment, the actor progressed from initial Gitea access to root-level administrative control of a three-node Proxmox cluster.
  • A Taiwanese industrial automation company had hundreds of repositories exfiltrated, including a SCADA/HMI tool, IoT platform integrations, a network sniffer, and server configuration data.
  • Targets also included an overseas education consulting firm based in India and a U.S.-based IT managed service provider.
  • In Argentina, the actor conducted extensive enumeration of a quantitative trading firm.
  • Acronis noted the group reused infrastructure to previously target 18 Joomla-based websites across 10 countries with a separate script (exp.py), before pivoting to the Gitea exploit.

Attribution

Acronis TRU assessed with moderate confidence that Red Heron operates within a China-linked context. The basis for that call includes the group's consistent use of Simplified Chinese in its tooling and labels, its classification of Taiwan as part of China within its own operational datasets, and a targeting footprint — defense, elections, energy, aerospace, telecommunications, government, public safety, and research — that aligns with known Chinese intelligence-collection priorities. Acronis stopped short of naming a specific state sponsor or linking Red Heron to a previously catalogued APT group.

Separately, CISA confirmed active exploitation of CVE-2026-60004 more broadly on August 25, 2026, and at least one other publicly reported attack against a vulnerable Gitea server resulted in a cryptocurrency-mining dropper rather than espionage tooling. Neither CISA nor those other reports have attributed that broader opportunistic activity to Red Heron, suggesting multiple, unrelated actors are exploiting the same flaw for different objectives.


Why This Matters

This campaign is a sharp reminder of how quickly a disclosed vulnerability in widely self-hosted developer infrastructure can be weaponized at scale. Gitea instances often sit behind an organization's perimeter specifically because they hold source code, CI/CD secrets, and credentials for connected infrastructure — exactly the kind of access that turned a single vulnerable Git server into a foothold for exfiltrating SCADA/HMI source code and seizing root on a Proxmox virtualization cluster. The two-day gap between the patch shipping and confirmed active exploitation also underscores that "patch available" and "patched" are not the same thing for internet-facing self-hosted services, which frequently lag behind managed/cloud equivalents in update cadence.


Mitigation for Gitea Administrators

  • Upgrade immediately to Gitea 1.27.1 or later on any self-hosted instance. Gitea Cloud environments were updated automatically, but self-managed installations require the administrator to apply the patch.
  • Disable open self-registration if it is not required, closing off the path that lets an anonymous visitor obtain the repository write access needed to trigger the flaw.
  • Audit recent repository and account activity for unfamiliar accounts, unexpected repositories, or suspicious patch/diff submissions, particularly around and after July 29, 2026.
  • Check for persistence mechanisms consistent with JITTERLY and SIXZUT, including unexpected LD_PRELOAD entries, unfamiliar Git hook scripts, and unusual outbound tunneling traffic from the Gitea host.
  • Review lateral-movement exposure from the Gitea host to adjacent infrastructure (virtualization hosts, CI/CD systems, credential stores) — the Taiwan Proxmox incident shows how far a single compromised Git server can reach.
  • Treat exposed secrets in affected repositories as compromised and rotate them, since source code and credential theft were core objectives of this campaign.

Sources

  • The Hacker News — Red Heron Exploits Gitea RCE to Compromise 13 Organizations Across Six Countries
  • The Hacker News — Critical Gitea RCE Actively Exploited as Reported Attack Drops Miner-Like Payload
  • SOC Prime — CVE-2026-60004: Critical Gitea RCE Exploited to Deploy Miner-Like Payloads
#Gitea#RCE#Red Heron#China#Espionage#Self-Hosted Software

Related Articles

Gitea Vulnerability Exposes Private Container Images without Authentication

A Gitea flaw lets unauthenticated remote attackers pull private container images from self-hosted deployments with no account or credentials required.

4 min read

Hackers Exploit Critical Auth Bypass in Official Gitea Docker Image

Attackers are actively exploiting a critical authentication bypass in the official Gitea Docker image, allowing unauthenticated users to impersonate any...

3 min read

Over 8,300 Gitea Servers Still Vulnerable to Active Code Execution Attacks

Shadowserver finds 8,300+ exposed Gitea instances unpatched against CVE-2026-60004, a critical RCE flaw already deploying cryptominers.

3 min read
Back to all News