CVEvulnerability

CVE-2026-60004

9.8 CRITICAL Known exploited Published 2026-08-26 Modified 2026-08-27 Official page ↗

CISA Known Exploited Vulnerability

Gitea Code Injection Vulnerability — Gitea Gitea

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.

Added to KEV
2026-08-25
Remediation due
2026-08-28
Ransomware use
Unknown
Required action
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.
Notes
https://github.com/go-gitea/gitea/security/advisories/GHSA-rcr6-4jqh-j84m ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2026-60004
Status
Analyzed
Published
2026-08-26
Last modified
2026-08-27
Assigner
[email protected]
CVSS 3.1 ([email protected])
9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94

Description

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

Affected configurations

• gitea gitea (>= 1.17.0 < 1.27.1)

Related

Weakness · CWE (1)

  • CWE-94 Improper Control of Generation of Code weakness

References