CVE-2026-60004Gitea diffpatch API code injection via Git hooks
CVSS score
9.8
Critical
CVSS 3.1 from mitre.org
Exploit probability (EPSS)
24.0%
24.0% chance of exploitation in the next 30 days, higher than 97.9% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 25 Aug 2026.
US federal deadline to fix: 28 Aug 2026.
In plain words
An unauthenticated attacker over the network can run code on a Gitea server by abusing the diffpatch API to install Git hooks. Versions 1.17.0 up to 1.27.1 are affected, and CISA reports active exploitation. Upgrade to Gitea 1.27.1 or later, and follow CISA's BOD 26-04 guidance for internet-facing instances.
Official description
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Source: NVD · CNA: cve@mitre.org
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 25 Aug 2026.
US federal agencies must fix it by 28 Aug 2026. It's a sensible deadline for everyone else too.
CISA's full instruction
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.
Check whether you're affected
Find every system running Gitea and compare its version with the affected versions.
Update to a fixed version
- Update Gitea to 1.27.1 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| Gitea Gitea | ≥ 1.17.0, < 1.27.1 · ≥ 1.17, < 1.27.1 |
Weakness
- CWE-94 code injection
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2026-60004 being exploited?
Yes. CISA added CVE-2026-60004 to its Known Exploited Vulnerabilities catalog on 25 Aug 2026, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 24.0% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-60004?
CVE-2026-60004 has a CVSS 3.1 base score of 9.8 (critical).
Which versions are affected?
Gitea Gitea (≥ 1.17.0, < 1.27.1; ≥ 1.17, < 1.27.1)
Is there a patch for CVE-2026-60004?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/0xBlackash/CVE-2026-60004(Exploit, Mitigation, Third Party Advisory)
- github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m(Exploit, Vendor Advisory)
- blog.gitea.com/release-of-1.27.1/(Release Notes)
- www.runzero.com/blog/gitea/(Third Party Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004(US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.