{"id":"CVE-2026-60004","published":"2026-08-26T20:17:56Z","modified":"2026-08-27T11:41:19Z","title":"Gitea Code Injection Vulnerability","vendor":"Gitea","product":"Gitea","tier":"core","eol":null,"description":{"text":"Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.","provenance":"source","from":"NVD"},"summary":{"text":"Gitea versions before 1.27.1 contain a code injection flaw in the diffpatch API, which handles patch application within the Gitea product. An attacker who can reach the server over the network can exploit this without authentication or user interaction, using the diffpatch API to install Git hooks that lead to remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-29T07:53:50Z"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"NVD"},"epss":{"score":0.23988,"percentile":0.97838,"date":"2026-10-30","provenance":"source"},"kev":{"dateAdded":"2026-08-25","dueDate":"2026-08-28","ransomware":false,"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.","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","provenance":"source"},"vulncheckKev":{"dateAdded":"2026-08-19","exploitedFirstSeen":"2026-08-19","ransomware":false,"evidence":[{"url":"https://habr.com/ru/articles/1072030/","date":"2026-08-19"},{"url":"https://previdian.com/CVE-2026-60004","date":"2026-08-25"},{"url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","date":"2026-08-25"},{"url":"https://moje.cert.pl/komunikaty/2026/154/krytyczna-podatnosc-w-gitea/","date":"2026-08-26"},{"url":"https://cert.europa.eu/publications/threat-intelligence/cb26-09/","date":"2026-09-03"},{"url":"https://www.recordedfuture.com/blog/august-2026-cve-landscape","date":"2026-09-08"},{"url":"https://www.acronis.com/en/tru/posts/red-heron-exploits-gitea-n-day-flaw-in-multinational-campaign-exposing-new-linux-rootkit/","date":"2026-09-13"},{"url":"https://www.greynoise.io/blog/open-season-on-kapibala-attacker-steals-government-records-wordpress-exploitation","date":"2026-09-21"},{"url":"https://www.recordedfuture.com/blog/september-2026-cve-landscape","date":"2026-10-13"}],"evidenceTotal":9,"provenance":"source"},"exploited":true,"otx":{"pulseCount":46,"pulses":[{"name":"Actively_Exploited_Kev | Oct 31, 2026","url":"https://otx.alienvault.com/pulse/6ae4aefab0c2191cecd41862","created":"2026-10-30"},{"name":"Actively_Exploited_Kev | Oct 30, 2026","url":"https://otx.alienvault.com/pulse/6ae35d889ea92b4ce19c2680","created":"2026-10-29"},{"name":"Actively_Exploited_Kev | Oct 29, 2026","url":"https://otx.alienvault.com/pulse/6ae20c1db17e7057ae7d9ad1","created":"2026-10-28"},{"name":"Actively_Exploited_Kev | Oct 28, 2026","url":"https://otx.alienvault.com/pulse/6ae0ba7e0e2a97ff7b218819","created":"2026-10-27"},{"name":"Actively_Exploited_Kev | Oct 27, 2026","url":"https://otx.alienvault.com/pulse/6adf68b85c3e852f3c111d18","created":"2026-10-26"},{"name":"Actively_Exploited_Kev | Oct 24, 2026","url":"https://otx.alienvault.com/pulse/6adb740e397c3ad4799aa4cd","created":"2026-10-23"},{"name":"Actively_Exploited_Kev | Oct 23, 2026","url":"https://otx.alienvault.com/pulse/6ada236fcfba2dfa730ea482","created":"2026-10-22"},{"name":"Actively_Exploited_Kev | Oct 22, 2026","url":"https://otx.alienvault.com/pulse/6ad8d33a077cbb5cab524d80","created":"2026-10-21"},{"name":"Actively_Exploited_Kev | Oct 21, 2026","url":"https://otx.alienvault.com/pulse/6ad78130c4d1ac2be83a8b6d","created":"2026-10-20"},{"name":"Actively_Exploited_Kev | Oct 20, 2026","url":"https://otx.alienvault.com/pulse/6ad62f63c24a405a3423cc13","created":"2026-10-19"}],"provenance":"machine"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://blog.gitea.com/release-of-1.27.1/","tags":["Release Notes"]},{"url":"https://github.com/0xBlackash/CVE-2026-60004","tags":["Exploit","Mitigation","Third Party Advisory"]},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m","tags":["Exploit","Vendor Advisory"]},{"url":"https://www.runzero.com/blog/gitea/","tags":["Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004","tags":["US Government Resource"]}],"techniques":[{"id":"T1190","name":"Exploit Public-Facing Application","tactics":["initial-access"],"provenance":"ai","basis":"ai-mapping","bases":["ai-mapping"],"basisDetail":"claude-haiku-5-5: Remote API endpoint exploited over network","mappingType":"exploitation_technique","evidence":[{"from":"description","quote":"allows remote code execution via the diffpatch API","start":20,"end":70}],"model":"claude-haiku-5-5","confidence":"medium","confidenceNote":"AI-mapped from the description (quote-validated, not expert-reviewed)"},{"id":"T1059","name":"Command and Scripting Interpreter","tactics":["execution"],"provenance":"ai","basis":"ai-mapping","bases":["ai-mapping"],"basisDetail":"claude-haiku-5-5: Direct arbitrary code execution on server","mappingType":"primary_impact","evidence":[{"from":"description","quote":"allows remote code execution via the diffpatch API","start":20,"end":70}],"model":"claude-haiku-5-5","confidence":"medium","confidenceNote":"AI-mapped from the description (quote-validated, not expert-reviewed)"}],"reports":[],"affected":[{"ecosystem":"Go","package":"gitea.dev","vulnerableRanges":[">=1.17.0, <1.27.1","<1.27.1"],"patched":["1.27.1"],"from":["GHSA-rcr6-4jqh-j84m","GO-2026-6433"],"provenance":"source"},{"ecosystem":"Go","package":"code.gitea.io/gitea","vulnerableRanges":[">=1.17.0"],"patched":[],"from":["GO-2026-6433"],"provenance":"source"}],"advisories":[{"id":"GHSA-rcr6-4jqh-j84m","url":"https://github.com/advisories/GHSA-rcr6-4jqh-j84m","severity":"CRITICAL","ecosystem":"Go","package":"gitea.dev","vulnerableRanges":[">=1.17.0, <1.27.1"],"patched":["1.27.1"],"provenance":"source","from":"GHSA"},{"id":"GO-2026-6433","url":"https://osv.dev/vulnerability/GO-2026-6433","severity":null,"ecosystem":"Go","package":"code.gitea.io/gitea","vulnerableRanges":[">=1.17.0"],"patched":[],"provenance":"source","from":"OSV"}],"euvd":{"id":"EUVD-2026-66708","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-66708","exploited":true,"exploitedSince":"2026-08-25","provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":11,"skipped":0,"earliest":"2026-07-29","earliestUrl":"https://github.com/HORKimhab/CVE-2026-60004","repos":[{"name":"imbas007/CVE-2026-60004-POC","url":"https://github.com/imbas007/CVE-2026-60004-POC","stars":17,"created":"2026-08-03"},{"name":"0xredash/CVE-2026-60004","url":"https://github.com/0xredash/CVE-2026-60004","stars":6,"created":"2026-07-30"},{"name":"HORKimhab/CVE-2026-60004","url":"https://github.com/HORKimhab/CVE-2026-60004","stars":5,"created":"2026-07-29"},{"name":"HackSpeak/CVE-2026-60004","url":"https://github.com/HackSpeak/CVE-2026-60004","stars":2,"created":"2026-08-04"},{"name":"gagaltotal/CVE-2026-60004-poc-gitea","url":"https://github.com/gagaltotal/CVE-2026-60004-poc-gitea","stars":2,"created":"2026-08-08"}]},"nuclei":[{"id":"CVE-2026-60004","name":"Gitea <= 1.27.0 - Pre-Auth Remote Code Execution","severity":"critical","path":"http/cves/2026/CVE-2026-60004.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-60004.yaml"}],"first":{"date":"2026-07-29","source":"PoC-in-GitHub","url":"https://github.com/HORKimhab/CVE-2026-60004"},"provenance":"source"},"exploitRefs":["https://github.com/0xBlackash/CVE-2026-60004","https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m"],"flow":[{"stage":"exploitation","techniques":["T1190"],"provenance":"ai"},{"stage":"primary","techniques":["T1059"],"provenance":"ai"}],"timeline":[{"date":"2026-07-29","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/HORKimhab/CVE-2026-60004","provenance":"source"},{"date":"2026-08-19","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://habr.com/ru/articles/1072030/","provenance":"source"},{"date":"2026-08-25","kind":"kev","label":"Added to CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","provenance":"source"},{"date":"2026-08-25","kind":"euvd-exploited","label":"ENISA EUVD: exploited","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-66708","provenance":"source"},{"date":"2026-08-26","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-60004","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":79.4,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in CISA KEV and VulnCheck KEV"},{"name":"Recent KEV listing","points":10.0,"detail":"added 73 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.57,"detail":"percentile 0.9784"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 NVD references tagged Exploit; 11 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":3.0,"detail":"46 pulses"},{"name":"CVSS severity","points":6.86,"detail":"base score 9.8"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}