CVE-2026-60004Gitea
Remote Code Injection without Authentication in Gitea via diffpatch API
Critical 9.8 KEV No auth needed
Follow: this CVE · Gitea · Gitea We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- In KEV since
- Aug 25, 2026
- CISA deadline
- Aug 28, 2026
- Ransomware use
- Unknown
- Published
- Aug 26, 2026
- Updated
- Aug 27, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: active · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Gitea before version 1.27.1 allows unauthenticated remote code execution through the diffpatch API via Git hook installation. An attacker can send a malicious patch to execute shell commands with the privileges of the Gitea service account. CISA has confirmed this vulnerability is actively exploited.
Show the original NVD text
Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.
Exploitation confirmed by CISA
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.
Action required by CISA: 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.
What to do
Patch available · fixed versions: 1.27.1
Update Gitea to version 1.27.1 or later immediately. If you cannot update, disable access to the diffpatch API or restrict access to trusted users.
- Apply the vendor's security update for Gitea.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was August 28, 2026.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | code.gitea.io/gitea |
≥ 1.17.0 |
no fixed version | — |
| Go | gitea.dev |
≥ 1.17.0 < 1.27.1 |
1.27.1 |
go get gitea.dev@v1.27.1 |
| Go | gitea.dev |
< 1.27.1 |
1.27.1 |
go get gitea.dev@v1.27.1 |
Per OSV / GitHub Advisories (GO-2026-6433, GHSA-rcr6-4jqh-j84m). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitea | gitea | ≥ 1.17.0 < 1.27.1 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21897-1 · Sep 21, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23855-1 · Sep 21, 2026 Critical
- Security update for govulncheck-vulndb · SUSE · SUSE-SU-2026:23863-1 · Sep 21, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
On social media
1 person and 1 post on Bluesky in the last 30 days.
Most recent posts, without bots or automated feeds. The text belongs to its authors. Search on Bluesky
Official sources
References
Links published by the sources. Open them with care.
- blog.gitea.com Release Notes
- github.com Exploit Mitigation Third Party Advisory
- github.com Exploit Vendor Advisory
- www.runzero.com Third Party Advisory
- www.cisa.gov US Government Resource