Security networkFree AntivirusAntivirus ToolsInfoVirus

CVE-2026-60004

Gitea Gitea · Gitea Code Injection Vulnerability

Actively exploited

What is CVE-2026-60004?

This vulnerability in Gitea allows an attacker who already has repository write access to perform code injection. By sending a malicious patch to the diffpatch API endpoint, an attacker can plant an executable Git hook. This action enables the attacker to run unauthorized shell commands with the permissions of the Gitea service account. Because this flaw is currently being actively exploited, it poses a significant risk to the integrity and security of the affected systems.

Administrators of Gitea instances should be concerned about this vulnerability. To secure your environment, you must apply the update provided by the vendor as soon as possible. Check the official Gitea security notices for the specific patch release and follow the instructions to install it immediately. Taking this action is necessary to prevent unauthorized command execution on your server.

Summary written with AI assistance from the sources listed on this page. Check the original sources for full technical details.

CISA description

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.

CISA added this vulnerability to its Known Exploited Vulnerabilities catalog on 25 August 2026, which means there is reliable evidence that attackers are using it in real attacks.

What to do

Install the security update or apply the mitigations published by Gitea as soon as possible. If no fix is available, follow the vendor's workaround or stop using the affected product until it can be patched. For internet-facing systems, also check for signs of compromise, because the flaw may have been used before you patched.

References