CVE-2026-60004
Gitea Code Injection Vulnerability
CVSS
9.8
Critical
EPSS
—
KEV
YES
Aug 25, 2026
Exploit Today
50
0-100
Published: Aug 26, 2026 · Last modified: Aug 27, 2026 · CWE-94
Not enough EPSS history yet.
Product
Gitea / Gitea
Vulnerability
Gitea Code Injection Vulnerability
Added to KEV
Aug 25, 2026
Remediate by
Aug 28, 2026
Known ransomware use
No
Summary description
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.
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.
Notes
https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-60004
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
- blog.gitea.comhttps://blog.gitea.com/release-of-1.27.1/
- github.comhttps://github.com/0xBlackash/CVE-2026-60004
- github.comhttps://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m
- www.runzero.comhttps://www.runzero.com/blog/gitea/
- www.cisa.govhttps://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004