CVE-2026-60004criticalunder attackCWE-94

CVE-2026-60004: critical vulnerability in Gitea

Published · Updated

98Vexday Risk Score

Patch now. It under exploitation confirmed by CISA and has a working public exploit.

ssvc Actcvss 9.8epss 24%
from disclosure to weapon0 days
Published on NVDAug 26
1st PoCJul 29
CISA KEVAug 25
exploitation probability
24%top 2% of all CVEs
observed exploitation
yesCISA + VulnCheck
24 public exploit(s)
Action required by CISAfederal deadline: 2026-08-28

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.

In short

Gitea versions before 1.27.1 have a critical flaw where attackers can run malicious code on the server through the diffpatch API by exploiting Git hook installation. This allows complete control over the server without needing valid user credentials.

Technical detail

CWE-94 (Improper Control of Generation of Code) in Gitea's diffpatch API fails to validate Git hook operations, permitting unauthenticated remote code execution. An attacker can craft malicious requests to install arbitrary Git hooks that execute during repository operations, achieving arbitrary command execution with server privileges.

Summary generated and translated by AI from the official description.
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
Gitea · Gitea
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.