Skip to content
skopnix
Dossier · Vulnerability

Actively exploited · CISA KEV · NVD published 2026-08-26

CVE-2026-60004

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

  1. First PoC
  2. 27 days →KEV

Signals

Exploited in the wild
Yesadded 2026-08-25 · due 2026-08-28. An observation, not a forecast.
EPSS · 30-day forecast
24%Chance of exploitation in the next 30 days, 98th percentile of all CVEs. A forecast; KEV outranks it.
CVSS · NVD · CRITICAL
9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Internet exposure
not stated by sourcesNo exposure census on this CVE's dispatches.

Exploits

12 known · links only

GitHub PoCs · by trust, then stars11

  1. CVE-2026-60004 Pre-Auth RCE Exploit — Gitea <= 1.27.0 diffpatch git hook injection (CVSS 9.8)

    ★ 17 · created 2026-08-03

  2. CVE-2026-60004

    ★ 6 · created 2026-07-30

  3. CVE-2026-60004

    ★ 5 · created 2026-07-29

  4. CVE-2026-60004 — Gitea Pre-Auth RCE via diffpatch hook injection

    ★ 2 · created 2026-08-08

  5. Gitea diffpatch RCE (CVE-2026-60004) PoC - repo-write to RCE as Gitea service account

    ★ 2 · created 2026-08-04

  6. Gitea diffpatch RCE

    ★ 1 · created 2026-07-30

  7. ★ 1 · created 2026-08-21

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

    ★ 0 · created 2026-09-14

  9. CVE-2026-60004 es una vulnerabilidad crítica (CVSS 9.8) en Gitea que permite ejecución remota de código sin autenticación mediante el endpoint `/api/v1/repos/{owner}/{repo}/diffpatch`.

    ★ 0 · created 2026-08-25

  10. CVE-2026-60004 — Gitea <= 1.27.0 Pre-Auth RCE

    ★ 0 · created 2026-08-04

  11. CVE-2026-60004 — Gitea/Forgejo Diffpatch Git Hook RCE. Bare clone → post-index-change hook injection. CVSS 9.8 | CWE-94 | Gitea < 1.27.1

    ★ 0 · created 2026-08-03

Fake proof-of-concept repositories have been used to deliver malware to the researchers who run them. The trust verdict is our engine's heuristic over the repository (account age, what it ships, how its stars arrived); it is a reason to read the code first, not a finding about its author.

Nuclei1

  1. Gitea versions 1.17 through 1.27.0 contain a remote code execution vulnerability in the diffpatch endpoint caused by an add/add collision that writes an executable Git hook into the bare repository's GIT_DIR. An attacker with write access can execute arbitrary commands as the Gitea service account, exploit requires only open registration for unauthenticated access.

    yaml · seen 2026-10-18

On the wire

1 dispatch
  1. GHSA-rcr6-4jqh-j84m: Gitea: Remote Code Execution via diffpatch Git Hook InstallationKEV

Watch this one?

KEV additions reach Telegram and the KEV-only RSS as they land.

Check your stack

Paste what you run: the CVEs exploited in the wild against it, and who is cited as exploiting them, with the report.

Stack checkNo key. No signup.