Advisory record · GHSA-rcr6-4jqh-j84m

Gitea: Remote Code Execution via diffpatch Git Hook Installation

CVSS 9.8 CriticalCriticalIn CISA KEVEPSS 0.24 · 97th percentile

Critical, because:

  • In CISA’s KEV catalogue since 25 Aug 2026: it is known to be exploited.
  • CVSS score 9.8: 9.0 or more.
  • CVSS score 9.8 (7.0 or more) and EPSS 0.24 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical

Published by the GitHub Advisory Database at 8 Sept 2026, 17:56 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
gitea.devGo>=1.17.0, <1.27.11.27.1
Identifiers
GHSA-rcr6-4jqh-j84m · BIT-gitea-2026-60004 · CVE-2026-60004 · GO-2026-6433
Weakness (CWE)
CWE-94
Published
8 Sept 2026
Updated
10 Sept 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Gitea versions from 1.17.0 before 1.27.1 are vulnerable to remote code execution through the diffpatch endpoint. An attacker with write access to a repository can run arbitrary shell commands as the Gitea OS user, and if open registration is enabled, an unauthenticated visitor can register an account, create a repository, and do this. Upgrade to Gitea 1.27.1 or later. The source gives few details on workarounds.

Written 1 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
9.8 Critical 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CNA (mitre)
  • CISA KEV Listed since 25 Aug 2026: known to be exploited.
  • EPSS 0.24, the 97th percentile, on 12 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:13 UTC First seen by agentprime
  2. 31 Oct 2026, 14:13 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.