Gitea diffpatch API code injection via Git hooks
CVE-2026-60004Known exploitedCritical
Gitea contains a code injection vulnerability in the diffpatch API endpoint that allows an attacker to plant an executable Git hook by sending a malicious patch. An attacker with repository write access can use this to run shell commands as the Gitea service account. The vulnerability affects Gitea before version 1.27.1.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
- Added to KEV
- 25 Aug
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Detail
Gitea. CISA required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk guidance and CISA’s “Forensics Triage Requirements”. 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.
Weakness: CWE-94 (opens in a new tab)
Affected versions
- gitea gitea: from 1.17.0, before 1.27.1
Reports naming this CVE1 in total
· All CISA Advisories
CISA Adds One Known Exploited Vulnerability to Catalog (opens in a new tab)