Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Priority CRITICAL 100Exploited in the wildCWE-94Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Why it matters now
Exploitation Active In CISA KEV since 2026-08-25CISA due date 2026-08-28
EPSS 0.23988 97th percentileScored 2026-11-07
Public exploit Yes 2 exploit referencesTagged by NVD
Fix Fixed Gitea (Gitea): 1.27.1gitea.dev (Go): 1.27.1
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Active
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Gitea | Gitea | 1.17 to before 1.27.1 | 1.27.1 | Patch available | CNA |
| — | gitea.dev (Go) | 1.17.0 to before 1.27.1 | 1.27.1 | Patch available | GHSA-rcr6-4jqh-j84m |
- Gitea VendorGitea Affected 1.17 to before 1.27.1 Fixed in 1.27.1 Patch available CNA
- gitea.dev (Go) Vendor— Affected 1.17.0 to before 1.27.1 Fixed in 1.27.1 Patch available GHSA-rcr6-4jqh-j84m
Remediation
- Fix · CNA Gitea (Gitea) Fixed in 1.27.1
- Fix · GHSA-rcr6-4jqh-j84m gitea.dev (Go) Fixed in 1.27.1 Advisory →
Timeline
- 2026-08-25 Added to CISA KEV
- 2026-10-02 Threatist record created from CVE-2026-60004
- 2026-10-03 Alias added: GHSA-rcr6-4jqh-j84m
References
Exploit 2
Other 10
- https://blog.gitea.com/release-of-1.27.1/
- https://github.com/go-gitea/gitea/pull/38637
- https://github.com/go-gitea/gitea/pull/38638
- https://github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82
- https://github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe
- https://blog.gitea.com/release-of-1.27.1
- https://github.com/go-gitea/gitea
- https://github.com/go-gitea/gitea/releases/tag/v1.27.1
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004
- https://www.runzero.com/blog/gitea
More Gitea vulnerabilities
- TI-2020-11072 The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote… CVSS 3.1HIGH 7.2
- TI-2022-12910 Gitea before 1.16.7 does not escape git fetch remote. CVSS 3.1HIGH 7.5
- TI-2019-08404 models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror… CVSS 3.1HIGH 8.8
- TI-2022-00955 Open Redirect on login in go-gitea/gitea CVSS 3.1MEDIUM 6.1
- TI-2026-68968 Push-to-create bypass of FORCE_PRIVATE policy in Gitea CVSS 3.1MEDIUM 5.4
- TI-2022-20948 Gitea before 1.17.3 does not sanitize and escape refs in the git backend. CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-60004 · CVE Program
- CVE-2026-60004 · NVD
- CISA Known Exploited Vulnerabilities
- FIRST EPSS
- GHSA-rcr6-4jqh-j84m · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences