<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks-rbh2jcepp" -->

---
title: Over 8,300 Gitea servers vulnerable to code execution...
description: Over 8,300 internet-exposed Gitea servers remain unpatched against CVE-2026-60004, a critical code injection flaw in the diffpatch API endpoint that lets...
canonical: https://daily.dev/posts/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks-rbh2jcepp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Over 8,300 Gitea servers vulnerable to code execution attacks | daily.dev
og:description: Over 8,300 internet-exposed Gitea servers remain unpatched against CVE-2026-60004, a critical code injection flaw in the diffpatch API endpoint that lets...
og:url: https://daily.dev/posts/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks-rbh2jcepp
og:image: https://api.daily.dev/og/posts/RbH2jcepp.png
og:image:alt: Over 8,300 Gitea servers vulnerable to code execution 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.

# Over 8,300 Gitea servers vulnerable to code execution attacks

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

## Summary

Over 8,300 internet-exposed Gitea servers remain unpatched against CVE-2026-60004, a critical code injection flaw in the diffpatch API endpoint that lets attackers with repository write access execute arbitrary shell commands as the Gitea service account. Because Gitea has self-registration enabled by default, even unauthenticated attackers can register, create a repo, and trigger the exploit. Gitea released version 1.27.1 on July 27 to fix the issue, and CISA has added it to its known exploited vulnerabilities catalog, ordering federal agencies to patch within three days. Attackers are reportedly deploying cryptomining malware on unpatched servers. A separate authentication bypass flaw (CVE-2026-20896) affecting Gitea's official Docker image was also exploited in July.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.bleepingcomputer.com/news/security/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks>

## Questions this post answers

### What is CVE-2026-60004 in Gitea and how does it lead to remote code execution?

CVE-2026-60004 is a code injection vulnerability in Gitea's diffpatch API endpoint that lets an attacker with repository write access install and execute a Git hook from repository-controlled content, running arbitrary shell commands as the Gitea OS user. Because Gitea has self-registration enabled by default, an unauthenticated attacker can register an account, create a repository, and gain the write access needed to trigger it.

_Teams running self-hosted git servers can track fast-moving vulnerability disclosures like this one on daily.dev._

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

Gitea 1.27.1, released July 27, addresses CVE-2026-60004. Users are advised to upgrade as soon as possible, since the flaw is being actively exploited in the wild, including attacks that deploy cryptocurrency mining malware on unpatched servers.

_Staying on top of which release actually closes a vulnerability matters when patching self-hosted infrastructure; daily.dev helps developers follow these Gitea updates._

### How many Gitea servers are still vulnerable to CVE-2026-60004 and why did CISA get involved?

Nearly 8,400 Internet-exposed Gitea instances, 8,393 IPs as of August 27 according to Shadowserver, remain unpatched against CVE-2026-60004. CISA added the flaw to its Known Exploited Vulnerabilities catalog and, under Binding Operational Directive 26-04, ordered federal civilian agencies to patch within three days, by August 28.

_Tracking which exploited flaws trigger CISA deadlines helps security teams prioritize patching; daily.dev surfaces this kind of Gitea vulnerability news._

## Similar posts on daily.dev

- [Hackers now exploit critical Gitea flaw in code injection attacks](https://daily.dev/posts/hackers-now-exploit-critical-gitea-flaw-in-code-injection-attacks-gmz4nkjzi) · BleepingComputer · 2 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
- [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

---

Tags: [#security](https://daily.dev/tags/security), [#self-hosting](https://daily.dev/tags/self-hosting)

[View this post on daily.dev](https://daily.dev/posts/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks-rbh2jcepp)

```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":"Over 8,300 Gitea servers vulnerable to code execution attacks","url":"https://daily.dev/posts/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks-rbh2jcepp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks-rbh2jcepp"},"datePublished":"2026-08-28T13:01:47.813Z","dateModified":"2026-09-14T09:22:38.974Z","description":"Over 8,300 internet-exposed Gitea servers remain unpatched against CVE-2026-60004, a critical code injection flaw in the diffpatch API endpoint that lets...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9fba45c120fc5940357359b9886d01b6?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/9fba45c120fc5940357359b9886d01b6?_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/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks-rbh2jcepp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,self-hosting","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":"Over 8,300 Gitea servers vulnerable to code execution attacks"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/over-8-300-gitea-servers-vulnerable-to-code-execution-attacks-rbh2jcepp#faq","mainEntity":[{"@type":"Question","name":"What is CVE-2026-60004 in Gitea and how does it lead to remote code execution?","acceptedAnswer":{"@type":"Answer","text":"CVE-2026-60004 is a code injection vulnerability in Gitea's diffpatch API endpoint that lets an attacker with repository write access install and execute a Git hook from repository-controlled content, running arbitrary shell commands as the Gitea OS user. Because Gitea has self-registration enabled by default, an unauthenticated attacker can register an account, create a repository, and gain the write access needed to trigger it. Teams running self-hosted git servers can track fast-moving vulnerability disclosures like this one on daily.dev."}},{"@type":"Question","name":"Which Gitea version fixes CVE-2026-60004 and when was it released?","acceptedAnswer":{"@type":"Answer","text":"Gitea 1.27.1, released July 27, addresses CVE-2026-60004. Users are advised to upgrade as soon as possible, since the flaw is being actively exploited in the wild, including attacks that deploy cryptocurrency mining malware on unpatched servers. Staying on top of which release actually closes a vulnerability matters when patching self-hosted infrastructure; daily.dev helps developers follow these Gitea updates."}},{"@type":"Question","name":"How many Gitea servers are still vulnerable to CVE-2026-60004 and why did CISA get involved?","acceptedAnswer":{"@type":"Answer","text":"Nearly 8,400 Internet-exposed Gitea instances, 8,393 IPs as of August 27 according to Shadowserver, remain unpatched against CVE-2026-60004. CISA added the flaw to its Known Exploited Vulnerabilities catalog and, under Binding Operational Directive 26-04, ordered federal civilian agencies to patch within three days, by August 28. Tracking which exploited flaws trigger CISA deadlines helps security teams prioritize patching; daily.dev surfaces this kind of Gitea vulnerability news."}}]}
```

