CVE-2026-60004
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
- 9.8CriticalCVSS base score
- 24.0%Exploitation in 30 daysEPSS · top 2.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 25 Aug 2026
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
Description
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as Gitea Code Injection Vulnerability.
- Added
- 25 Aug 2026
- Fix due (US federal)
- 28 Aug 2026
- Used by ransomware
- Not known
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.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 25 Aug 2026.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits1
Nuclei templates1 template
- Gitea <= 1.27.0 - Pre-Auth Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2026/CVE-2026-60004.yamlSeverity critical
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 48 days later
· 48 days later
Added to CISA KEV
Known exploited in the wild
- 1 day later
· 1 day later
Published
- 13 days later
· 13 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| mitreCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 24.0% · top 2.1% of all CVEs (11 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogitea.devGHSA-rcr6-4jqh-j84m (opens in a new tab)
References
References5
- https://blog.gitea.com/release-of-1.27.1/ (opens in a new tab)
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m (opens in a new tab)
- https://www.runzero.com/blog/gitea/ (opens in a new tab)
- https://github.com/0xBlackash/CVE-2026-60004 (opens in a new tab)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-66708 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rcr6-4jqh-j84m (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-60004)Record last updated .