CVE-2026-60004
CONFIRMED EXPLOITEDGitea Code Injection Vulnerability
Is Gitea Gitea affected by CVE-2026-60004?
Gitea Gitea is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2026-60004, added on 2026-08-25. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (1 vulnerable CPE entry): gitea gitea.
Published CPE version bounds mark releases below 1.27.1 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2026-08-28.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2026-90817Shared weaknessVanderbilt University Research Electronic Data Capture (REDCap)
Vanderbilt University Research Electronic Data Capture (REDCap) Code Injection Vulnerability
- CVE-2026-40217Shared weaknessBerriAI LiteLLM
BerriAI LiteLLM Unprotected Alternate Channel Vulnerability
- CVE-2026-115731Shared weaknessPerforce Puppet Enterprise
Perforce Puppet Enterprise Deserialization of Untrusted Data Vulnerability
- CVE-2026-0322Shared weaknessPalo Alto Networks PAN-OS
Palo Alto Networks PAN-OS Code Injection Vulnerability
- CVE-2026-21962Neighboring entryOracle HTTP Server and Oracle Weblogic Server Proxy Plug-in
Oracle HTTP Server and Oracle Weblogic Server Proxy Plug-in Improper Access Control Vulnerability
- CVE-2015-3246Neighboring entryRed Hat Libuser
Red Hat Libuser Race Condition Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
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.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2026-08-25. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Unknown".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of Gitea has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- Network service surface (Gitea Gitea): inspect perimeter and internal flow telemetry (`Zeek conn.log`, `Suricata eve.json`) and host service logs for anomalous connection bursts, protocol errors, or unexpected child processes.
- Inventory all hosts running Gitea Gitea and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
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.
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m
- https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk
- 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
- https://blog.gitea.com/release-of-1.27.1/Release Notes
- https://github.com/0xBlackash/CVE-2026-60004ExploitMitigationThird Party Advisory
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84mExploitVendor Advisory
- https://www.runzero.com/blog/gitea/Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004US Government Resource
SCORING & VECTOR TELEMETRY
NIST NVD score not yet provided. Score attributed to MITRE (cve@mitre.org, Secondary / CNA assessment distributed via NVD).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Endpoint visibility, digital forensics, and incident response (DFIR) platform
Network security monitoring (NSM) and protocol metadata extraction framework
Multi-threaded IDS, IPS, and network security monitoring engine
VirusTotal's memory-safe Rust rewrite of YARA for binary & implant hunting