
Hackers are targeting self-hosted JetBrains TeamCity servers by exploiting a critical authentication bypass vulnerability, tracked as CVE-2026-136858, to hijack trusted build agents. Offensive security firm watchTowr said it observed exploitation attempts just one day after the vulnerability was disclosed.
“The watchTowr team is rapidly responding to CVE-2026-136858, a recently disclosed authentication bypass vulnerability affecting JetBrains TeamCity, across our client base,” the security company said.
“Just one day after our initial disclosure, watchTowr Intel is already observing unchecked exploit attempts to take over our build agents,” the researchers added.
Attackers can impersonate trusted build agents
TeamCity On-Premises is the self-hosted version of JetBrains’ software build and release automation platform. Developers use it to compile code, run tests and automatically deploy software.
Build agents are worker applications that execute jobs assigned by a TeamCity server. CVE-2026-136858 allows an attacker to impersonate a worker that the server already trusts and accept jobs intended for that agent.
An exploit requires the attacker to guess the build agent’s ID. However, watchTowr said these IDs typically begin with “1” and are relatively easy to predict, so identifying an agent does not present a significant obstacle.
A successful attack could expose credentials passed to build jobs, allow an attacker to submit false build results or return modified output files. Those files could later execute attacker-supplied code when used in another build.
Updates and mitigations
In a December 2 bulletin, JetBrains “strongly recommended” that all TeamCity On-Premises users update to version 2026.1.7, 2026.2.3 or 2026.3, depending on their release branch. These versions address the vulnerability.
All TeamCity On-Premises versions released before those versions are affected.
JetBrains also provides security patch plugins for TeamCity 2021.2 and later. The plugins can be installed without restarting the server.
Beginning with version 2026.2.2, TeamCity can install patches without user intervention when automatic security patch installation is enabled.
TeamCity Cloud has already received the fix, so cloud customers do not need to take action.
Signs of a possible compromise
Although JetBrains’ bulletin says it has not observed active exploitation of the vulnerability, administrators should check for two signs of suspicious activity.
First, review teamcity-server.log for an existing-agent entry whose authentication token differs from the expected token. A non-empty token in the relevant log entry may also indicate an attempted takeover.
If such a token is found, JetBrains recommends reviewing the associated build, the agent’s connection history, the source IP address and the timestamp to determine whether the attempt succeeded.
Organizations that suspect exploitation should preserve logs and build results, patch affected servers, rotate credentials passed to potentially compromised builds and treat build artifacts as untrusted until they have been verified.
JetBrains also recommends restricting /app/agents and its subpaths to the source IP addresses expected for legitimate build agents.
Earlier TeamCity vulnerability targeted by ransomware operators
In September 2026, CISA warned federal agencies that ransomware operators were targeting another JetBrains TeamCity On-Premises vulnerability, CVE-2026-63077. That flaw allowed attackers to execute arbitrary operating-system commands on affected systems.
Source: www.bleepingcomputer.com











