How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198 is a critical authentication bypass vulnerability affecting JetBrains TeamCity. This flaw, with a CVSS score of 10, allows unauthenticated attackers to gain administrative control. It was published on March 4, 2024.
What is JetBrains TeamCity Authentication Bypass?
This critical vulnerability (CVE-2024-27198) in JetBrains TeamCity versions prior to 2023.11.4 allows an unauthenticated attacker to bypass the authentication mechanism. By exploiting a specific path traversal flaw in the web UI, attackers can create new administrator accounts. This grants them full control over the TeamCity instance, including arbitrary code execution.
Impact and Risks for your Infrastructure
The impact is severe, leading to complete server takeover. Unauthenticated attackers can create admin accounts, execute arbitrary builds, access all source code repositories, and exfiltrate sensitive secrets. This compromises CI/CD pipelines and intellectual property, posing a significant business risk.
Step-by-Step Mitigation Guide
To mitigate CVE-2024-27198, immediately upgrade your JetBrains TeamCity instance to version 2023.11.4 or higher. Verify the update by checking the TeamCity server version in the administration panel after the upgrade. Additionally, audit for any unauthorized admin accounts 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.