{"identifier":"CVE-2026-60004","cve":{"id":"CVE-2026-60004","description":"Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.","published":"2026-08-26T20:17:56.010000+00:00","modified":"2026-08-27T11:41:19.230000+00:00","status":"Analyzed","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_version":"3.1","affected":[{"criteria":"cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*","versionStartIncluding":"1.17.0","versionStartExcluding":"","versionEndIncluding":"","versionEndExcluding":"1.27.1"}],"weaknesses":["CWE-94"],"references":[{"url":"https://blog.gitea.com/release-of-1.27.1/","source":"cve@mitre.org","tags":["Release Notes"]},{"url":"https://github.com/0xBlackash/CVE-2026-60004","source":"cve@mitre.org","tags":["Exploit","Mitigation","Third Party Advisory"]},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m","source":"cve@mitre.org","tags":["Exploit","Vendor Advisory"]},{"url":"https://www.runzero.com/blog/gitea/","source":"cve@mitre.org","tags":["Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","tags":["US Government Resource"]}],"kev":{"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","forensicTriage":"Yes","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"]},"kev_checked":true,"metrics":{"cvssMetricV31":[{"source":"cve@mitre.org","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2026-08-26T20:21:46.783249Z","id":"CVE-2026-60004","options":[{"exploitation":"active"},{"automatable":"yes"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:*","versionStartIncluding":"1.17.0","versionEndExcluding":"1.27.1","matchCriteriaId":"2F773281-54C1-45F3-A53A-1638FC28E83E"}]}]}],"source":"nvd","retrieved_at":"2026-10-28T16:15:03.683449+00:00","exploited":true,"kev_stale":false,"products":["gitea / gitea"],"priority":{"label":"Known exploitation: prioritize review","reasons":["CISA KEV lists real-world exploitation."]},"epss":{"probability":0.23988,"percentile":0.97829,"date":"2026-10-27","stale":false},"version_assessment":null},"news":[],"campaigns":[],"domains":[{"domain":"blog.gitea.com","source_url":"https://blog.gitea.com/release-of-1.27.1/","investigate_url":"https://investigate.aeglixmind.com/#blog.gitea.com"},{"domain":"github.com","source_url":"https://github.com/0xBlackash/CVE-2026-60004","investigate_url":"https://investigate.aeglixmind.com/#github.com"},{"domain":"www.runzero.com","source_url":"https://www.runzero.com/blog/gitea/","investigate_url":"https://investigate.aeglixmind.com/#www.runzero.com"},{"domain":"www.cisa.gov","source_url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004","investigate_url":"https://investigate.aeglixmind.com/#www.cisa.gov"}],"arsenal_url":"https://arsenal.aeglixmind.com/?cve=CVE-2026-60004","catalog_url":"https://cves.aeglixmind.com/cve/CVE-2026-60004","research_url":"https://investigate.aeglixmind.com/research/cve/CVE-2026-60004","coverage":{"news_candidates_checked":0,"campaign_candidates_checked":0,"bounded":false,"notice":"Exact CVE mentions in stored public excerpts and reviewed campaign content only. A mention is not proof of exploitation, attribution or tool suitability. Missing matches do not establish absence."}}