---
title: "CVE-2026-60004: Gitea Code Injection Vulnerability"
url: https://erroneo.us/security/cve/CVE-2026-60004/
description: "CVE-2026-60004 (Gitea Gitea): Exploited in the wild (CISA KEV). Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-08-26
date_modified: 2026-10-21
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-60004"
kev: true
cvss: 9.8
epss: 0.23988
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2026-60004: Gitea Code Injection Vulnerability

**Signal:** Exploited: patch now if you run it. CISA has confirmed exploitation in the wild. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Yes, if you run Gitea Gitea. CISA added this CVE to its Known Exploited Vulnerabilities catalog on 2026-08-25, which means there is reliable evidence of exploitation in the wild. US federal agencies must remediate by 2026-08-28 ; treat that as the outer limit, not the target.
- EPSS 24.0% , percentile 98: FIRST’s model estimates a 24.0% chance of exploitation activity in the next 30 days, higher than 98% of all scored CVEs (very high). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes gitea.dev (Go) >= 1.17.0, < 1.27.1, fixed in 1.27.1 . Check your lockfile, including transitive dependencies.
- Editorial verdict: Act now. Gitea CVE-2026-60004: Exploited RCE via diffpatch API — Upgrade every self-hosted Gitea below 1.27.1 today and close open registration; automated attacks sign up, create a repo and get a shell in seconds, and a proof of concept is public.

## What it is

Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.

## Affected packages

- Go `gitea.dev` >= 1.17.0, < 1.27.1 → fixed: 1.27.1

## Affected products (CVE record)

- Gitea Gitea: 1.17 < 1.27.1

## Severity

- mitre CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: added 2026-08-25; federal due date 2026-08-28. Known ransomware use: Unknown.
- CISA required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
- CISA SSVC assessment: exploitation active , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 23.99% probability of exploitation activity in the next 30 days; percentile 98.

## Sources

- [Listed in CISA KEV notes (github.com)](https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m)
- [GitHub Advisory GHSA-rcr6-4jqh-j84m](https://github.com/advisories/GHSA-rcr6-4jqh-j84m)
- [CVE.org record CVE-2026-60004](https://www.cve.org/CVERecord?id=CVE-2026-60004)
- [NVD entry CVE-2026-60004](https://nvd.nist.gov/vuln/detail/CVE-2026-60004)
- [CISA Known Exploited Vulnerabilities catalog entry](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004)
- [Listed in CISA KEV notes (cisa.gov)](https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk)
- [Listed in CISA KEV notes (cisa.gov)](https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk)
- [blog.gitea.com](https://blog.gitea.com/release-of-1.27.1/)
- [runzero.com](https://www.runzero.com/blog/gitea/)
- [github.com](https://github.com/0xBlackash/CVE-2026-60004)
- [github.com](https://github.com/go-gitea/gitea/pull/38637)
- [github.com](https://github.com/go-gitea/gitea/pull/38638)
- [github.com](https://github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82)
- [github.com](https://github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe)
- [github.com](https://github.com/go-gitea/gitea/releases/tag/v1.27.1)

---
Source page: https://erroneo.us/security/cve/CVE-2026-60004/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
