Patchfirst
CVE-2026-60004 KEVPublic exploit Critical · 9.8 EPSS 24.0%

Gitea Code Injection Vulnerability

Gitea · Gitea

Summary

Gitea versions before 1.27.1 contain a code injection flaw in the diffpatch API, which handles patch application within the Gitea product. An attacker who can reach the server over the network can exploit this without authentication or user interaction, using the diffpatch API to install Git hooks that lead to remote code execution.

Official description · NVD

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

Breakdown
79.4 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 7 days before it was disclosed. Public exploit code (PoC-in-GitHub) was available 28 days before disclosure.

  1. Public exploit codePoC-in-GitHub28 days before
  2. First seen exploitedVulnCheck KEV evidence7 days before
  3. Added to CISA KEVEU database agrees1 day before
  4. Disclosedday 0

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

2 , grouped by in kill-chain order, 2 cited passages 2

Initial AccessTA0001

Exploit Public-Facing Application T1190 Medium
AI mapping from the description · how it is exploited

Remote API endpoint exploited over network

allows remote code execution via the diffpatch API
From the official description (NVD) Original (opens in a new tab) ↗

ExecutionTA0002

Command and Scripting Interpreter T1059 Medium
AI mapping from the description · primary impact

Direct arbitrary code execution on server

allows remote code execution via the diffpatch API
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 244 general rules for its techniques

Rules for this CVE

0 that reference CVE-2026-60004 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

2 packages in 1 ecosystem. Main package: code.gitea.io/gitea.

Gocode.gitea.io/giteaGO-2026-6433

No fixed version published. Check the advisory or remove the package.

Affected versions

If you runUpgrade to
1.17.0 and laterNo fix published
Other packages that bundle this code (1)

Forks, repackagings and products that include the affected code. Each has its own fixed version.

  • Gogitea.dev
    Affected: All versions before 1.27.1Upgrade to 1.27.1 or later

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 46 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

5 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close