How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198, a critical authentication bypass in JetBrains TeamCity, allows unauthenticated attackers to gain full administrative control. This severe vulnerability affects TeamCity versions prior to 2023.11.4. Immediate action is required to protect your CI/CD pipelines.
What is JetBrains TeamCity Authentication Bypass?
This vulnerability enables unauthenticated attackers to bypass the authentication mechanism in JetBrains TeamCity's web UI. Exploiting this flaw grants them administrative access to the TeamCity server. Once authenticated as an administrator, attackers can execute arbitrary code, compromising the entire CI/CD environment.
Impact and Risks for your Infrastructure
The impact is a complete server takeover, allowing unauthenticated attackers to create admin accounts and execute arbitrary builds. This grants full access to all source code, build artifacts, and secrets stored within TeamCity. Data exfiltration and system compromise are critical risks.
Step-by-Step Mitigation Guide
To mitigate CVE-2024-27198, upgrade your JetBrains TeamCity instance to version 2023.11.4 or newer immediately. Verify the upgrade by checking the TeamCity server version in the administration panel. Ensure no unauthorized admin accounts were created prior to the patch.
- 1Update TeamCity to 2023.11.4 or later immediately.
- 2Restrict TeamCity web UI access to trusted IP ranges only.
- 3Audit TeamCity user accounts and remove any unauthorized admin accounts.
- 4Rotate all credentials, tokens, and VCS passwords stored in TeamCity.
- 5Review build logs for signs of exploitation (unauthorized builds, new admin accounts).
- 6Enable TeamCity audit logs and set up alerts for admin account creation.