CVE-2026-60004: Gitea Code Injection
Gitea · listed in the CISA catalog of actively exploited vulnerabilities since 2026-08-25.
- CVSS v3.1 (CVE record)
- 9.8
- critical
- EPSS (exploit probability, 30 days)
- 24%
- higher than 97.8% of all CVEs
- Added to CISA KEV
- 2026-08-25
- US federal due date 2026-08-28
- Automatable (CISA SSVC)
- yes
- technical impact: total
CVE-2026-60004 explained
CVE-2026-60004 is a code injection flaw in Gitea that allows remote code execution through the diffpatch API by way of Git hook installation. It matters because it needs no privileges or user interaction, and CISA lists it as known to be exploited by attackers.
Impact
A remote attacker can run code on the Gitea server over the network. No privileges or user interaction are needed, and attack complexity is low. Confidentiality, integrity and availability are all highly affected. CISA rates it automatable, so attackers can exploit it at scale. CISA also rates the technical impact total, meaning full control of the affected Gitea instance. Known ransomware use is listed as unknown.
Who is affected
The CVE record lists Gitea versions ≥ 1.17, < 1.27.1 as affected. That covers Gitea from 1.17 up to but not including 1.27.1. The description says Gitea before 1.27.1 is affected. The fix is in Gitea 1.27.1. The record's affected and fixed versions come from its CNA (mitre).
Written with AI from the data on this page and checked against it automatically.
Official description
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
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.
CISA notes
Affected and fixed versions
From the CVE record published by the vendor or CVE numbering authority.
- GiteaAffectedFixed in
- ≥ 1.17, < 1.27.1
- 1.27.1
| Product | Affected | Fixed in |
|---|---|---|
| Gitea |
|
|
How to fix it
- Update to a fixed version: 1.27.1.
- Vendor advisory: blog.gitea.com/release-of-1.27.1
- CISA's deadline for US federal agencies: 2026-08-28 (passed) – a useful benchmark for everyone else, too.
What to do
- Upgrade all Gitea instances to
1.27.1or later. - Follow the vendor advisory and apply any mitigations it describes.
- Restrict network access to Gitea, especially from the internet, until it is patched.
- Check for signs of compromise, such as unexpected Git hooks or unusual processes on the server.
- U.S. federal agencies must follow CISA's required action under BOD 26-04 by the due date.
Written with AI from the data on this page and checked against it automatically.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- Yes – attackers can automate it at scale
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-94 Improper Control of Generation of Code ('Code Injection')
Questions about CVE-2026-60004
- Is CVE-2026-60004 being exploited?
- Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2026-08-25. That means attackers are known to use it. Whether it has been used in ransomware campaigns is listed as unknown.
- Which version fixes the vulnerability?
- Gitea
1.27.1contains the fix. Versions from1.17up to but not including1.27.1are affected. - What is the deadline for U.S. federal agencies?
- CISA set a due date of 2026-08-28. Agencies must apply the vendor's mitigations under BOD 26-04 and CISA's forensics triage requirements. If no mitigations are available, they must discontinue use of the product.
Written with AI from the data on this page and checked against it automatically.
References
Trackers and catalogs
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.