Vulnerability · CVE-2026-60004
Gitea Code Injection Vulnerability
Published Aug 19, 2026 · catalog updated Aug 27, 2026 · Gitea Gitea
Patch now
CVE-2026-60004 is in the CISA known-exploited catalog, due Aug 28, 2026. Confirm Gitea Gitea against the vendor advisory and apply that fix. The CVSS score does not change the priority.
Gaps on this record
- No version range is stored. A customer cannot check an installed version against this record.
- Severity
- Critical9.8
- Known exploitation
- CISA KEV and VulnCheck KEV
- EPSS
- 23.99%
- Remediation
- Remediation guidance
- Affected products
- cpe gitea/gitea · vendor Gitea Gitea
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. Initial-access exploit intelligence.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- cpe gitea/giteaversion unspecified
- vendor Gitea Giteaversion unspecified
How to fix CVE-2026-60004
Recommended remediation
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 due date Aug 28, 2026.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2026-60004 is in the CISA known-exploited catalog, due Aug 28, 2026. Confirm Gitea Gitea against the vendor advisory and apply that fix. The CVSS score does not change the priority.
Which versions are affected?
Affected version ranges are not on this record. 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.
What should an analyst verify?
CWE-94: Code Injection. EPSS 23.99%. The CISA KEV listing is the exploitation evidence. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Aug 25, 2026 · Catalog
Detected
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.
Aug 25, 2026 · CISA KEV
Known exploited
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
Aug 27, 2026 · Catalog
Updated
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.
Aug 28, 2026 · CISA KEV
Remediation due
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
Sources
- CISA KEVConfirmed exploitationCVE-2026-60004
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.
cisa.gov - CVE.orgVulnerability recordCVE-2026-60004
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-60004
30-day exploitation probability 24.0%
first.org - NIST NVDVulnerability recordCVE-2026-60004
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
nvd.nist.gov - VulnCheck KEVConfirmed exploitationCVE-2026-60004
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.
vulncheck.com
References
- Release Notes · blog.gitea.com
- VulnCheck exploitation evidence · cert.europa.eu
- Exploit · github.com
- CISA note · github.com
- VulnCheck exploitation evidence · habr.com
- VulnCheck exploitation evidence · moje.cert.pl
- CISA note · nvd.nist.gov
- VulnCheck exploitation evidence · previdian.com
- US Government Resource · cisa.gov
- CISA note · cisa.gov
- CISA note · cisa.gov
- VulnCheck exploitation evidence · cisa.gov
- VulnCheck exploitation evidence · recordedfuture.com
- Third Party Advisory · runzero.com
Freshness
Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.