Skip to content

CVE-2026-60004 Gitea: Remote Code Execution via diffpatch Git Hook Installation

CriticalCVSS 9.8 EPSS 24.0% CISA KEV added 2026-08-25 · due 2026-08-28 Exploited in the wild PoC
Published
Updated
Exploit status
Exploited in the wild (confirmed)

Description

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

CISA Known Exploited Vulnerability

Date added
2026-08-25
Due date (FCEB)
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.

Affected products

ProductAffected versionsFixed in
gitea.dev(Go) >= 1.17.0, < 1.27.1 1.27.1
code.gitea.io/gitea(Go) >= 1.17.0 No fix listed
gitea.dev(Go) < 1.27.1 1.27.1
Gitea >= 1.17, < 1.27.1 1.27.1
alpine/forgejo(Alpine:v3.24) < 15.0.6-r0 15.0.6-r0
Gitea >= 1.17.0, < 1.27.1 1.27.1

References