A significant number of Gitea servers, over 8,300, are still vulnerable to a critical security flaw that allows remote code execution. This vulnerability, identified as CVE-2026-60004, was reported by Salesforce researcher Shai Rod. It enables authenticated attackers to execute arbitrary shell commands with the privileges of the Gitea service account by exploiting the diffpatch API endpoint. Although exploitation requires repository write access, Gitea's default self-registration feature permits attackers to register an account, create a new repository, and exploit the vulnerability without initial credentials.
Gitea released version 1.27.1 on July 27 to address this issue and urged users to upgrade their servers. However, cybersecurity group Shadowserver has identified nearly 8,400 Gitea servers still exposed and vulnerable as of August 27, underscoring the urgency for users to patch their systems immediately. The U.S. Cybersecurity and Infrastructure Security Agency (CISA) has added this vulnerability to its list of actively exploited flaws and mandated that U.S. Federal Civilian Executive Branch agencies patch their servers within three days.
While specific details of exploits targeting this flaw are scarce, reports indicate that attackers are deploying cryptocurrency mining malware on unpatched Gitea servers. This type of vulnerability is a common target for cybercriminals, posing significant risks to federal and private enterprises alike. Previously, another critical vulnerability in the Gitea Docker image was exploited, highlighting the importance of timely patching and vigilance in server security. Gitea, a self-hosted alternative to platforms like GitHub and GitLab, has over 400,000 installations worldwide, making these vulnerabilities particularly concerning for a broad range of users.

