Skip to content
OpenAdvisories
Critical · 9.8 Known exploited Scanner template Public exploit CVE-2026-60004 BIT-gitea-2026-60004EUVD-2026-66708GHSA-rcr6-4jqh-j84mGO-2026-6433

Gitea: Remote Code Execution via diffpatch Git Hook Installation

Published Aug 26, 2026 · Updated Sep 8, 2026 · Assigned by mitre

Description

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

Affected products

VendorProductAffectedFixed
Gitea Gitea 1.17 – < 1.27.1 1.27.1

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
SLES for SAP 16.0 govulncheck-vulndb 0.0.20260916T180043-160000.1.1 SUSE-SU-2026:23863-1, SUSE-SU-2026:23855-1
SLES 16.0 govulncheck-vulndb 0.0.20260916T180043-160000.1.1 SUSE-SU-2026:23863-1, SUSE-SU-2026:23855-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260916T180043-160000.1.1 openSUSE-SU-2026:21897-1
ReleasePackageFixed inAdvisory
Alpine v3.24 forgejo 15.0.6-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling gitea 1.27.1-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 12 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Go code.gitea.io/gitea >= 1.17.0 — GO-2026-6433
Go gitea.dev >= 1.17.0, < 1.27.1 1.27.1 GHSA-rcr6-4jqh-j84m
Go gitea.dev < 1.27.1 1.27.1 GO-2026-6433

Advisories 4

References