CVE-2026-60004
Description
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
23.988%
chance of exploitation in the next 30 days
higher than 97.9% of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2026-08-25
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 1
Weakness
- CWE-94: Improper Control of Generation of Code
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Gitea Code Injection Vulnerability |
|---|---|
| Vendor / product | Gitea / Gitea |
| Date added | 2026-08-25 |
| Federal remediation due date | 2026-08-28 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2026-08-26 |
Timeline
- 2026-08-25Added to the CISA KEV catalog1 day before publication
- 2026-08-26Published by the CNA19:45 UTC
- 2026-08-26CISA SSVC decision recordedsame day
- 2026-09-08GitHub advisory published (GHSA-rcr6-4jqh-j84m)13 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2026-60004: Gitea <= 1.27.0 - Pre-Auth Remote Code Execution
GitHub advisory GHSA-rcr6-4jqh-j84m, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go gitea.dev | from 1.17.0 before 1.27.1 | 1.27.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| gitea gitea | from 1.17 before 1.27.1fixed in 1.27.1from 1.17.0 before 1.27.1fixed in 1.27.1 | 1.27.11.27.1 |
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m
- https://github.com/0xBlackash/CVE-2026-60004
- https://blog.gitea.com/release-of-1.27.1/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004
- https://www.runzero.com/blog/gitea/
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-60004'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-60004'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-60004'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-60004'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2026-60004'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).