Home / Gitea / Gitea / CVE-2026-60004
CVE-2026-60004: is it exploited, and which versions of Gitea are affected and fixed?
CVE-2026-60004 is a code injection (remote code execution) vulnerability in Gitea, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on August 25, 2026, with a federal due date of August 28, 2026. Affected: gitea.dev from 1.17.0 before 1.27.1 (GitHub advisory GHSA-rcr6-4jqh-j84m). Fixed in 1.27.1 (GitHub advisory GHSA-rcr6-4jqh-j84m). Severity: Critical (9.8, CVSS 3.1, from mitre).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 19, 2026, 07:06 UTC and NVD November 19, 2026, 07:08 UTC.
What is CVE-2026-60004?
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
From the CVE record by mitre, last updated September 8, 2026, 18:03 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Gitea | Gitea | from 1.17 before 1.27.1 | 1.27.1 |
As the CVE record by mitre states it, last updated September 8, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | gitea.dev | >= 1.17.0, < 1.27.1 | 1.27.1 | GHSA-rcr6-4jqh-j84m |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 8, 2026. Summary: Gitea: Remote Code Execution via diffpatch Git Hook Installation.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| gitea | gitea | from 1.17.0 before 1.27.1 | application |
NVD analysis (status Analyzed), last modified August 27, 2026, 11:41 UTC.
How severe is CVE-2026-60004?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | mitre |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-60004 exploited in the wild?
- CISA KEV
- Listed as Gitea Code Injection Vulnerability, added August 25, 2026; federal agencies must act by August 28, 2026
- 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.
- Ransomware use
- Unknown
- CISA's summary
- 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.
- CISA SSVC
- Exploitation: active; automatable: yes; technical impact: total (CISA ADP, August 26, 2026)
- EPSS
- 99.0% probability of exploitation activity in the next 30 days, percentile 99.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- https://blog.gitea.com/release-of-1.27.1/
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m
- https://www.runzero.com/blog/gitea/
- https://github.com/0xBlackash/CVE-2026-60004
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004 government-resource
When was it published, and where is the official record?
- Reserved
- July 8, 2026
- Published
- August 26, 2026, 19:45 UTC
- CVE record updated
- September 8, 2026, 18:03 UTC by mitre
- NVD
- Analyzed, last modified August 27, 2026, 11:41 UTC
- Last checked
- CVE list November 19, 2026, 07:06 UTC; NVD November 19, 2026, 07:08 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect Gitea?
- Nov 15, 2026CVE-2026-129525 Gitea: missing authorization
- Nov 15, 2026CVE-2026-129341 Gitea: incorrect authorization
- Nov 15, 2026CVE-2026-129337 Gitea: missing authorization
- Nov 15, 2026CVE-2026-128365 Gitea: incorrect authorization
- Nov 15, 2026CVE-2026-128359 Gitea: session does not expire
- Nov 15, 2026CVE-2026-127958 Gitea: information disclosure
- Nov 15, 2026CVE-2026-126338 Gitea: authorization bypass through a user-controlled key (IDOR)
- Nov 15, 2026CVE-2026-125617 Gitea: information disclosure
Questions about CVE-2026-60004
Is CVE-2026-60004 exploited in the wild?
Yes. CISA added CVE-2026-60004 to its Known Exploited Vulnerabilities catalog on August 25, 2026 and set federal agencies a due date of August 28, 2026. FIRST's EPSS gives it a 99.0% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Gitea are affected by CVE-2026-60004?
gitea.dev from 1.17.0 before 1.27.1, per the GitHub advisory GHSA-rcr6-4jqh-j84m. The tables above give every range the sources list.
Which version fixes CVE-2026-60004?
1.27.1, per the GitHub advisory GHSA-rcr6-4jqh-j84m. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-60004?
Critical (9.8, CVSS 3.1, from mitre). The severity table above shows each score with its source.
Where is the official record of CVE-2026-60004?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.