Actively exploited vulnerability / CVE-2026-60004
Gitea: an attacker can take over the server where you keep your source code
This vulnerability lets an attacker who has write access to a code repository run their own commands on the Gitea server. That means they could read or change your company's source code, steal access credentials and use the server as a starting point for further attacks. It is on the lists of vulnerabilities used in real attacks kept by CISA (the US cybersecurity agency) and by ENISA (the EU cybersecurity agency).
- Identifier
- CVE-2026-60004 · EUVD-2026-66708
- Severity
- Critical (9.8/10)
- On the CISA list (US)
- yes, since 25 August 2026
- Deadline given to US federal agencies
- 28 August 2026
- On the ENISA list (EU)
- yes
- Probability of exploitation (EPSS)
- 24.0% (FIRST's estimate for the next 30 days)
Does it concern you?
Gitea is a platform companies install on their own servers to store and manage the source code of their applications. It is typically used by in-house development teams or companies that build software.
Versions from 1.17.0 up to but not including 1.27.1 are affected. The version is usually shown at the bottom of the Gitea web page or in the admin panel; if you are unsure, ask whoever runs the server.
Affected products and versions
- Gitea
- gitea: from 1.17.0 before 1.27.1
What to do
Update Gitea to version 1.27.1 or later. Until then, limit who has write access to repositories and follow the vendor's guidance.
Versions that contain the fix: 1.27.1.
The official description
The text below is the description from the public database.
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Sources
- Vendor advisory: github.com
- Vendor advisory: cisa.gov
- Vendor advisory: nvd.nist.gov
- CVE Program
- NVD
- GitHub Advisory Database
- ENISA EUVD
Data from the public CVE and NVD databases, the CISA KEV and ENISA EU KEV lists and FIRST's EPSS score. The explanations are ours, written from that data. Last updated: 29 November 2026.