LiveActive security incident?Get immediate response
CVE Record

CVE-2026-60004: 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.

CriticalCVSS 9.8Known exploitedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

This flaw can let a remote, unauthenticated attacker take control of a vulnerable Gitea server. Successful exploitation could expose source code, alter repositories, steal secrets, disrupt development, and provide a foothold into connected systems. Gitea 1.27.1 addresses the issue.

Executive priority

Emergency priority. Identify and upgrade exposed Gitea servers immediately because exploitation requires no authentication and CISA reports known exploitation. Treat suspicious vulnerable systems as potentially compromised rather than assuming patching alone removes an existing foothold.

Technical view

The diffpatch API could be abused to install a Git hook, producing arbitrary code execution on the Gitea host. The supplied CVSS 3.1 score is 9.8, reflecting network access, low complexity, no authentication, no user interaction, and high confidentiality, integrity, and availability impact.

Likely exposure

Internet-accessible Gitea instances running a vulnerable release face the greatest risk, although internal instances reachable from untrusted networks are also exposed. The bundle describes versions before 1.27.1 as affected, but its structured affected data lists only 1.17 and marks other versions unaffected; verify exact applicability with Gitea's advisory.

Exploitation context

CISA KEV inclusion supports active exploitation in the wild. A public research repository is also referenced, increasing practical risk. The supplied evidence does not establish exploitation prevalence, targeted organizations, or indicators of compromise.

Researcher notes

CWE-94 and the supplied description indicate code injection through Git hook installation initiated via the diffpatch API. Avoid assuming the bundle's version data is complete because its title and structured affected record conflict. Consult the vendor advisory for authoritative version ranges, remediation details, and any published detection guidance.

Mitigation direction

  • Upgrade Gitea to version 1.27.1 or later immediately.
  • Restrict network access to vulnerable instances until upgrading is complete.
  • Isolate any server showing suspicious activity and initiate incident response.
  • Rotate repository credentials and secrets if compromise is suspected.

Validation and detection

  • Inventory every Gitea instance and record its running version.
  • Confirm upgraded instances report Gitea 1.27.1 or later.
  • Review access logs for unusual activity involving the diffpatch API.
  • Inspect repositories and server state for unexpected Git hooks or processes.
  • Check connected credentials and secrets for evidence of misuse.
Prepared
Confidence
medium
Sources
5

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-94: Code execution behavior lookup

Code execution and unsafe deserialization weaknesses often justify reviewing execution behavior and process telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-60004 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Critical
CVSS
9.8 (3.1)
Known Exploited
Yes
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
4Timeline events
1ADP providers
6Source links

CISA KEV status

Status
Known exploited
Source
CISA-ADP
Date added
KEV reference

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: activeAutomatable: yesTechnical Impact: total

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
9.8CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H3.95.9mitre

Vulnerability scoring details

Base CVSS 3.1 score

9.8Critical
CVSS 3.1 vector shape for CVE-2026-60004Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. Added to KEVCISA-ADP

    CISA Known Exploited Vulnerabilities metadata lists this CVE as known exploited.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvcother:kev
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
GiteaGitea1.17unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-94 · source CWE mapping

Improper Control of Generation of Code ('Code Injection')

Improper Control of Generation of Code ('Code Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.