CISA Warns of Active Exploitation of Critical Gitea Code-Injection Flaw

Summary
CISA says attackers are exploiting Gitea flaw CVE-2026-60004, which can enable shell command execution through the diffpatch API. Gitea released version 1.27.1; CISA ordered federal agencies to patch within three days.
Key points
- CISA says CVE-2026-60004 is being actively exploited; the article notes that CISA did not provide further details about the attacks.
- An attacker with repository write access can submit a malicious patch through Gitea’s diffpatch API to run shell commands as the Gitea service account.
- With default open registration, an unauthenticated attacker may be able to create an account and repository to obtain the required write access.
- Gitea released version 1.27.1 on July 27 to address the flaw and advised users to upgrade.
- CISA added the vulnerability to its KEV catalog and directed U.S. federal civilian agencies to secure affected servers within three days, by August 28.
- Shadowserver tracks nearly 5,000 internet-exposed Gitea instances; the article says it is unclear how many are honeypots or have been secured.
Article Details
- Vulnerability Types
- Code injection
- Severity
- Critical
- Exploitation Status
- active
- Exploit Availability
- unknown
- Patch Status
- available
MITRE ATT&CK
T1059 · Command and Scripting InterpreterThe flaw allows attackers to execute arbitrary shell commands as the Gitea service account.T1136 · Create AccountWith open registration enabled, attackers can create Gitea accounts and repositories to obtain the write access needed to exploit the flaw.T1190 · Exploit Public-Facing ApplicationAttackers exploit CVE-2026-60004 in vulnerable Gitea servers through the diffpatch API.
