{"schemaVersion":3,"id":"CVE-2026-60004","aliases":["CGA-22cf-47g3-fpvg","CGA-f9cp-p2mf-hmjw","GHSA-rcr6-4jqh-j84m","BIT-gitea-2026-60004","GO-2026-6433","CGA-4jvh-446h-fg82","CGA-52cp-rqwc-qg78"],"status":"published","duplicateOf":null,"title":"Gitea Code Injection Vulnerability","description":"Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.","dates":{"published":"2026-08-26T19:45:00.000Z","modified":"2026-09-08T18:03:21.873Z","reserved":null,"kevAdded":["2026-08-25T00:00:00.000Z"],"kevDue":["2026-08-28T00:00:00.000Z"]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","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","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","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","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","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","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.23988,"percentile":0.97825,"severity":"high","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-62.78900000000001,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.86777},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.23988,"percentile":0.97825}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.86777,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.23988,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.23988,"percentile":0.97825}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2026-08-25T00:00:00.000Z","dueDate":"2026-08-28T00:00:00.000Z","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.","name":"Gitea Code Injection Vulnerability","description":"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.","notes":[{"type":"url","href":"https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m","label":"github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m"},{"type":"text","value":"BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk"},{"type":"text","value":"Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2026-60004","label":"nvd.nist.gov/vuln/detail/CVE-2026-60004"}],"vendor":"Gitea","product":"Gitea","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2026-08-25T00:00:00.000Z","dueDate":"2026-08-28T00:00:00.000Z","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.","name":"Gitea Code Injection Vulnerability","description":"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.","notes":[{"type":"url","href":"https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m","label":"github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m"},{"type":"text","value":"BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk"},{"type":"text","value":"Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2026-60004","label":"nvd.nist.gov/vuln/detail/CVE-2026-60004"}],"vendor":"Gitea","product":"Gitea","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_GO-GITEA_GITEA","name":"Gitea","source":"github","url":"https://github.com/go-gitea/gitea/issues/10549","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"GITHUB_0XBLACKASH_CVE-2026-60004","name":"Cve 2026 60004","source":"github","url":"https://github.com/0xBlackash/CVE-2026-60004","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":2,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"chainguard","product":"gitea","name":"gitea","label":"gitea","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gitea","purlType":"apk","versions":[{"text":"< 1.27.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.27.1-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"gitea-fips","name":"gitea-fips","label":"gitea-fips","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/gitea-fips","purlType":"apk","versions":[{"text":"< 1.27.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.27.1-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"gitea","name":"gitea","label":"gitea","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/gitea","purlType":"apk","versions":[{"text":"< 1.27.1-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.27.1-r0","eol":null,"hubHref":null},{"vendor":"gitea","product":"gitea","name":"Gitea","label":"gitea","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.17, < 1.27.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 1.17.0, < 1.27.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.17, < 1.27.1 | ≥ 1.17.0, < 1.27.1","eol":null,"hubHref":"/vendor/gitea/gitea"},{"vendor":"code.gitea.io","product":"gitea","name":"code.gitea.io/gitea","label":"gitea","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/code.gitea.io/gitea","purlType":"golang","versions":[{"text":"≥ 1.17.0","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 1.17.0 (No fix recorded)","eol":null,"hubHref":null},{"vendor":"Go","product":"gitea.dev","name":"gitea.dev","label":"gitea.dev","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/gitea.dev","purlType":"golang","versions":[{"text":"≥ 1.17.0, < 1.27.1","noFixRecorded":false,"fixedIn":null},{"text":"< 1.27.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.17.0, < 1.27.1 | < 1.27.1","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://blog.gitea.com/release-of-1.27.1/","label":"blog.gitea.com/release-of-1.27.1/","hostname":"blog.gitea.com","tags":["ARTICLE","Release Notes"]},{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m","label":"github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m","hostname":"github.com","tags":["Advisory","WEB","Exploit","Vendor Advisory"]},{"url":"https://www.runzero.com/blog/gitea/","label":"www.runzero.com/blog/gitea/","hostname":"www.runzero.com","tags":["ARTICLE","Third Party Advisory"]},{"url":"https://github.com/0xBlackash/CVE-2026-60004","label":"github.com/0xBlackash/CVE-2026-60004","hostname":"github.com","tags":["PACKAGE","WEB","Exploit","Mitigation","Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004","hostname":"www.cisa.gov","tags":["Government Resource","WEB","US Government Resource"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/60xxx/CVE-2026-60004.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/60xxx/CVE-2026-60004.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-60004","label":"nvd.nist.gov/vuln/detail/CVE-2026-60004","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/38637","label":"github.com/go-gitea/gitea/pull/38637","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/go-gitea/gitea/pull/38638","label":"github.com/go-gitea/gitea/pull/38638","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82","label":"github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe","label":"github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe","hostname":"github.com","tags":["WEB"]},{"url":"https://blog.gitea.com/release-of-1.27.1","label":"blog.gitea.com/release-of-1.27.1","hostname":"blog.gitea.com","tags":["WEB"]},{"url":"https://github.com/go-gitea/gitea","label":"github.com/go-gitea/gitea","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.1","label":"github.com/go-gitea/gitea/releases/tag/v1.27.1","hostname":"github.com","tags":["WEB"]},{"url":"https://www.runzero.com/blog/gitea","label":"www.runzero.com/blog/gitea","hostname":"www.runzero.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21897-1","SUSE-SU-2026:23855-1","SUSE-SU-2026:23863-1"],"duplicates":[],"related":["CGA-FX3J-3554-2PH4","OPENSUSE-SU-2026:21897-1","SUSE-SU-2026:23855-1","SUSE-SU-2026:23863-1"]},"timeline":[{"kind":"kev-added","date":"2026-08-25T00:00:00.000Z","label":"Added to CISA KEV","detail":"Gitea Code Injection Vulnerability","source":"cisa"},{"kind":"published","date":"2026-08-26T19:45:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-due","date":"2026-08-28T00:00:00.000Z","label":"CISA remediation due","detail":"Apply mitigations per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2026-09-08T18:03:21.873Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T01:02:41.143Z","stale":false,"partial":false}}