Join our Newsletter — 33% off our NHI Course

CVE-2024-27198 (JetBrains TeamCity Authentication Bypass)

CVE-2024-27198 is an authentication bypass vulnerability in JetBrains TeamCity. CISA added it to the Known Exploited Vulnerabilities catalogue on 7 March 2024, which means attackers have used it in real attacks. JetBrains TeamCity contains an authentication bypass vulnerability that allows an attacker to perform admin actions.

What this vulnerability means for TeamCity

An authentication bypass in TeamCity is especially serious because it can turn an external request into administrative control without the normal trust check. For a build system, that is not just a login flaw, it is a path into software delivery, configuration, and often the systems and secrets that support them.

The danger comes from where TeamCity sits in the development pipeline. If an attacker can act as an admin, they may be able to change build settings, inspect stored credentials, tamper with jobs, or pivot into connected source code and deployment assets. That is why TeamCity exploitation has repeatedly been treated as a high-value target in real intrusions.

How organisations assess exposure

Exposure assessment starts with a precise inventory of TeamCity instances, where they are hosted, and whether any instance is reachable from the internet or from untrusted networks. Teams should also check vendor advisories and the CISA KEV catalogue, because this CVE is in the category of flaws that attackers are already exploiting.

That review should extend beyond the application itself. A TeamCity server may hold build credentials, deployment tokens, signing material, and access paths into repositories or downstream environments. If the server is connected to production deployment tooling, the blast radius is usually wider than the service name suggests.

When a flaw like this appears, organisations should compare their asset list against vendor guidance instead of guessing from product version names alone. The operational question is whether any TeamCity node can still receive unauthenticated requests and whether that node has privileged reach into pipelines, source control, or release infrastructure.

Remediation and compensating controls

The primary remediation is to apply the vendor fix as soon as it is available for the affected deployment. Until that is possible, the safest compensating controls are to reduce exposure, restrict network reachability, and treat the instance as high risk if it is internet-facing.

Where patch timing is constrained, organisations should isolate the server, remove unnecessary administrative paths, and narrow who can reach the management interface. They should also review whether any adjacent controls, such as reverse proxy restrictions or network segmentation, meaningfully reduce attacker access while the fix is pending.

If there is any sign that administrative actions were possible during the exposure window, assume that secrets and job configuration may also need review. For many CI/CD platforms, remediation is not complete until affected credentials, tokens, and service accounts have been rotated or reissued.

Detection and compromise review after patching

Patching closes the known flaw, but it does not answer whether the system was already used. Post-patch review should focus on administrative actions, configuration changes, build history, new users, modified jobs, and unusual access to secrets or artifacts.

Logs often matter more than the patch record. Look for requests that map to unauthenticated administrative behaviour, unexpected changes in build parameters, repository links, agent configuration, or deployment settings, and evidence that an attacker used the server to reach other internal systems. For a broader identity and access perspective, review admin-account abuse patterns and service-account compromise patterns to understand how privileged control points are commonly abused after initial access.

If compromise is suspected, the review should include any downstream systems that trusted TeamCity for authentication, deployment, or artifact handling. In CI/CD environments, a single bypass can become a supply-chain event if the attacker reaches signing keys, deployment credentials, or release automation.

Risk and Threat Considerations

Authentication bypasses in build platforms are attractive because they compress the attack chain, one flaw can replace several steps of credential theft, privilege escalation, and lateral movement. In TeamCity, that can expose source code, build secrets, and deployment trust at the same time.

Failure mechanism: An attacker reaches an admin-only function without proving identity, then uses that trusted position to alter pipelines, read secrets, or pivot into connected systems.

Impact: The result can include build tampering, credential exposure, release manipulation, and broader compromise of the software delivery environment.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.

Framework Control / Reference Relevance
CIS Controls v8 CIS-16 — Application Software Security Build platforms are software assets whose auth bypass risk calls for secure configuration and remediation discipline.
Recommendation — Review and remediate exposed TeamCity software before attackers can abuse administrative access.
NIST SP 800-53 Rev 5 SA-11 — Developer Testing and Evaluation A CI/CD authentication bypass directly affects software delivery integrity and validation controls.
IA-2 — Identification and Authentication (Organizational Users) The flaw is an authentication bypass that undermines user verification for administrative actions.
AU-2 — Audit Events Post-exploitation review depends on logs for administrative actions and suspicious changes in TeamCity.
Recommendation — Test and verify TeamCity authentication paths before deploying it into trusted build workflows. Enforce strong administrative authentication and remove any unauthenticated management path. Log and review admin actions, configuration changes, and secret access around the exposure window.
ISO/IEC 27001:2022 A.8.5 — Secure authentication The vulnerability is an authentication failure in a system that should enforce secure sign-in and admin access.
Recommendation — Harden TeamCity authentication flows and validate that admin access cannot be bypassed.

Practitioner Guidance

Why practitioners should care: Treat TeamCity as a high-value control point, not just an internal tool. If it is exposed to the internet or tied to production delivery, an authentication bypass can become a direct route into software supply chain trust.

What to watch for: Any unexplained admin activity, job edits, new tokens, unusual agent configuration changes, or secret access around the exposure window deserves immediate investigation. After remediation, validate that the environment is no longer accepting unauthenticated administrative requests and that any trusted credentials have been reassessed.