<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks-gmz4nkjzi" -->

---
title: Hackers now exploit critical Gitea flaw in code...
description: A critical code injection vulnerability in the self-hosted Git service Gitea, tracked as CVE-2026-60004, is now being actively exploited, according to CISA....
canonical: https://daily.dev/posts/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks-gmz4nkjzi
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Hackers now exploit critical Gitea flaw in code injection attacks | daily.dev
og:description: A critical code injection vulnerability in the self-hosted Git service Gitea, tracked as CVE-2026-60004, is now being actively exploited, according to CISA....
og:url: https://daily.dev/posts/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks-gmz4nkjzi
og:image: https://api.daily.dev/og/posts/gMz4NKJzi.png
og:image:alt: Hackers now exploit critical Gitea flaw in code injection attacks
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Hackers now exploit critical Gitea flaw in code injection attacks

**[BleepingComputer](https://daily.dev/sources/bleepingcomputer)** · 3 min read · 2 upvotes · 0 comments

## Summary

A critical code injection vulnerability in the self-hosted Git service Gitea, tracked as CVE-2026-60004, is now being actively exploited, according to CISA. The flaw in the diffpatch API endpoint lets an authenticated user with repo write access execute arbitrary shell commands as the Gitea service account, and because default installs allow open self-registration, unauthenticated attackers can create an account and repo to trigger it without prior credentials. Gitea shipped version 1.27.1 on July 27 to fix the issue. Attackers have been deploying cryptomining malware on unpatched servers. CISA added the CVE to its KEV catalog and gave federal agencies until August 28 to patch. A separate Gitea authentication bypass flaw, CVE-2026-20896, was also exploited in July against instances using reverse proxy auth headers like X-WEBAUTH-USER.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.bleepingcomputer.com/news/security/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks>

## Questions this post answers

### What is CVE-2026-60004 and how does it affect Gitea servers?

CVE-2026-60004 is a critical code injection vulnerability in Gitea's diffpatch API endpoint that lets an authenticated user with repository write access execute arbitrary shell commands with the privileges of the Gitea service account, by submitting malicious patches that install a Git hook. Because default Gitea configurations allow open self-registration, unauthenticated attackers can register an account, create a repository, and trigger the flaw without prior credentials.

_Teams running self-hosted Gitea can track exploited CVEs like this one on daily.dev before patching windows close._

### Which Gitea version fixes CVE-2026-60004 and when was it released?

Gitea version 1.27.1, released on July 27, fixes CVE-2026-60004. Administrators are advised to upgrade their servers as soon as possible, since attackers are actively exploiting the flaw in the wild to deploy cryptocurrency mining malware on unpatched instances, and CISA added it to its Known Exploited Vulnerabilities catalog.

_daily.dev helps developers stay on top of urgent patch releases like Gitea's fix for this flaw._

### How many Gitea instances are currently exposed to CVE-2026-60004 attacks?

Cybersecurity watchdog Shadowserver tracks nearly 5,000 Gitea instances exposed online, though it is unclear how many are honeypots or have already been patched against CVE-2026-60004. CISA ordered U.S. federal civilian agencies to secure their servers within three days of the alert, by August 28, under Binding Operational Directive 26-04.

_Anyone assessing exposure risk for self-hosted git infrastructure can follow exploited-vulnerability news on daily.dev._

## Similar posts on daily.dev

- [Over 8,300 Gitea servers vulnerable to code execution attacks](https://daily.dev/posts/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks-rbh2jcepp) · BleepingComputer · 1 upvotes · 0 comments
- [Hackers exploit critical auth bypass in Gitea Docker image](https://daily.dev/posts/hackers-exploit-critical-auth-bypass-in-gitea-docker-image-s26aoygcu) · BleepingComputer · 1 upvotes · 0 comments
- [Gitea Docker Vulnerability Now Under Active Probing, CVE-2026-20896](https://daily.dev/posts/gitea-docker-vulnerability-now-under-active-probing-cve-2026-20896-whnijn6ok) · Latest Hacking News · 0 upvotes · 0 comments

---

Tags: [#security](https://daily.dev/tags/security), [#git](https://daily.dev/tags/git)

[View this post on daily.dev](https://daily.dev/posts/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks-gmz4nkjzi)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Hackers now exploit critical Gitea flaw in code injection attacks","url":"https://daily.dev/posts/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks-gmz4nkjzi","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks-gmz4nkjzi"},"datePublished":"2026-08-26T11:10:55.513Z","dateModified":"2026-09-14T08:38:13.636Z","description":"A critical code injection vulnerability in the self-hosted Git service Gitea, tracked as CVE-2026-60004, is now being actively exploited, according to CISA....","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9e7e60feb969057c542a1aa4978a9d60?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9e7e60feb969057c542a1aa4978a9d60?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"BleepingComputer","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"BleepingComputer","logo":"https://media.daily.dev/image/upload/s--as8nJ3qy--/f_auto,q_auto/v1774959951/logos/bleepingcomputer?_a=BAMAMiWQ0","url":"https://daily.dev/sources/bleepingcomputer"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks-gmz4nkjzi","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,git","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"BleepingComputer","item":"https://daily.dev/sources/bleepingcomputer"},{"@type":"ListItem","position":3,"name":"Hackers now exploit critical Gitea flaw in code injection attacks"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks-gmz4nkjzi#faq","mainEntity":[{"@type":"Question","name":"What is CVE-2026-60004 and how does it affect Gitea servers?","acceptedAnswer":{"@type":"Answer","text":"CVE-2026-60004 is a critical code injection vulnerability in Gitea's diffpatch API endpoint that lets an authenticated user with repository write access execute arbitrary shell commands with the privileges of the Gitea service account, by submitting malicious patches that install a Git hook. Because default Gitea configurations allow open self-registration, unauthenticated attackers can register an account, create a repository, and trigger the flaw without prior credentials. Teams running self-hosted Gitea can track exploited CVEs like this one on daily.dev before patching windows close."}},{"@type":"Question","name":"Which Gitea version fixes CVE-2026-60004 and when was it released?","acceptedAnswer":{"@type":"Answer","text":"Gitea version 1.27.1, released on July 27, fixes CVE-2026-60004. Administrators are advised to upgrade their servers as soon as possible, since attackers are actively exploiting the flaw in the wild to deploy cryptocurrency mining malware on unpatched instances, and CISA added it to its Known Exploited Vulnerabilities catalog. daily.dev helps developers stay on top of urgent patch releases like Gitea's fix for this flaw."}},{"@type":"Question","name":"How many Gitea instances are currently exposed to CVE-2026-60004 attacks?","acceptedAnswer":{"@type":"Answer","text":"Cybersecurity watchdog Shadowserver tracks nearly 5,000 Gitea instances exposed online, though it is unclear how many are honeypots or have already been patched against CVE-2026-60004. CISA ordered U.S. federal civilian agencies to secure their servers within three days of the alert, by August 28, under Binding Operational Directive 26-04. Anyone assessing exposure risk for self-hosted git infrastructure can follow exploited-vulnerability news on daily.dev."}}]}
```

