RCE in Gitea

CVE-2026-60004

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

Vulnerability class: RCE (Remote Code Execution)

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

Weakness classification (CWE)

CISA KEV (Known Exploited Vulnerabilities)

This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.

BOD 22-01 due date: .

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.

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2026-60004?
CVE-2026-60004 is a critical-severity vulnerability in Gitea, classified under Code Injection. CVSS score: 9.8/10. Published 2026-08-26.
How severe is CVE-2026-60004?
Critical severity. CVSS v3 base score is 9.8 out of 10.
Is CVE-2026-60004 known to be exploited?
Yes. CVE-2026-60004 is listed in the CISA Known Exploited Vulnerabilities catalog (added 2026-08-25), indicating it is being actively exploited. 9 public proof-of-concept repositories are indexed.