Remote code executionin Gitea.
On CISAThe US cyber defence agency. Its list names every hole it has seen used in real attacks.'s exploited list since 25 Aug 2026.
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
CISA: 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.
- Upgrade Gitea to 1.27.1 or later.
- Upgrade gitea.dev (Go) to 1.27.1 or later.
- CISA requires US federal agencies to fix it by 28 Aug 2026.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 8 Jul 2026CVE ID reserved by mitre.
- 29 Jul 2026First public proof of concept on GitHub.
- 25 Aug 2026Added to CISA's Known Exploited Vulnerabilities list.
- 26 Aug 2026Published in the CVE List.
- 8 Sep 2026CVE record last updated.
Attack code anyone can find
Exploit maturity: Exploited in the wild (CISA KEV). CISA assessment (SSVC): exploitation active.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other Gitea vulnerabilities
Same weakness: Code injection
- blog.gitea.com
- github.com
- www.runzero.com
- github.com
- www.cisa.gov government-resource
Patchminder. CVE-2026-60004: Remote code execution in Gitea. https://patchminder.com/cve/cve-2026-60004/ (accessed 5 December 2026).