Skip to content

CVE-2026-60004

Gitea Code Injection Vulnerability

  • Actively exploited
  • Critical · 9.8 of 10
Exploited since
25 Aug 2026
added to the CISA list
Chance of attacks
24%
in the next 30 days (FIRST EPSS)
Fix deadline
28 Aug 2026
for US federal agencies
Published
26 Aug 2026
in the NVD

What this means

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

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

NIST National Vulnerability Database

What to do

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.

CISA's required action. If you use the product, install the vendor's update as soon as possible.

Affected

  • Gitea Gitea

Official sources

Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

By using this site, you agree to the Privacy Policy.