Article

    Cyber News / Article / Authentication bypass vulnerabilities in TeamCity: everything you need to know

    Authentication bypass vulnerabilities in TeamCity: everything you need to know
    Gi
    Gili Tikochinski-2024-03-06

    Authentication bypass vulnerabilities in TeamCity: everything you need to know

    Detect and mitigate CVE-2024-27198 (CVSS score: 9.8) and CVE-2024-27199 (CVSS score: 7.3), authentication bypass vulnerabilities in JetBrains TeamCity.

    On March 4, 2024, JetBrains released a patch for two critical and high severity authentication bypass vulnerabilities — CVE-2024-27198 (CVSS score: 9.8) and CVE-2024-27199 (CVSS score: 7.3). Each of these vulnerabilities may enable an unauthenticated attacker who has HTTP(s) access to a TeamCity server to bypass authentication checks and gain administrative control of the server. Exploitation attempts have been observed in the wild; it is highly recommended to upgrade TeamCity to the patched version or apply the “security patch” plugin as a workaround.

    On March 7, 2024, CVE-2024-27198 was added to theCISA Known Exploited Vulnerabilitiescatalog based on evidence of active exploitation.

    This critical vulnerability allows remote unauthenticated attackers to bypass authentication and gain complete control over a vulnerable server. It arises from how thejetbrains.buildServer.controllers.BaseControllerclass handles certain requests, allowing attackers to manipulate the URL and access authenticated endpoints directly.

    Attackers can exploit this by crafting a URL with specific parameters, enabling them to call authenticated endpoints without proper authentication. Exploitation can lead to creating new administrator accounts or generating administrator access tokens, thereby providing attackers with full control over the TeamCity server and associated resources.

    This highseverity vulnerability enables unauthenticated attackers to bypass authentication and access a limited set of authenticated endpoints, allowing for modification of system settings and disclosure of sensitive information. By exploiting path traversal issues in specific paths like/res/and/update/, attackers can traverse to alternative endpoints without authentication. This leads to accessing JSP pages and servlet endpoints that leak information and permit system settings modification.

    For instance, attackers can reach endpoints such as/app/https/settings/uploadCertificateto upload a new TLS certificate or change the HTTPS port number. These actions can result in a denial-of-service attack or facilitate eavesdropping orman-in-the-middle attackson client connections if the uploaded certificate is trusted by the client.

    Exploitation attempts have been observed in the wild byGreynoiseandShadowserver.

    According to Wiz data, approximately 10% of cloud environments have instances with TeamCity installed and 8.5% have instances vulnerable to CVE-2024-27198 and CVE-2024-27199, as of March 6, 2024.

    A simple Shodan search for TeamCity servers shows around 2,200 instances exposed to the internet:

    All versions of TeamCity On-Premises up to but not including2023.11.4are affected by these vulnerabilities.

    TeamCity Cloud instances have been patched automatically.

    It is recommended to update TeamCity to the patched version,2023.11.4, or above.

    For users unable to update to the patched version at this time, JetBrains has provided a "security patch" plugin as a workaround. The plugin can be installed on all TeamCity versions through 2023.11.3. Use the plugin for eitherTeamCity 2018.2 and newerorTeamCity 2018.1 and older, depending on the major version you're using.

    Wiz customers can use the pre-built query and advisory in theWiz Threat Centerto search for vulnerable instances in their environment.

    JetBrains advisory

    Rapid7 blog

    Wiz customers can now secure everything they build and run on Akamai Linode Cloud, providing organizations the broadest cloud coverage out of any CNAPP

    Wiz customers can now detect vulnerabilities in MacOS workloads and their software components with agentless scanning, and assess their secure configurations against built-in CIS Benchmarks for Apple MacOS

    In this post, we take a closer look at the Digital Operational Resilience Act (DORA), and discuss how Wiz can help financial institutions navigate these new regulations.

    Get a personalized demo

    ©2026Wiz, Inc.

    StatusPrivacy PolicyTerms of UseModern Slavery StatementCookie Settings

    Original source