LiveBreach Intelligence: data breaches, leaks & ransomware, tracked as they surfaceOngoing protection: GalaxyWarden →
Recent BreachesData breach tracker

CVE-2026-60004: Gitea Code Injection Vulnerability

RBRecent Breaches Vulnerability Intelligence·Aug 25, 2026
Elevated⚠ Actively exploited (CISA KEV)
Elevated
Severity
Active
CISA KEV
No
Ransomware use
Aug 28, 2026
Patch deadline
⚠ Exploited in the wild. CISA added CVE-2026-60004 to its Known Exploited Vulnerabilities catalog on Aug 25, 2026, with a federal patch deadline of Aug 28, 2026 — meaning attackers are actively using it. If you run the affected software, patch it immediately.

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…

CVE-2026-60004 is a code injection weakness in Gitea that can let someone who already has write access to a repository abuse a patch-related API path to install a malicious Git hook. Once that hook is in place, commands can run with the privileges of the Gitea service account. That matters because Gitea often holds source code, CI secrets, deploy keys, and organizational trust relationships; compromise of the service account can extend far beyond a single repo.

Public detail is limited to the class of issue and the access model described by CISA. Confirm exact affected builds, fixed releases, and configuration notes against the vendor advisory before you act.

How it works

This issue is tracked as CWE-94 (improper control of code generation / code injection). In plain terms, the product accepts attacker-influenced input in a context where that input can become executable behavior rather than inert data.

According to the CISA summary, an attacker who already has repository write access can send a malicious patch to the diffpatch API endpoint. That path is intended to apply patch content; the flaw allows the attacker to plant an executable Git hook. Git hooks run in response to repository events, so a planted hook can cause shell commands to execute as the Gitea service account when normal Git operations occur.

No public exploit mechanics beyond that summary are provided here. Do not assume unauthenticated remote code execution: the described abuse requires write access to a repository. Treat any account or token that can push or otherwise write to repos as in scope for abuse of this class of flaw.

Am I affected? How to find it in your systems

Gitea is a self-hosted Git service commonly deployed on Linux servers, containers, or internal VMs for source control, code review, and lightweight CI integration. It may face the internet, sit on a corporate VPN, or run only on internal networks.

Absence of obvious log noise does not prove safety. Confirm patch status with the vendor advisory.

How to remediate

Patch first. Apply the vendor-supplied update for Gitea as named in the official advisory, following your normal change and test process. CISA’s required action direction is to apply mitigations in accordance with vendor instructions and to follow applicable BOD 26-04 prioritization and forensics-triage guidance; for cloud-hosted or managed instances, follow BOD 26-04 cloud guidance or discontinue use if mitigations are unavailable. Stakeholders must evaluate internet exposure and meet BOD 26-04 patching expectations for each asset.

If you can't patch immediately

Compensating controls reduce—but do not eliminate—risk until the vendor fix is installed.

If your data may have been exposed

Actively exploited code-injection flaws in source-control platforms can lead to repository tampering, secret theft, and downstream compromise of build and deploy systems. Known ransomware use is not documented for this CVE in the facts provided; still investigate if you see evidence of unauthorized hooks or service-account activity. If you believe your environment was touched, follow your incident process: isolate the host as needed, preserve logs and hook artifacts, rotate secrets the Gitea account could access, and validate integrity of critical repositories. You can also run a free exposure scan of your email addresses against known breach datasets to see whether related identities already appear in public breach collections, then prioritize password resets and MFA on those accounts.

AICompiled with AI assistance from public sources and published under our editorial standards.

Details

AffectedGitea · Gitea
WeaknessCWE-94
Added to CISA KEVAug 25, 2026
Federal patch deadlineAug 28, 2026
Known ransomware useNot documented
Check if your data is exposed →

Official records: NVD · CISA KEV

← All actively-exploited vulnerabilities