NetSight
critical9.8Known exploited

CVE-2026-60004

Gitea: Remote Code Execution via diffpatch Git Hook Installation

Exploited in the wild

This vulnerability is on the CISA Known Exploited Vulnerabilities list, added 2026-08-25. Federal due date: 2026-08-28.

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.

Impact

Gitea contains a code injection vulnerability that allows an attacker with repository write access to send a malicious patch to the diffpatch API endpoint to plant an executable Git hook and run shell commands as the Gitea service account.

Affected packages

EcosystemPackageAffectedFixed in
gogitea.dev>= 1.17.0, < 1.27.11.27.1

Affected products

VendorProductAffected versions
GiteaGitea
from 1.17.0 before 1.27.1

Weakness classification

References