Critical JetBrains TeamCity Flaw Allows Build Agent Takeover

A critical authentication bypass vulnerability in JetBrains TeamCity, tracked as CVE-2026-136858, allows unauthenticated attackers to hijack authorized build agents, access sensitive credentials, and manipulate software build artifacts. The vulnerability carries a CVSS score of 9.1, and security updates are available.

On December 2, 2026, JetBrains disclosed a critical security vulnerability identified as CVE-2026-136858, affecting self-hosted installations of TeamCity.

The vulnerability compromises the authentication mechanism used during build agent registration, potentially allowing unauthorized parties to impersonate legitimate build agents.

TeamCity is a continuous integration and continuous delivery (CI/CD) platform widely used for software development, automated testing, and application deployment.

The vulnerability presents a significant software supply chain security risk for organizations using TeamCity to build and distribute production software.

Security Vulnerability

Parameter Description
CVE Identifier CVE-2026-136858
Vendor JetBrains
Affected Software TeamCity On-Premises
Affected Component Build Agent Registration
CVSS 3.1 Score 9.1
Severity Critical
CWE Identifier CWE-639
Vulnerability Type Authentication and Authorization Bypass
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Confidentiality Impact High
Integrity Impact High
Active Exploitation Not publicly confirmed
Security Fix Available

Vulnerability Details

TeamCity uses distributed build agents to perform compilation, automated testing, packaging, and deployment operations.

These agents frequently receive sensitive information required to complete build operations, including authentication credentials and access tokens.

CVE-2026-136858 affects the mechanism responsible for establishing trusted relationships between the TeamCity server and its build agents.

Successful exploitation could allow an unauthorized system to participate in build operations under the identity of a legitimate agent.

An attacker does not require an existing TeamCity account. Network access to the affected server over HTTP or HTTPS is sufficient to expose the vulnerable functionality.

Affected and Fixed Versions

The following TeamCity releases contain security fixes:

TeamCity Branch Fixed Version
2026.1.x 2026.1.7
2026.2.x 2026.2.3
2026.3 2026.3
Earlier Releases Upgrade or apply the official security patch plugin

Older TeamCity On-Premises installations should be considered vulnerable unless the corresponding security fix has been applied.

TeamCity Cloud customers do not need to perform manual updates for this vulnerability.

Security Impact

A compromised build environment can affect the confidentiality and integrity of software development operations.

Depending on the permissions assigned to build agents and the configuration of deployment pipelines, potential consequences include:

  • Exposure of source code and proprietary software.
  • Theft of API tokens and authentication credentials.
  • Unauthorized access to build environment variables.
  • Manipulation of compilation and testing results.
  • Modification of software packages and container images.
  • Introduction of malicious dependencies.
  • Compromise of deployment credentials.
  • Distribution of unauthorized software modifications.
  • Further compromise of connected development infrastructure.

The vulnerability does not directly establish arbitrary command execution on the TeamCity server itself. However, compromised build artifacts may introduce malicious code into subsequent build and deployment operations.

Software Supply Chain Risks

CI/CD platforms occupy a privileged position within modern software infrastructure.

Build systems frequently interact with source code repositories, package registries, container registries, cloud platforms, and production servers.

A security incident involving a build agent may therefore affect systems beyond the original TeamCity installation.

Organizations distributing software to customers should pay particular attention to artifact integrity, release signing, and the security of automated deployment processes.

Exploitation Status

The vulnerability was responsibly reported to JetBrains on November 24, 2026.

As of December 3, 2026, JetBrains has reported no evidence of active exploitation.

Nevertheless, the critical severity of the vulnerability and the absence of authentication requirements make publicly accessible TeamCity installations a priority for remediation.

Checking the Installed Version

Administrators can verify the installed TeamCity version through the web administration interface.

For containerized deployments, review the currently deployed images:

docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}'

For Docker Compose deployments:

docker compose images

The configured image tag alone may not establish whether an independently installed security patch plugin is present.

Administrators should verify both the running TeamCity version and the installed security patches.

Update Recommendations

We strongly recommend that customers running TeamCity on their virtual or dedicated servers immediately install the available security updates.

Updating TeamCity

Use the appropriate update procedure for your deployment environment.

  1. Create a complete backup of the TeamCity Data Directory and database.
  2. Download a corrected TeamCity release from the official JetBrains website.
  3. Review the upgrade requirements and plugin compatibility.
  4. Stop the TeamCity server during a scheduled maintenance window.
  5. Perform the upgrade according to the official documentation.
  6. Start the server and verify the installed version.
  7. Verify build agent connectivity and pipeline functionality.

Update the TeamCity server image in your Compose configuration to a corrected release.

For example:

image: jetbrains/teamcity-server:2026.3

