CVE-2026-60004: Gitea Code Injection Vulnerability
Actively exploited. At least one CVE in this advisory is listed in the CISA Known Exploited Vulnerabilities catalog — exploitation has been observed in the wild. Treat remediation as urgent.
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.
CSIRTS triage
- What
- A code injection vulnerability in the diffpatch API allows attackers with repository write access to inject malicious Git hooks and execute arbitrary shell commands as the Gitea service account.
- Who is affected
- Gitea instances prior to 1.27.1 with exposed diffpatch API endpoints.
- Urgency
- Critical; confirmed actively exploited with evidence of malicious cyber actor activity.
- Action
- Upgrade to Gitea 1.27.1 or later without delay.
AI-assisted analysis generated from the source advisory — verify against the original.
⚡ Watch Gitea
Get an email when a new Gitea advisory drops — max one per day, one-click unsubscribe.
Details
Original advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-60004
Exploitation outlook
EPSS (FIRST.org) estimates each CVE’s probability of exploitation in the next 30 days — here is the CSIRTS.com read on those numbers.
- Exploitation confirmedCVE-2026-60004Already exploited in the wild (CISA KEV) — the prediction phase is over. Patch now. Riskier than 99.7% of all EPSS-scored CVEs.
Referenced CVEs
| CVE | CSIRTS overview | External |
|---|---|---|
| CVE-2026-60004 | coverage & exploitation status | NVD · CVE.org |
Same CVEs, other sources
How other CERTs, PSIRTs and databases cover the vulnerabilities in this advisory.
- criticalexploitedGHSA-rcr6-4jqh-j84m: Gitea: Remote Code Execution via diffpatch Git Hook Installationghsa
- highexploited[NEW] [high] Gitea: Vulnerability allows code executioncert-bund
- criticalexploitedCVE-2026-60004: Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook instal…nvd
- unknownexploitedGitea security advisory (AV26-845)cccs
- highexploitedCISA Adds One Known Exploited Vulnerability to Catalogcisa
More from CISA Known Exploited Vulnerabilities
- criticalCVE-2026-42018: JFrog Artifactory Improper Authentication Vulnerability2026-09-11
- criticalCVE-2026-42016: JFrog Artifactory Incorrect Authorization Vulnerability2026-09-11
- criticalCVE-2026-85706: GitLab Community Edition and Enterprise Edition Path Traversal Vulnerability2026-09-11
- criticalCVE-2026-84869: ConnectWise ScreenConnect Improper Privilege Management and Missing Authorization Vulnerabilit…2026-09-11
- criticalCVE-2026-86060: MikroTik RouterOS Improper Neutralization of Argument Delimiters in a Command Vulnerability2026-09-10