How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198 is a critical authentication bypass vulnerability impacting JetBrains TeamCity. Published on March 4, 2024, this flaw allows unauthenticated attackers to gain full administrative control over affected servers.
What is JetBrains TeamCity Authentication Bypass?
This vulnerability, present in JetBrains TeamCity versions prior to 2023.11.4, allows unauthenticated attackers to bypass authentication via the web UI. This bypass grants them administrative access, enabling the creation of admin accounts and execution of arbitrary code on the server.
Impact and Risks for your Infrastructure
The business and infrastructure impact is severe, leading to complete server takeover. Unauthenticated attackers can access all source code, exfiltrate sensitive secrets, and execute malicious builds, causing significant data breaches and operational disruption.
Step-by-Step Mitigation Guide
To fix CVE-2024-27198, immediately upgrade your JetBrains TeamCity instance to version 2023.11.4 or newer. Verify the update by checking the installed version number and ensuring the patch is successfully applied to mitigate the risk.
- 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.