Fixing and finding
Jump to remediation plan
CVE ID

CVE-2026-60004

Published 2026-08-26
Updated 13 days ago
Vendor/s
Gitea
Product/s
Gitea
Version/s
1.17.0 > 1.27.1
KEV Status
Active Exploitation
Listed in CISA's Known Exploited Vulnerabilities catalog. Active exploitation observed in the wild.
CVSS Score (v3.1)
9.8
/ 10
Critical
Severity Details
Base score
9.8 Critical
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Description

Critical RCE in Gitea (CVSS 9.8) allows attackers to execute commands via the diffpatch API. Actively exploited; update to version 1.27.1 immediately.

CPE

Gitea logo
Gitea
Product Version Start Version End (excl.) Status
gitea 1.17.0 1.27.1 vulnerable

Related weakness (CWE)

CWE-94

Remediation plan

1

Apply official patches

Immediately upgrade Gitea to version 1.27.1 or later. This release contains critical security fixes that sanitize inputs to the diffpatch API and prevent unauthorized Git hook installation.

2

Update affected systems

Identify all Gitea instances running versions 1.17.0 through 1.27.0. Ensure these systems are updated to the latest stable version to mitigate the risk of remote code execution.

3

Restrict access

Limit network access to the Gitea web interface and API to trusted IP ranges. Additionally, ensure that 'DISABLE_GIT_HOOKS' is set to true in the Gitea configuration file to prevent any hook-based execution.

4

Monitor for exploitation

Audit repository directories for unauthorized scripts in the 'hooks' folder and review application logs for suspicious POST requests directed at the diffpatch API endpoint.

Detection Guidance

"Monitor Gitea application logs for unusual activity involving the `/api/v1/repos/{owner}/{repo}/diffpatch` endpoint, particularly requests originating from unauthenticated or unexpected IP addresses. Security teams should use file integrity monitoring (FIM) to detect the creation of new executable files within the Git hooks directory of hosted repositories. Additionally, inspect system process logs for unexpected shell executions (e.g., /bin/sh, /bin/bash) spawned by the Gitea service user account."

References

Sources

NIST National Vulnerability Database (NVD)
CISA Known Exploited Vulnerabilities (KEV)

Experience superior visibility and a simpler approach to cyber risk management