How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198, a critical authentication bypass in JetBrains TeamCity, has been identified. This vulnerability allows unauthenticated attackers to gain full administrative control over affected servers. Published on March 4, 2024, it demands immediate attention.
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 allows unauthenticated attackers to exploit a flaw in the web UI, bypassing authentication mechanisms entirely. This grants them the ability to create new admin accounts and subsequently execute arbitrary code on the server.
Impact and Risks for your Infrastructure
The impact of CVE-2024-27198 is severe, leading to complete server takeover. Attackers can gain full administrative access, enabling them to execute arbitrary builds, access sensitive source code repositories, and exfiltrate critical secrets. This poses a significant risk to data integrity and operational security.
Step-by-Step Mitigation Guide
To mitigate CVE-2024-27198, immediately upgrade all JetBrains TeamCity instances to version 2023.11.4 or newer. Verify the update by checking your TeamCity server's version number in the administration panel. Ensure no unauthorized admin accounts were created prior to patching.
- 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.