How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198 is a critical authentication bypass vulnerability affecting JetBrains TeamCity. This flaw allows unauthenticated attackers to gain administrative access and execute arbitrary code on the server through the web UI. It poses a severe risk to affected installations.
What is JetBrains TeamCity Authentication Bypass?
This critical vulnerability, CVE-2024-27198, is an authentication bypass in JetBrains TeamCity versions prior to 2023.11.4. It enables unauthenticated remote attackers to circumvent the authentication mechanism. By exploiting this flaw via the web UI, attackers can create new admin accounts and achieve remote code execution on the TeamCity server.
Impact and Risks for your Infrastructure
The impact of CVE-2024-27198 is a complete server takeover. Unauthenticated attackers can gain full administrative control, leading to arbitrary code execution, access to all source code repositories, and exfiltration of sensitive secrets. This directly compromises CI/CD pipelines and critical infrastructure.
Step-by-Step Mitigation Guide
To mitigate CVE-2024-27198, immediately upgrade your JetBrains TeamCity instance to version 2023.11.4 or newer. Verify the upgrade by checking the installed version number in the TeamCity UI. Ensure all instances are updated to prevent unauthenticated access and potential server compromise.
- 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.