How to fix CVE-2024-27198 – Step-by-Step Guide
CVE-2024-27198 (JetBrains TeamCity Authentication Bypass) is a <strong>CRITICAL severity</strong> vulnerability with a CVSS score of 10/10. An authentication bypass vulnerability in JetBrains TeamCity allows unauthenticated attackers to gain admin access and execute arbitrary code on the server via the web UI. Follow the step-by-step guide below to remediate this vulnerability in your infrastructure.
What is JetBrains TeamCity Authentication Bypass?
JetBrains TeamCity Authentication Bypass (CVE-2024-27198) affects <strong>JetBrains TeamCity</strong>. An authentication bypass vulnerability in JetBrains TeamCity allows unauthenticated attackers to gain admin access and execute arbitrary code on the server via the web UI. It was published on 2024-03-04 and affects <strong>TeamCity < 2023.11.4</strong>. The fixed version is <strong>TeamCity 2023.11.4+</strong>.
Impact and Risks for your Infrastructure
Complete server takeover. Unauthenticated attackers can create admin accounts, execute arbitrary builds, access all source code, and exfiltrate secrets stored in TeamCity.
Step-by-Step Mitigation Guide
To remediate CVE-2024-27198, follow the prioritized mitigation steps: Update TeamCity to 2023.11.4 or later immediately. → Restrict TeamCity web UI access to trusted IP ranges only. → Audit TeamCity user accounts and remove any unauthorized admin accounts. → Rotate all credentials, tokens, and VCS passwords stored in TeamCity. → Review build logs for signs of exploitation (unauthorized builds, new admin accounts). → Enable TeamCity audit logs and set up alerts for admin account creation.. Verify the fix using the verification commands below and confirm the patched version is deployed across all affected systems.
- 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.