Skip to content
StratQuad

Threats

Gitea diffpatch API code injection via Git hooks

CVE-2026-60004Known exploitedCritical

Gitea contains a code injection vulnerability in the diffpatch API endpoint that allows an attacker to plant an executable Git hook by sending a malicious patch. An attacker with repository write access can use this to run shell commands as the Gitea service account. The vulnerability affects Gitea before version 1.27.1.

Plain English summary of the NVD and CISA text, checked by machine against both.

Scores and dates

CVSS 3.1
9.8
CRITICAL
EPSS score
0.24
Probability of exploitation in 30 days
EPSS percentile
97th
Share of scored CVEs at or below this one
Added to KEV
25 Aug
CISA due date
28 Aug
Applies to US federal agencies

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Daily EPSS score, 3 Nov to 15 Nov, source FIRST

Detail

Gitea. CISA required action: Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk guidance and CISA’s “Forensics Triage Requirements”. 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.

Weakness: CWE-94 (opens in a new tab)

Affected versions

  • gitea gitea: from 1.17.0, before 1.27.1

Reports naming this CVE1 in total