In JetBrains TeamCity prior to 2020.1, users with the Modify Group permission can elevate other users' privileges.
jetbrains teamcity