Skip to content
skopnix

CVE-2026-60004 · NVD published 26 Aug 2026

Gitea Gitea

On CISA's KEV list; 15 public exploits.

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

CISA required action (federal due date 28 Aug 2026): 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.

Signals

KEV, exploited in the wild
yes, added 25 Aug 2026, due 28 Aug 2026
EPSS, 30-day forecast
99%, 100th percentile (as of 4 Dec 2026)
CVSS, NVD, CRITICAL
9.8
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Internet exposure
not stated

KEV is an observation, EPSS a forecast; KEV outranks it.

Timeline 29 Jul 2026 to today

27 days from the first proof of concept to the KEV listing
First PoC 29 Jul 2026KEV 25 Aug 2026Disclosed 26 Aug 2026today
  1. First PoC
  2. KEV+27 d
  3. Disclosed+1 d

27 days from the first proof of concept to the KEV listing

Linked 2 in our graph

Exploited by

  1. toolCoinMiner
  2. malwareJITTERLY

Links our graph holds for this CVE, strongest first. The same data is in the graph API.

Indicators 7 tied by threat feeds

Addresses, hosts and files that threat feeds tag with this CVE: exploitation sources, payload hosts and what was dropped. Defanged. “In rule” marks the ones strong enough for the indicator sweep above.

  1. hxxps://casasmediterraneas[.]com//wp-content/plugins/linux[.]binPayload host

    url · 1 feed · last seen 27 Nov 2026

  2. 0f6e757e82c4d91df5bd249f775b9970b59dee42cc0dfe40f879d77fc16821c6Malware file

    sha256 · JITTERLY · 2 feeds · last seen 4 Nov 2026

  3. 0e81d80b40eaacbf6cb1e817fb1824c30a824af5cb4faca4aa9b03fd506d480fMalware file

    sha256 · 1 feed · last seen 23 Oct 2026

  4. 2ff2945b13a4cd0e9a65c85af29ea1539e162a516466c0de682dbf9f8a4000b1Malware file

    sha256 · 1 feed · last seen 23 Oct 2026

  5. 104[.]225[.]153[.]141Exploitation infra

    ip · 1 feed · last seen 22 Oct 2026

  6. 172[.]245[.]247[.]21Exploitation infra

    ip · 1 feed · last seen 22 Oct 2026

  7. hxxps://casasmediterraneas[.]com/wp-content/plugins/linux[.]binPayload host

    url · CoinMiner · 1 feed · last seen 21 Oct 2026

On the wire 2 dispatches

  1. Gitea CVE-2026-60004 is on CISA's exploited list: write access to any repo is enough to plant a Git hook via diffpatch and run commands. Fixed in 1.27.1. … · KEV
  2. GHSA-rcr6-4jqh-j84m: Gitea: Remote Code Execution via diffpatch Git Hook Installation · KEV

Public exploit code 15 known · links only

GitHub PoCs 15Metasploit 0Exploit-DB 0

GitHub PoCs, by trust then stars15

  1. imbas007/CVE-2026-60004-POCTrust ok 10018 stars

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

    created 3 Aug 2026

  2. 0xBlackash/CVE-2026-60004Trust ok 1006 stars

    CVE-2026-60004

    created 30 Jul 2026

  3. 0xredash/CVE-2026-60004Trust ok 1006 stars

    CVE-2026-60004

    created 30 Jul 2026

  4. ashrafzaryouh/CVE-2026-60004Trust ok 1006 stars

    CVE-2026-60004

    created 30 Jul 2026

  5. HORKimhab/CVE-2026-60004Trust ok 1005 stars

    CVE-2026-60004

    created 29 Jul 2026

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

    created 8 Aug 2026

  7. EQSTLab/CVE-2026-60004Trust ok 1001 stars

    Gitea diffpatch RCE

    created 30 Jul 2026

  8. yym8538/CVE-2026-60004Trust ok 1001 stars

    created 21 Aug 2026

Show 7 more
  1. erberkan/CVE-2026-60004-PoCTrust ok 1000 stars

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

    created 14 Sep 2026

  2. fevar54/cve-2026-60004Trust ok 1000 stars

    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`.

    created 25 Aug 2026

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

    created 4 Aug 2026

  4. shinthink/CVE-2026-60004Trust ok 1000 stars

    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

    created 3 Aug 2026

  5. HackSpeak/CVE-2026-60004
    Caution 75 · 1 flag
    • new owner account (new_owner_account)
    2 stars

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

    created 4 Aug 2026

  6. basesixtythree/B63-POC-CVE-2026-60004
    Caution 65 · 1 flag
    • readme lure (readme_lure)
    0 stars

    CVE-2026-60004 (Gitea): unauth RCE via diffpatch add/add collision -> live git hook in bare temp clone (KEV) — b63 showcase, lab-verified with patched + unaffected negatives

    created 1 Nov 2026

  7. CVE-2026-60004

    created 30 Jul 2026

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.

Nuclei detection templates1

  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 · first seen by skopnix 18 Oct 2026

A Nuclei template is a scanner check that detects the flaw. It is not an exploit and is not counted as one.

References

Watch this one?

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

Telegram ↗KEV RSSAPIStack check