CVEs / CVE-2026-60004
CVE-2026-60004: Gitea Code Injection Vulnerability
- Known exploited in the CISA KEV catalog since 25 Aug 2026
- critical 9.8 CVSS 3.1 (from the CNA)
- EPSS 23.9% chance of exploitation in the next 30 days, higher than 97% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2026-60004
Summary
Gitea contains a code injection vulnerability that allows an attacker with repository write access to send a malicious patch to the diffpatch API endpoint to plant an executable Git hook and run shell commands as the Gitea service account.
Description
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Gitea Gitea | from 1.17, before 1.27.1 | 1.27.1 |
| Product | Affected | Fixed in |
|---|---|---|
| gitea.dev (Go) | from 1.17.0, before 1.27.1 | 1.27.1 |
Package versions from GHSA-rcr6-4jqh-j84m.
Exploitation
| In CISA KEV since | 25 Aug 2026 |
|---|---|
| Due date for US federal agencies | 28 Aug 2026 |
| Used in ransomware campaigns | Unknown |
| 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. |
Severity
| CVSS 3.1 | 9.8 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by the CNA ([email protected]) |
|---|---|
| Weakness | CWE-94 |
References
- CVE-2026-60004 on NVD
- CVE-2026-60004 in the CISA KEV catalog
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m (cited by CISA)
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk (cited by CISA)
- https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk (cited by CISA)
- CVE-2026-60004 on OSV
- https://blog.gitea.com/release-of-1.27.1/ Release Notes
- https://github.com/0xBlackash/CVE-2026-60004 Exploit, Mitigation, Third Party Advisory
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m Exploit, Vendor Advisory
- https://www.runzero.com/blog/gitea/ Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.