CVE-2026-60004: Vulnerability in Gitea

Actively exploited. 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.

Exploited in the wild, Go, CWE-94

Exploitation
Confirmed 25 Aug 2026
Severity
9.8 of 10
Attack likelihood
24 % in 30 days
Fix
Fixed version known
Patch deadline
Agencies by 28 Aug 2026

Details

Advisory ID
GHSA-rcr6-4jqh-j84m
EU ID
EUVD-2026-66708
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-94
Published
25 Aug 2026
Last change
8 Sept 2026
Likelihood rank
Higher than 98 % of all rated vulnerabilities
Analysis status
Analyzed
Ecosystem
Go
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.

Affected products

Affected versions and the first fixed release

  • Gitea From 1.17.0 before 1.27.1. Fixed in 1.27.1

Affected packages

Vulnerable version ranges and fixed releases

  • gitea.dev Go, Affected from 1.17.0 before 1.27.1. Fixed in 1.27.1

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Exploit code

Public exploits and proofs of concept, handle with care

Related