{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-60004","id":"CVE-2026-60004","title":"Gitea: Remote Code Execution via diffpatch Git Hook Installation","description":"Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.","descriptionLong":"Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.","published":"2026-08-26T19:45:00.000Z","updated":"2026-10-28T02:31:12.387588482Z","reserved":"2026-07-08T09:19:08.764Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"mitre"},"metrics":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"mitre"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"mitre.org"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["Gitea"],"affectedProducts":[{"vendor":"Gitea","product":"Gitea","defaultStatus":"unaffected","versions":[{"lessThan":"1.27.1","status":"affected","version":"1.17","versionType":"custom"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"gitea.dev","purl":"pkg:golang/gitea.dev","ranges":[">=1.17.0 <1.27.1","<1.27.1"],"fixed":["1.27.1"],"advisory":"GHSA-rcr6-4jqh-j84m"},{"ecosystem":"Go","name":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","ranges":[">=1.17.0"],"fixed":[],"advisory":"GO-2026-6433"}],"cwes":["CWE-94"],"aliases":["BIT-gitea-2026-60004","GHSA-rcr6-4jqh-j84m","GO-2026-6433"],"references":[{"url":"https://blog.gitea.com/release-of-1.27.1/","tags":["Release Notes","article"]},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m","tags":["Exploit","Vendor Advisory","advisory","web"]},{"url":"https://www.runzero.com/blog/gitea/","tags":["Third Party Advisory","article"]},{"url":"https://github.com/0xBlackash/CVE-2026-60004","tags":["Exploit","Mitigation","Third Party Advisory","package","web"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004","tags":["government-resource","US Government Resource","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/60xxx/CVE-2026-60004.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-60004","tags":["advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/38637","tags":["web"]},{"url":"https://github.com/go-gitea/gitea/pull/38638","tags":["web"]},{"url":"https://github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82","tags":["web"]},{"url":"https://github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe","tags":["web"]},{"url":"https://blog.gitea.com/release-of-1.27.1","tags":["web"]},{"url":"https://github.com/go-gitea/gitea","tags":["package"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.1","tags":["web"]},{"url":"https://www.runzero.com/blog/gitea","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":true,"kevAdded":"2026-08-25","kevDue":"2026-08-28","kevEntry":{"cveID":"CVE-2026-60004","vendorProject":"Gitea","product":"Gitea","vulnerabilityName":"Gitea Code Injection Vulnerability","dateAdded":"2026-08-25","shortDescription":"Gitea contains a code injection vulnerability that allows an attacker with repository write access to send a malicious patch to the diffpatch API endpoint to plant an executable Git hook and run shell commands as the Gitea service account.","requiredAction":"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.","dueDate":"2026-08-28","knownRansomwareCampaignUse":"Unknown","notes":"https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-60004","cwes":["CWE-94"]},"ssvc":{"exploitation":"active","automatable":"yes","technicalImpact":"total"},"epss":0.23988,"epssPercentile":0.9788,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-60004","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-60004","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-60004","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-rcr6-4jqh-j84m","ok":true,"note":"GHSA-rcr6-4jqh-j84m"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"added 2026-08-25"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-60004","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":["Exploited in the wild (CISA KEV)","EPSS 24% with CVSS 9.8"],"attention":null}