Download the updated image and recreate the corresponding service:

docker compose pull
docker compose up -d
docker compose ps

Review the application startup logs:

docker compose logs --tail=100

Preserve existing persistent volumes, database configuration, and application data when upgrading containerized installations.

Important: Create a complete backup before upgrading. Verify compatibility with your existing TeamCity configuration, database, build agents, and installed plugins.

Security Patch Without Server Restart

JetBrains has released a dedicated security patch plugin for administrators who cannot immediately upgrade or restart their TeamCity server.

The plugin is available for TeamCity 2021.2 and later.

Administrators should obtain the plugin exclusively through official JetBrains distribution channels and follow the installation instructions provided in the security advisory.

After installation, verify that the plugin is active and that the server remains operational.

Older installations that do not support the security patch plugin should be upgraded to a supported release.

Temporary Mitigation

If an immediate update or security patch installation is not possible, administrators should restrict access to build agent communication endpoints.

JetBrains recommends limiting access to /app/agents and its subpaths to trusted build agent IP addresses.

The allowlist should include legitimate cloud-based agents and any NAT gateways used by those agents.

Restricting Network Access

Additional protective measures include:

  • Restricting TeamCity access to trusted networks.
  • Placing administrative and build infrastructure behind a VPN.
  • Applying network-level access restrictions.
  • Separating build infrastructure from public-facing services.
  • Restricting unnecessary outbound network connections.
  • Limiting access to production deployment credentials.

Ensure that network restrictions do not interrupt legitimate build agent communication.

Warning: Network access restrictions reduce exposure but do not correct the underlying authentication vulnerability. Installing the official security update or security patch plugin remains necessary.

Detection and Investigation

Administrators should review potentially affected TeamCity installations for unauthorized activity.

Potential indicators include:

  • Unexpected build agent registrations.
  • Unrecognized build agent IP addresses.
  • Unexpected agent disconnections or replacements.
  • Unauthorized changes to build configurations.
  • Unexpected modifications to build artifacts.
  • Unrecognized software package releases.
  • Suspicious access to source code repositories.
  • Unexpected use of deployment credentials.
  • Unusual outbound network activity.

Reviewing TeamCity Logs

For standard installations, TeamCity server logs are typically available in the logs directory within the TeamCity installation directory.

Administrators should review server and authentication logs alongside build execution records and reverse proxy access logs.

For containerized installations, application logs can also be reviewed using Docker Compose:

docker compose logs --since 168h

The absence of suspicious log entries does not establish that an installation has not been compromised.

Incident Response

If unauthorized build agent activity is identified, administrators should isolate the affected infrastructure and preserve relevant logs and build records.

Potentially affected credentials may include:

  • Git repository access tokens.
  • SSH private keys.
  • Cloud infrastructure credentials.
  • Container registry credentials.
  • Package repository authentication tokens.
  • Production deployment credentials.
  • Software signing credentials.

Investigate the integrity of software artifacts generated during the suspected compromise period.

Where necessary, revoke affected credentials, rebuild software using trusted infrastructure, and replace potentially compromised artifacts.

Security Recommendations

Considering the critical severity of CVE-2026-136858, administrators should prioritize the following actions:

  • Update TeamCity to a corrected release.
  • Apply the official security patch plugin if an immediate upgrade is not possible.
  • Restrict build agent communication to trusted networks.
  • Review authorized build agents and their configurations.
  • Audit build execution records and software artifacts.
  • Enforce least-privilege access to development infrastructure.
  • Protect sensitive credentials used by automated pipelines.
  • Separate build environments from production infrastructure.
  • Implement independent software artifact verification.
  • Maintain regular backups of TeamCity configuration and databases.
  • Monitor development infrastructure for unauthorized activity.

Installing security updates prevents exploitation of the documented vulnerability but does not restore the integrity of previously compromised software artifacts or revoke exposed credentials.

Organizations operating self-hosted TeamCity infrastructure should treat this vulnerability as an urgent security issue and apply the available security fixes without delay.

authentication bypass patching supplychain teamcity

SAP Confirms Cyberattack Amid Source Code Theft Claims

SAP has confirmed a cybersecurity incident following reports of unauthorized access to its GitHub environment. Attackers reportedly used stolen employee authentication tokens to copy and modify source code, raising potential software supply chain security concerns. SAP has found no evidence of unauthorized access to customer business data.

Read more

Critical vBulletin Flaw Enables Remote Code Execution

A critical vulnerability in vBulletin, dubbed vBulletin2Shell, allows unauthenticated attackers to execute arbitrary commands on vulnerable forum servers. The flaw carries a CVSS score of 9.8, and a public proof-of-concept exploit is available. Administrators are strongly advised to install the latest security updates immediately.

Read more