How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198 is a critical JetBrains TeamCity Authentication Bypass vulnerability (CVSS 10.0). It allows unauthenticated attackers to gain admin access and execute arbitrary code on affected TeamCity servers via the web UI.
What is JetBrains TeamCity Authentication Bypass?
This authentication bypass vulnerability in JetBrains TeamCity allows unauthenticated users to exploit the web UI. Attackers can bypass authentication mechanisms, gaining full administrative privileges. This enables them to execute arbitrary code on the underlying server, compromising the CI/CD environment.
Impact and Risks for your Infrastructure
The critical impact includes complete server takeover of your TeamCity instance. Unauthenticated attackers can create admin accounts, execute arbitrary builds, access all source code repositories, and exfiltrate sensitive secrets stored within TeamCity.
Step-by-Step Mitigation Guide
To fix CVE-2024-27198, immediately upgrade your JetBrains TeamCity instance to version 2023.11.4 or higher. Verify the upgrade by checking the TeamCity server version in the administration panel to ensure the patch is successfully applied.
- 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.