CVE-2026-60004
KEV: known exploited SSVC: activeCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack conditions and impact
Derived from the CNA (via NVD) CVSS 3.1 vectorThis vulnerability may be exploitable over the internet without authentication or user interaction.
| Metric | Value | Meaning |
|---|---|---|
| Attack vector AV | N | Network |
| Attack complexity AC | L | Low (easy) |
| Privileges required PR | N | None |
| User interaction UI | N | None |
| Scope S | U | Unchanged |
| Confidentiality C | H | High |
| Integrity I | H | High |
| Availability A | H | High |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
CISA KEV entry
Gitea Code Injection Vulnerability — Gitea / Gitea
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.
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.
https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-60004
CVSS assessments
| Provider | Version | Score | Vector |
|---|---|---|---|
| NVD / [email protected] (Secondary) | 3.1 | 9.8 CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA / mitre | 3.1 | 9.8 CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products and packages
CNA (CVE.org)
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | affected: 1.17 … < 1.27.1 default: unaffected |
NVD CPE (1)
Show CPE list
| Vendor | Product | Range | CPE |
|---|---|---|---|
| gitea | gitea | >= 1.17.0, < 1.27.1 | cpe:2.3:a:gitea:gitea:*:*:*:*:*:-:*:* |
Open-source packages (GitHub Advisory / OSV)
Gitea: Remote Code Execution via diffpatch Git Hook Installation
| Ecosystem | Package | Affected versions | Fixed in |
|---|---|---|---|
| Go | gitea.dev | >= 1.17.0, < 1.27.1 | 1.27.1 |
Gitea: Remote Code Execution via diffpatch Git Hook Installation in gitea.dev
| Ecosystem | Package | Affected versions | Fixed in |
|---|---|---|---|
| Go | code.gitea.io/gitea | >= 1.17.0 | |
| Go | gitea.dev | < 1.27.1 | 1.27.1 |
Linux distribution status
References (14)
- https://blog.gitea.com/release-of-1.27.1 GHSA, OSV
- https://blog.gitea.com/release-of-1.27.1/ NVD, CNA Release Notes
- https://github.com/0xBlackash/CVE-2026-60004 NVD, CNA, GHSA, OSV ExploitMitigationThird Party Advisory
- https://github.com/go-gitea/gitea GHSA
- https://github.com/go-gitea/gitea/commit/470d34b1de87d901bd9135564d5ee18c0d339e82 GHSA, OSV
- https://github.com/go-gitea/gitea/commit/d7bc52beeadff4be5f5690de4d5de42abd10affe GHSA, OSV
- https://github.com/go-gitea/gitea/pull/38637 GHSA, OSV
- https://github.com/go-gitea/gitea/pull/38638 GHSA, OSV
- https://github.com/go-gitea/gitea/releases/tag/v1.27.1 GHSA, OSV
- https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m NVD, CNA, GHSA, OSV ExploitVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-60004 GHSA, OSV
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-60004 NVD, ADP CISA-ADP, GHSA, OSV US Government Resourcegovernment-resource
- https://www.runzero.com/blog/gitea GHSA, OSV
- https://www.runzero.com/blog/gitea/ NVD, CNA Third Party Advisory