CVE-2026-60004
CRITICAL 9.8CVSS 3.1known exploitedGitea: Remote Code Execution via diffpatch Git Hook Installation
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
- Published
- 26 Aug 2026
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-94
- Also known as
- BIT-gitea-2026-60004GHSA-rcr6-4jqh-j84mGO-2026-6433
- Sources
- NVDJSONCISA KEVJSONOSV GHSA-rcr6-4jqh-j84mJSONOSV GO-2026-6433JSON
In CISA's Known Exploited Vulnerabilities catalog since 25 Aug 2026; US federal agencies must fix it by 28 Aug 2026.
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.
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | cve@mitre.org (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitea | giteacpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:* |
>= 1.17.0, < 1.27.1 | 1.27.1 |
| OSV | Go | gitea.dev | >= 1.17.0, < 1.27.1 | 1.27.1 |
| OSV | Go | code.gitea.io/gitea | >= 1.17.0 | |
| OSV | Go | gitea.dev | < 1.27.1 | 1.27.1 |
References
- https://blog.gitea.com/release-of-1.27.1/ · Release Notes, WEB
- https://github.com/0xBlackash/CVE-2026-60004 · Exploit, Mitigation, Third Party Advisory, WEB
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m · Exploit, Vendor Advisory, WEB, ADVISORY
- https://www.runzero.com/blog/gitea/ · Third Party Advisory, WEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004 · US Government Resource, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-60004 · ADVISORY
- https://github.com/go-gitea/gitea/pull/38637 · WEB
- https://github.com/go-gitea/gitea/pull/38638 · WEB
- https://github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82 · WEB
- https://github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe · WEB
- https://github.com/go-gitea/gitea · PACKAGE
- https://github.com/go-gitea/gitea/releases/tag/v1.27.1 · WEB
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 26 Aug 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 10 Sep 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 8 Sep 2026)
- 25 Nov 2026 20:10 UTC · CISA KEV: first stored (published 25 Aug 2026)
- 25 Aug 2026 00:00 UTC · Listed as known exploited