Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HGitea
APPGitea1.17.0 – 1.27.1 (excl.)
CISA KEV — detailsi
- Vendori
- Gitea
- Producti
- Gitea
- Added to KEVi
- August 25, 2026
- Remediation deadline (US Federal)i
- August 28, 2026(overdue)
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.
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.
Related vulnerabilities
Gitea: nieprawidłowa walidacja własności projektów organizacji
Gitea: nieautoryzowany dostęp do załączników z prywatnych repozytoriów
Gitea: nieautoryzowane usuwanie blokad Git LFS między repozytoriami
Gitea: brak sanityzacji refs prowadzący do wstrzyknięcia argumentów git
Gitea: nieprawidłowe unieważnianie sesji umożliwia przejęcie uprawnień