CyberSecurityNews

Hackers Actively Exploit Critical JetBrains TeamCity Flaw to Hijack Build Agents


Attackers began targeting a critical vulnerability in JetBrains TeamCity On-Premises just one day after its public disclosure. The issue, tracked as CVE-2026-136858, allows an attacker without a TeamCity account to impersonate an authorized build agent.

Security firm watchTowr detected exploitation attempts on December 3, 2026, through its Attacker Eye network of decoy systems. Those observations confirm that attackers are trying to hijack build agents, but do not establish that any production environment was compromised.

JetBrains disclosed the vulnerability on December 2 and said it had not seen evidence of active exploitation at the time. Security researcher Jiawei Guo reported it privately on November 24.

The company says all TeamCity On-Premises versions released before the fixes are affected. JetBrains already applied corrective measures to TeamCity Cloud and found no evidence that the vulnerability was exploited there. Cloud customers do not need to take action.

TeamCity Vulnerability Exploited

Build agents are workers that compile source code, run tests, and package software. An attacker who can reach an unpatched TeamCity server over HTTP or HTTPS can pose as an agent the server already trusts.

If the impersonation succeeds, the attacker can displace the legitimate agent and receive its assigned jobs. Credentials passed to those jobs, such as access tokens, could then be exposed.

The consequences go beyond stolen credentials. An attacker could falsify test results or publish modified build artifacts, the files produced by a build. If a later build uses one of those files, it could run attacker-supplied code.

Unlike the separate TeamCity vulnerability CISA flagged in August, this issue targets trust between the server and its build agents.

Administrators should upgrade to TeamCity 2026.1.7, 2026.2.3, or 2026.3. Teams that cannot upgrade immediately can install JetBrains’ security patch plugin on version 2021.2 or later without restarting the server.

On version 2026.2.2 or later, administrators should verify that the patch is installed rather than assume automatic installation is enabled. The plugin addresses this vulnerability only.

The brief window between disclosure and attack attempts is not new for TeamCity. Cyber Security News previously covered exploitation attempts against a different TeamCity authentication bypass that began within 22 minutes of public proof-of-concept code appearing.

For the current vulnerability, organizations should prioritize internet-facing servers and check whether suspicious agent activity occurred before patching.

The JetBrains security advisory recommends searching teamcity-server.log for entries containing of the existing agent, but different authorization token. A non-empty token can indicate a takeover attempt, but it does not prove success.

Empty tokens are expected. For suspicious entries, use the timestamp to review the agent’s connection history, verify its hostname and source IP address, and check the builds and artifacts associated with that connection.

If compromise is suspected, preserve the relevant logs and build results, patch the server, and rotate credentials passed to potentially affected jobs.

Treat their artifacts as untrusted until verified, and trace where they were deployed or used by other builds. JetBrains also recommends restricting TeamCity access to trusted networks and running build agents on separate hosts from the server. Installing the fix closes the vulnerability, but it does not tell administrators whether earlier builds were altered.

Provide SOC With the Latest Threat Context from 16K Sources to Quickly Stop Incidents



Source link