# CVE-2026-60004: Gitea: Remote Code Execution via diffpatch Git Hook Installation

- Severity: Critical 9.8 (CVSS:3.1, scored by mitre) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: yes. In CISA's catalogue since 2026-08-25. 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.
- Likelihood of exploitation in the next 30 days (EPSS): 99.0%, higher than 99% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2026-08-26T19:45:00.000Z
- Modified: 2026-09-10T15:25:46.385Z
- Also known as: GHSA-rcr6-4jqh-j84m, BIT-GITEA-2026-60004, GO-2026-6433
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total
- Assigned by: mitre

## Description

Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.

(As written by CVE List.)

## Affected

- Gitea Gitea: from 1.17 before 1.27.1; from 1.17.0 before 1.27.1
- gitea.dev (Go): from 1.17.0 before 1.27.1; before 1.27.1
- code.gitea.io/gitea (Go): from 1.17.0
- gitea (Bitnami): from 1.17.0 before 1.27.1

## Every score

- mitre: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m> (exploit, advisory, kev, vendor-advisory, web)
- <https://github.com/0xBlackash/CVE-2026-60004> (exploit, advisory, mitigation, third-party-advisory, web)
- <https://blog.gitea.com/release-of-1.27.1/> (article, release-notes)
- <https://www.runzero.com/blog/gitea/> (advisory, third-party-advisory)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004> (government-resource, us-government-resource, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-60004> (advisory, kev, web)
- <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://blog.gitea.com/release-of-1.27.1> (web)
- <https://github.com/go-gitea/gitea> (package)
- <https://github.com/go-gitea/gitea/releases/tag/v1.27.1> (web)
- <https://www.runzero.com/blog/gitea> (web)
- <https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk> (kev)
- <https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk> (kev)

## Sources

- CVE List: [CVE-2026-60004](https://www.cve.org/CVERecord?id=CVE-2026-60004), CVE Terms of Use, modified 2026-09-08
- GitHub Advisory Database: [GHSA-rcr6-4jqh-j84m](https://github.com/advisories/GHSA-rcr6-4jqh-j84m), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-6433](https://pkg.go.dev/vuln/GO-2026-6433), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-60004](https://nvd.nist.gov/vuln/detail/CVE-2026-60004), Public domain, modified 2026-08-27
- Bitnami Vulnerability Database: [BIT-GITEA-2026-60004](https://osv.dev/vulnerability/BIT-GITEA-2026-60004), Apache-2.0, modified 2026-09-10
- CISA KEV: [CVE-2026-60004](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2026-60004), CC0-1.0, modified 2026-08-25

---

Page: https://cve.day/CVE-2026-60004 · Whole record: https://cve.day/CVE-2026-60004.json · Rebuilt by cve.day 2026-11-25T22:59:35.427Z
