{"id":"CVE-2026-60004","state":"PUBLISHED","title":"Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.","description":"Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.","publishedAt":"2026-08-26T19:45:00.000Z","updatedAt":"2026-09-08T18:03:21.873Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"mitre"},"assigner":"mitre","products":["Gitea Gitea"],"affected":[{"vendor":"Gitea","product":"Gitea","defaultStatus":"unaffected","versions":[{"version":"1.17","status":"affected","lessThan":"1.27.1","versionType":"custom"}]}],"references":["https://blog.gitea.com/release-of-1.27.1/","https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m","https://www.runzero.com/blog/gitea/","https://github.com/0xBlackash/CVE-2026-60004","https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:12:32.778Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/60xxx/CVE-2026-60004.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-60004","state":"PUBLISHED","datePublished":"2026-08-26T19:45:00.000Z","dateUpdated":"2026-09-08T18:03:21.873Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2026-07-08T09:19:08.764Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation."}],"affected":[{"vendor":"Gitea","product":"Gitea","defaultStatus":"unaffected","versions":[{"version":"1.17","status":"affected","lessThan":"1.27.1","versionType":"custom"}]}],"references":[{"url":"https://blog.gitea.com/release-of-1.27.1/"},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m"},{"url":"https://www.runzero.com/blog/gitea/"},{"url":"https://github.com/0xBlackash/CVE-2026-60004"}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","description":"CWE-94 Improper Control of Generation of Code ('Code Injection')","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2026-08-26T22:56:00.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*","versionStartIncluding":"1.17","versionEndExcluding":"1.27.1"}]}]}],"x_generator":{"engine":"Record Generation 0.0.1"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004","tags":["government-resource"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-26T20:21:46.783249Z","id":"CVE-2026-60004","options":[{"Exploitation":"active"},{"Automatable":"yes"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}},{"other":{"type":"kev","content":{"dateAdded":"2026-08-25","reference":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-08T18:03:21.873Z"}}]}}}