
Critical Gitea Vulnerability CVE-2026-60004 Allows Repository Writers to Execute Commands via Git Hooks
A critical vulnerability tracked as CVE-2026-60004 affects Gitea and enables remote command execution on the hosting server when an attacker possesses write permissions on a repository. The flaw is triggered by abusing Git hooks, which are small scripts that Git can automatically run at various points in the development workflow. Exploitation requires an authenticated account with write access, such as a collaborator or any role granted write permissions, making the issue particularly relevant for shared or multi-team repositories. Organizations that integrate Gitea into internal tooling face elevated risk because the server often has network visibility, access to shared storage, and proximity to sensitive credentials including CI/CD tokens and deployment keys. The recommended immediate actions include updating to the patched Gitea 1.27.1 release and auditing or disabling Git hooks wherever they are not strictly necessary. A publicly available proof-of-concept further increases operational urgency, prompting defenders to review permissions for external collaborators and rotate credentials if compromise is suspected.
HispasecJul 29, 2026Translated from Spanish