Skip to content
NewA calmer, faster ZeroHour
VulnerabilityKEVPoC ×41 · 1 read

CVE-2026-60004

Unauthenticated RCE in Gitea via diffpatch API Git Hook Injection

CISA: Gitea Code Injection Vulnerability

CVSS 3.1
9.8 critical
EPSS
24%p98
Published
·
Added to KEV
Analyze CVE-2026-60004 with Vani AIImpact, affected versions, exploitation status, mitigations and detection

Gitea before 1.27.1 contains a critical code injection flaw (CWE-94) in the diffpatch API that allows remote code execution by causing the installation of a Git hook. An attacker can submit a crafted request through the diffpatch API to plant a Git hook, which then executes arbitrary shell commands on the server when Git operations run; the CVSS vector indicates the attack requires no authentication or user interaction, while public reporting describes attackers with repository write access planting hooks to run shell commands. Successful exploitation yields full server compromise (confidentiality, integrity, and availability all rated high), and observed attacks have reportedly dropped a cryptocurrency miner. All Gitea deployments running versions prior to 1.27.1 are affected, with internet-facing instances at greatest risk; public scans identified over 8,300 vulnerable Gitea servers. The flaw is actively exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2026-08-25, and EPSS estimates an 86.8% probability of exploitation within 30 days.

What to do: Upgrade Gitea to version 1.27.1 or later immediately; organizations subject to BOD 26-04 must apply the vendor mitigation or discontinue use of unpatched cloud-hosted instances. Until patched, limit internet exposure of Gitea servers and inspect repository hook directories for unauthorized or recently modified hooks that could serve as persistence. Check for signs of compromise, including unexpected processes or cryptocurrency-miner activity, since in-the-wold attacks reportedly deploy a miner.

ProductAffected
Giteaall versions before 1.27.1
Estimated exposure
moderate≈8,300+ internet-exposed Gitea servers (public scan count) — Public internet-wide scans identified more than 8,300 Gitea servers vulnerable to this flaw; the total number of self-hosted instances, including internal-only deployments, is unknown but likely higher.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description · NVD

Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.

KEVCISA Known Exploited Vulnerability
Affected
Gitea Gitea
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.
Due date
Ransomware use
Unknown
Vendors
gitea
Products
gitea
Ecosystems
go
Weakness
CWE-94
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA
GHSA-rcr6-4jqh-j84m (critical)

In the news

15 stories