CVE-2026-60004
KEVGitea Code Injection Vulnerability
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.
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HPublishedAug 26, 2026
Last modifiedAug 27, 2026
Added to KEVAug 25, 2026
Remediation dueAug 28, 2026
References
- blog.gitea.com/release-of-1.27.1/Release Notes
- github.com/0xBlackash/CVE-2026-60004ExploitMitigation
- github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84mExploitVendor Advisory
- runzero.com/blog/gitea/Third Party Advisory
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004US Government Resource
0 recent articles mention this CVE
81
Risk assessment · Critical
Actively exploited. Patch immediately.
- Exploitation
- Confirmed in the wild (CISA KEV)
- Federal remediation deadline
- Overdue by 59 days
- CVSS
- 9.8 CRITICAL
- EPSS (30-day exploit probability)
- 24.0% · top 2% of all CVEs
- Weakness
- CWE-94
- Attack vector
- Network, remotely reachable
- Preconditions
- No privileges and no user interaction
Recommended actions
- 1.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.
- 2.Treat as emergency change: patch or isolate internet-facing instances first.
- 3.Review exposure: confirm which instances are reachable from the internet and restrict access until patched.
- 4.Hunt for compromise: review logs for the disclosure window, not just from the patch date.
Assessment is derived automatically from the live signals above; verify against your own asset inventory.