Vulnerability report

Exploited in the wild Confirmed confidence In CISA KEV

CVE-2026-60004

Gitea Before 1.27.1 allows remote code execution

Gitea · affected before 1.27.1

Severity
CVSS 9.8 · Critical
Confidence
Confirmed
Exploit status
Exploited in the wild
EPSS
24.0%
First observed
—
Last observed
—

Decision summary

What security teams need to know first

Direct answers before the deeper technical record.

What it is

CVE-2026-60004 is an unauthenticated vulnerability affecting Gitea. Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.

Is it exploited?

Yes. Previdian tracks this CVE as a known exploited vulnerability. Confidence is confirmed. Listed in CISA KEV. Also confirmed by third-party sources.

Who is affected?

Gitea affected before 1.27.1.

What should we do?

Prioritize remediation. Validate affected assets and apply vendor fixes on an accelerated timeline.

Overview

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

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

Gitea Affected
Gitea
Before 1.27.1
Published
26 Aug 2026
Exploitation Reported
25 Aug 2026
Attack vector
Remote
Complexity
Low
Privileges
None
User interaction
None

Tags

cisa nuclei_scanner

CVE References

Exploitation evidence

Why Previdian marks this CVE as exploited

Third-party attestation and first-party sensor observation are shown separately so teams can judge the evidence chain.

Exploited in the wild

CISA

Recorded 25 Aug 2026

A trusted third party reported exploitation.

Proof of concept available

Pruva

Recorded 29 Jul 2026

Public scanner or PoC coverage increases practical exploitability.

Known exploited vulnerability sources

Per-source evidence links for KEV attestations are available through the Previdian Pro API.

Learn about Pro API access
Source Added
CISA First 2026-08-25 10:47 UTC
The Hacker News 2026-08-26 06:27 UTC
CERT Polska 2026-08-26 11:59 UTC
CVE 2026-08-26 21:01 UTC

Detection

Operational artifacts and observed signals

Make the evidence actionable in scanner, SOC, and edge-control workflows.

Observed signals

Request targets
User-Agents
Callback hosts
0
0
0

Request targets and User-Agents available in Pro. Callback host details available in Enterprise.

Virtual patch status

No Previdian virtual patch is currently available. Future rules ship for ModSecurity, Cloudflare, and AWS WAF.

Learn about virtual patches →

Scanner Artifacts

Scanner and exploit-framework references linked to this CVE.

Risk and context

Severity, weaknesses, and research context

CVSS v3.1

9.8 Critical

Potential damage if exploited. Separate from whether attackers are using it.

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

EPSS

24.0%

Estimated chance of exploitation in the next 30 days. Previdian's warning comes from evidence, not this score.

Recent mention · The Hacker News

Zyxel and Veeam Flaws Under Active Exploitation With Command and SYSTEM Access

Ravie LakshmananSep 22, 2026Vulnerability / Endpoint Security The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Monday added a now-patched security flaw impacting Zyxel GS1900 series switches to its Known Exploited Vulnerabilities (KEV) catalog, citing...

Read full advisory

All Mentions

Recent mention · The Hacker News

Zyxel and Veeam Flaws Under Active Exploitation With Command and SYSTEM Access

The Hacker News · 22 Sep 2026

Ravie LakshmananSep 22, 2026Vulnerability / Endpoint Security The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Monday added a now-patched security flaw impacting Zyxel GS1900 series switches to its Known Exploited Vulnerabilities (KEV) catalog, citing evidence of active exploitation. The vulnerability, tracked as CVE-2026-7273 (CVSS score: 8.8), is a stack-based buffer overflow vulnerability that could result in arbitrary operating system (OS) command execution. "A stack-based buffer overflow vulnerability in the CGI program of the Zyxel GS1900 series switch firmware...

Recent mention · GreyNoise

Open Season on Kapibala: Attacker Steals Over 18,000 Government Records Through WordPress Exploitation

GreyNoise · 21 Sep 2026

GreyNoise has been tracking malicious use of an IP address since early June 2026 due to its frequent use in scans and attacks against a variety of technologies. We detail a few of the more notable intrusions we observed including the theft of more than 18,000 sensitive records from a western government.

Recent mention · The Hacker News

Red Heron Exploits Gitea RCE to Compromise 13 Organizations Across Six Countries

The Hacker News · 14 Sep 2026

A suspected Chinese threat actor tracked as Red Heron has been attributed to the rapid exploitation of a recently disclosed security vulnerability in Gitea to compromise internet-facing instances as part of a multi-national campaign. "Red Heron scanned 1,386 Gitea instances across seven countries and maintained a separate dataset of 477 Taiwan-based systems," Acronis Threat Research Unit (TRU)

Recent mention · Github Advisory Database (Go)

[gitea.dev] Gitea: Remote Code Execution via diffpatch Git Hook Installation

Github Advisory Database (Go) · 08 Sep 2026

Summary Gitea's diffpatch endpoint can be abused to install and execute a Git hook from repository-controlled content. An attacker with ordinary write access to a repository can execute arbitrary shell commands as the Gitea OS user. With default open registration, an unauthenticated visitor can obtain the required write access by registering an account and creating a repository. Details services/repository/files/patch.go applies attacker-controlled patches in a shared bare temporary clone: cmdApply := gitcmd.NewCommand("apply", "--index", "--recount", "--cached", "--binary") if...

