How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198 is a critical authentication bypass vulnerability affecting JetBrains TeamCity, rated CVSS 10.0. This flaw allows unauthenticated attackers to gain administrative access and execute arbitrary code via the web UI. Organizations using TeamCity must address this immediately.
What is JetBrains TeamCity Authentication Bypass?
This vulnerability, CVE-2024-27198, specifically targets JetBrains TeamCity versions prior to 2023.11.4. It's an authentication bypass that enables unauthenticated attackers to exploit a flaw in the web interface. This allows them to create new admin accounts, effectively bypassing all security controls and gaining full administrative privileges.
Impact and Risks for your Infrastructure
The impact of CVE-2024-27198 is severe, leading to complete server takeover. Attackers can create admin accounts, execute arbitrary builds, access sensitive source code repositories, and exfiltrate critical secrets. This poses a significant risk to data integrity, confidentiality, and operational continuity.
Step-by-Step Mitigation Guide
To mitigate CVE-2024-27198, immediately upgrade all affected JetBrains TeamCity instances to version 2023.11.4 or newer. Verify the upgrade by checking the TeamCity server version in the administration panel. After upgrading, review logs for any suspicious activity prior to the fix.
- 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.