CVE-2026-60004 Gitea: Remote Code Execution via diffpatch Git Hook Installation
CriticalCVSS 9.8
EPSS 24.0%
CISA KEV
added 2026-08-25 · due 2026-08-28
Exploited in the wild
PoC
- Published
- Updated
- Exploit status
- Exploited in the wild (confirmed)
Description
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
CISA Known Exploited Vulnerability
- Date added
- 2026-08-25
- Due date (FCEB)
- 2026-08-28
- Ransomware use
- Unknown
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gitea.dev(Go) | >= 1.17.0, < 1.27.1 | 1.27.1 |
| code.gitea.io/gitea(Go) | >= 1.17.0 | No fix listed |
| gitea.dev(Go) | < 1.27.1 | 1.27.1 |
| Gitea | >= 1.17, < 1.27.1 | 1.27.1 |
| alpine/forgejo(Alpine:v3.24) | < 15.0.6-r0 | 15.0.6-r0 |
| Gitea | >= 1.17.0, < 1.27.1 | 1.27.1 |
References
- github.com exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- blog.gitea.com release-notes
- github.com exploit mitigation third-party-advisory
- github.com product
- github.com
- www.cisa.gov government-resource us-government-resource
- www.runzero.com third-party-advisory
- github.com
- security.alpinelinux.org vendor-advisory