Recent mention · RecordedFuture

August 2026 CVE Landscape

RecordedFuture · 08 Sep 2026

In August 2026, Insikt Group® identified 73 high-impact vulnerabilities that should be prioritized for remediation, 43 of which had a Very Critical Recorded Future Risk Score. This represents a 14% decrease from last month.

Recent mention · CERT Polska

Krytyczna podatność w Gitea

CERT Polska · 26 Aug 2026

Zespół CERT Polska informuje o krytycznej podatności w Gitea, oznaczonej jako CVE-2026-60004.Podatność pozwala atakującemu z dostępem do zapisu w repozytorium na zdalne wykonanie dowolnych poleceń systemowych z uprawnieniami użytkownika usługi Gitea. Wykorzystanie podatności wymaga posiadania konta, jednak domyślna konfiguracja Gitea umożliwia otwartą rejestrację nowych użytkowników bez konieczności akceptacji przez administratoraProblem dotyczy wersji od 1.17 do 1.27.0 włącznie.Podatność jest aktywnie wykorzystywana do przeprowadzania ataków. W związku z tym rekomendujemy analizę logów w...

Recent mention · The Hacker News

Critical Gitea RCE Actively Exploited as Reported Attack Drops Miner-Like Payload

The Hacker News · 26 Aug 2026

The U.S. Cybersecurity and Infrastructure Security Agency (CISA) on Tuesday warned of active exploitation efforts targeting a recently patched critical security flaw impacting Gitea. The vulnerability in question is CVE-2026-60004 (CVSS score: 9.8), a case of remote code execution that allows an attacker with ordinary write access to a repository to execute arbitrary shell commands as the

Potential Proof of Concepts

These PoCs are unverified and could contain malware. Use at your own risk.

CVE-2026-60004 Exploit: Gitea RCE via Hook

1dayexploit · Created 2026-09-22 14:30:00 UTC

CVE-2026-60004: Gitea pre-auth RCE via diffpatch API and Git hook installation. Versions 1.17.0-1.27.0 affected, fixed in 1.27.1.

erberkan/CVE-2026-60004-PoC

github · Created 2026-09-14 15:55:30 UTC · 0 stars · AI assessment 90%

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

InfoSec-DB/CVE-2026-60004-Gitea-RCE-PoC

github · Created 2026-08-30 20:44:59 UTC · 0 stars · AI assessment 90%

🫖 Direct single-target Gitea CVE-2026-60004 RCE validation PoC

InfoSec-DB/CVE-2026-60004-Gitea-Validator

github · Created 2026-08-30 20:34:21 UTC · 0 stars · AI assessment 90%

🫖 Contract-correlated discovery and authorized validation tool for Gitea CVE-2026-60004

gagaltotal/CVE-2026-60004-poc-gitea

github · Created 2026-08-08 13:08:31 UTC · 2 stars · AI assessment 90%

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

Sachinart/CVE-2026-60004-gitea-0day

github · Created 2026-08-04 22:51:05 UTC · 0 stars · AI assessment 90%

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

HackSpeak/CVE-2026-60004

github · Created 2026-08-04 12:16:59 UTC · 1 stars · AI assessment 90%

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

EQSTLab/CVE-2026-60004

github · Created 2026-07-30 08:19:19 UTC · 1 stars · AI assessment 90%

Gitea diffpatch RCE

Gitea diffpatch Git hook installation leads to remote code execution

pruva · Created 2026-07-29 10:56:28 UTC

Severity: CRITICAL | CVE: CVE-2026-60004 | Package: go-gitea/gitea

Gitea: Remote Code Execution via diffpatch Git Hook Installation

ghsa · Created Unknown · AI assessment 95%

Gitea: Remote Code Execution via diffpatch Git Hook Installation

Timeline

From disclosure to observed exploitation

  1. 04:31 UTC

    Nuclei template available

    Scanner coverage available

  2. 21:01 UTC

    KEV confirmed by CVE

    Exploitation attested by an external source

  3. 19:45 UTC

    CVE published

    Vulnerability disclosed publicly

  4. 11:59 UTC

    KEV confirmed by CERT Polska

    Exploitation attested by an external source

  5. 06:27 UTC

    KEV confirmed by The Hacker News

    Exploitation attested by an external source

  6. 10:47 UTC

    Added to CISA KEV

    Listed in the CISA Known Exploited Vulnerabilities catalog

  7. 10:56 UTC

    Public PoC available

    Public proof-of-concept code published

  8. 09:19 UTC

    CVE ID reserved

    Identifier reserved by the CNA

Pro API

Automate this intelligence

Confidence, exploit status, sensor telemetry, PoCs, scanner integrations, mentions, and tags are available programmatically for VM, SOC, and CTI workflows.

  • Evidence confidence and provenance
  • First-party sensor telemetry
  • PoC and scanner references
  • Affected versions and enrichment
  • Automation-ready JSON delivery

GET /api/v2/pro/kevs/CVE-2026-60004

Free JSON includes basic KEV fields
{
  "cve_id": "CVE-2026-60004",
  "confidence": "Confirmed",
  "cvss_score": 9.8,
  "cvss_estimated": false,
  "epss_score": 0.23988,
  "exploit_status": {
    "exploited_in_the_wild": true,
    "active_exploitation_observed": false
  },
  "sensor_telemetry": { "attempts": 0, "sensors": 0 }
}