Skip to main content

Hackers now exploit critical Gitea flaw in code injection attacks

0
Critical
Vulnerability
Published: 08/26/2026 (08/26/2026, 11:07:48 UTC)
Source: Bleeping Computer

Description

A critical code injection vulnerability (CVE-2026-60004) in the Gitea self-hosted Git service is actively exploited by attackers. The flaw allows an authenticated user with repository write access to execute arbitrary shell commands as the Gitea service account via the diffpatch API endpoint. Default configurations with self-registration enabled permit unauthenticated attackers to register accounts, create repositories, and exploit the vulnerability without prior credentials. Gitea released version 1.27.1 to address this issue. U.S. federal agencies have been ordered by CISA to patch within three days due to active exploitation involving cryptocurrency mining malware. The vulnerability poses significant risks to affected servers if unpatched.

Affected software

Affected versions
<1.27.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/09/2026, 18:22:28 UTC

Technical Analysis

CVE-2026-60004 is a critical code injection vulnerability in Gitea, a self-hosted Git service. It enables attackers with write access to repositories to execute arbitrary shell commands as the Gitea OS user by submitting malicious patches through the diffpatch API endpoint. Because default Gitea instances allow self-registration, unauthenticated attackers can gain write access by registering an account and creating a repository, thereby triggering the vulnerability without prior credentials. The flaw was reported by a Salesforce security researcher and publicly disclosed with a patch in Gitea version 1.27.1 released on July 27, 2026. The U.S. Cybersecurity and Infrastructure Security Agency (CISA) has added this vulnerability to its KEV catalog and mandated federal civilian agencies to patch within three days due to active exploitation reports, including deployment of cryptocurrency mining malware on vulnerable servers. Shadowserver tracks nearly 5,000 exposed Gitea instances online, though the number of vulnerable or secured instances is unknown.

Potential Impact

The vulnerability allows arbitrary shell command execution with the privileges of the Gitea service account, enabling attackers to potentially take control of affected servers. Because default configurations permit self-registration, unauthenticated attackers can exploit the flaw without prior credentials. Active exploitation has been observed, including the deployment of cryptocurrency mining malware on unpatched Gitea servers. This poses a significant risk to the confidentiality, integrity, and availability of affected systems, especially in environments where Gitea is internet-exposed.

Mitigation Recommendations

Gitea has released version 1.27.1 to fix CVE-2026-60004. Users should upgrade to this version or later as soon as possible. U.S. federal civilian agencies are mandated by CISA to patch within three days of the advisory. Organizations should verify if self-registration is enabled and consider disabling it to reduce risk. Since this is a self-hosted service, patching is the primary remediation. No vendor advisory states that no action is required or that the issue is already mitigated without patching.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Classification
{"confidence":0.95,"severitySource":"stated","classifier":"rss-v2"}
Article Source
{"url":"https://www.bleepingcomputer.com/news/security/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks/","fetched":true,"fetchedAt":"2026-08-26T11:22:14.099Z","wordCount":750}

Threat ID: 6a8ecc66acd9273b49ca15de

Added to database: 08/26/2026, 11:22:14 UTC

Last enriched: 09/09/2026, 18:22:28 UTC

Last updated: 10/04/2026, 01:27:54 UTC

Views: 73

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses