Machine-written summary
Summary written by Claude Haiku from the source advisory. Not reviewed by a person.
Gitea versions from 1.17.0 before 1.27.1 are vulnerable to remote code execution through the diffpatch endpoint. An attacker with write access to a repository can run arbitrary shell commands as the Gitea OS user, and if open registration is enabled, an unauthenticated visitor can register an account, create a repository, and do this. Upgrade to Gitea 1.27.1 or later. The source gives few details on workarounds.
Not analysed yet
We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.
Severity and exploitation
| Score | Rating | CVSS | Vector | Source |
|---|---|---|---|---|
| 9.8 | Critical | 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CNA (mitre) |
- CISA KEV Listed since 25 Aug 2026: known to be exploited.
- EPSS 0.24, the 97th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.
Timeline
- 31 Oct 2026, 14:13 UTC First seen by agentprime
- 31 Oct 2026, 14:13 UTC Confirmed by OSV
Sources
- GitHub Advisory Database: GHSA-rcr6-4jqh-j84m
- OSV: GHSA-rcr6-4jqh-j84m
- github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m
- nvd.nist.gov/vuln/detail/CVE-2026-60004
- github.com/go-gitea/gitea/pull/38637
- github.com/go-gitea/gitea/pull/38638
- github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82
- github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe
- blog.gitea.com/release-of-1.27.1
- github.com/0xBlackash/CVE-2026-60004
- github.com/go-gitea/gitea
- github.com/go-gitea/gitea/releases/tag/v1.27.1
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004
- www.runzero.com/blog/gitea