How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198 is a critical authentication bypass vulnerability affecting JetBrains TeamCity. With a CVSS score of 10.0, this flaw allows unauthenticated attackers to gain full administrative access and execute arbitrary code through the web UI.
What is JetBrains TeamCity Authentication Bypass?
This vulnerability is an authentication bypass in JetBrains TeamCity versions prior to 2023.11.4. It enables unauthenticated attackers to bypass security checks within the web UI. This grants them administrative privileges, allowing for arbitrary code execution on the server.
Impact and Risks for your Infrastructure
The primary impact is a complete server takeover. Unauthenticated attackers can create admin accounts, execute arbitrary builds, access all source code repositories, and exfiltrate sensitive secrets stored in TeamCity, leading to severe data breaches and operational disruption.
Step-by-Step Mitigation Guide
To mitigate CVE-2024-27198, immediately upgrade your JetBrains TeamCity instance to version 2023.11.4 or newer. After applying the update, verify the new version is active and functioning correctly to ensure the patch has been successfully applied.
- 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.