A critical RCE vulnerability, tracked as CVE-2026-60004, has been identified in Gitea with a CVSS v3.1 score of 9.8, affecting versions 1.17 through 1.27.0, addressed in version 1.27.1. The vulnerability exists in Gitea’s diffpatch endpoint, which processes repository patches using Git commands. . On instances with open user registration, an unauthenticated attacker can simply create an account, initialize a repository, and obtain the required permissions, making publicly accessible deployments particularly exposed. Flaw stems from the way Gitea applies attacker-controlled patches in a temporary bare Git repository. When running Git version 2.32 or later, Git may fall back to a three-way merge after detecting an add/add collision if the same crafted patch is submitted twice. During this process, Git checks out indexed files even when operating with the --cached option. Because the repository root in a bare clone also serves as the Git directory, a malicious executable placed at hooks/post-index-change becomes an active Git hook which is automatically executed while updating the repository index, allowing arbitrary commands to run with the privileges of the Gitea service account. A successful exploit could expose sensitive assets, including the 'app.ini' configuration file, application secrets, environment variables, mounted repositories, database credentials, OAuth tokens, and other integration-related credentials. Administrators should immediately upgrade to Gitea version 1.27.1 to eliminate the risk. Until then, organizations restrict access to the diffpatch endpoint, disable public user registration where possible, limit repository write permissions, reduce the privileges assigned to the Gitea service account. Monitoring Gitea and Git logs for suspicious patch submissions or unexpected Git hook activity can help detect exploitation attempts. Combined with proper system isolation and timely security updates, can significantly reduce the impact.
Security analysts have identified a software supply chain operation in which several npm packages were intentionally weaponized to distribute a cross-platform Remote Access Trojan ...
Security researchers have uncovered a sophisticated software supply chain campaign in which threat actors distributed a modular Remote Access Trojan (RAT) through multiple maliciou...
OpenAI models reportedly discovered and chained previously unknown vulnerabilities in self-hosted JFrog Artifactory during an isolated cybersecurity evaluation. The flaws enabled t...