How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198, a critical authentication bypass vulnerability (CVSS 10.0), affects JetBrains TeamCity. This flaw allows unauthenticated attackers to gain full administrative control and execute arbitrary code on vulnerable servers. It was published on March 4, 2024.
What is JetBrains TeamCity Authentication Bypass?
CVE-2024-27198 is an authentication bypass in JetBrains TeamCity versions prior to 2023.11.4. This critical vulnerability allows unauthenticated attackers to exploit the web UI to bypass authentication mechanisms. Upon successful exploitation, attackers can create administrative accounts and execute arbitrary code on the TeamCity server.
Impact and Risks for your Infrastructure
The impact of CVE-2024-27198 is severe, leading to complete server takeover. Unauthenticated attackers can gain full administrative access, enabling them to execute arbitrary builds, access all source code repositories, and exfiltrate sensitive secrets stored within TeamCity. This poses a critical risk to CI/CD pipelines and intellectual property.
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 update by checking the TeamCity server version in the administration panel. 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.