Authorizations are not properly verified when creating branches with the REST API in Git repositories using the fine grained permissions.
Impact
Users can create branches via the REST endpoint POST git/:id/branches
regardless of the permissions set on the repository.
CVSSv3.1 score: 4.3 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N)
References
CWE 285
CVE-2022-31128