Gitea before 1.27.1 allows remote code execution via the diffpatch API through Git hook installation.