Live threats

All CVEs / Gitea

CVE-2026-60004Gitea

Remote Code Injection without Authentication in Gitea via diffpatch API

Critical 9.8 KEV No auth needed

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.

Source text, unmodified. NVD.

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.

Source text, unmodified. CISA KEV.

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.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for Gitea.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was August 28, 2026.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
giteagitea≥ 1.17.0 < 1.27.1

Official advisories

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.