Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled. https://github.com/go-gitea/gitea/pull/21463 https://github.com/go-gitea/gitea/releases/tag/v1.17.3