Live › vulnerability › CVE-2026-60004
Go to dashboardGitea's diffpatch endpoint can be abused to install a Git hook (hooks/post-index-change) in the temporary bare clone. Submitting the same patch twice triggers an add/add collision, and git apply -3 checks the file out into GIT_DIR. Any user with repo write access can run shell commands as the Gitea OS user. With default open registration, an anonymous visitor can register, create a repo and exploit it. CVSS 9.8. Exploited in the wild (CISA KEV, crypto-mining payloads reported).
Summary written from the sources below. Check the originals before acting.
First seen by InfraStack 2026-10-23 19:11 UTC, 5h before NVD. All times on this page are UTC.
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.
| Product | Ecosystem | Affected | Fixed in |
|---|---|---|---|
| Gitea Gitea | vendor | – | – |
| gitea | go | >= 1.17.0, < 1.27.1 | 1.27.1 |
| gitea | vendor | >= 1.17.0, < 1.27.1 | 1.27.1 |
gitea --version, or Site Administration > Dashboard, or GET /api/v1/version1.17.0 and < 1.27.1 are vulnerable1.27.1 or laterEach row is the first time that source carried this signal. The analyst’s rows are its own findings.
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.
CISA required action: 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.
This page as .md · .json · in your agent: get_signal("CVE-2026-60004")
CISA KEV catalog, Creative Commons 0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.