Critical JetBrains TeamCity Flaw Exploited as Build Agents Hijacked

JetBrains TeamCity On-Premises users are facing active attempts to exploit a severe bug known as CVE-2026-136858, just one day after its public disclosure. This security flaw allows attackers with no TeamCity account to pretend they are legitimate build agents. Detection came from watchTowr, a security firm, which observed attempts on December 3, 2026. Although tests took place via decoy systems, there’s no confirmed breach of real production environments so far.

How the Vulnerability Works

The vulnerability enables an attacker who can reach an unpatched TeamCity server over HTTP or HTTPS to impersonate an agent that the server trusts. Doing so lets them take over jobs meant for the legitimate agent and access sensitive credentials like access tokens used in those jobs.

Beyond credential theft, the consequences include altered test results and tampered build artifacts. If those artifacts are reused in future builds, it opens the door to attacker-injected code running downstream. This issue specifically attacks the trust layer between server and agent—distinct from earlier bugs like an authentication bypass flagged by U.S. authorities in August.

What’s Affected & How to Respond

All On-Premises versions of TeamCity released before JetBrains’ fix are vulnerable. Cloud versions are not impacted, and no signs of active exploitation have been detected there. The vulnerability was disclosed on December 2, 2026, after private reporting on November 24. The exploit attempts started immediately after it went public. Users must upgrade to TeamCity versions 2026.1.7, 2026.2.3, or 2026.3. For those unable to update, installing JetBrains’ patch plugin on any version from 2021.2 onward can help—though a server restart may not be required in all situations.

For servers already on version 2026.2.2 or later, admins should not assume the patch plugin is enabled—it must be verified explicitly. The fix is focused only on this vulnerability.

Investigations & Mitigations

Admins are urged to prioritize systems visible on the internet for immediate action. One way to check for compromise: examine teamcity-server.log for entries that reference “of the existing agent, but different authorization token.” Having a non-empty token there may signal an attempted takeover, though it doesn’t prove full breach.

If suspicious entries are found, administrators should correlate timestamps with agent connection history, hostnames, source IPs, and any builds or artifacts linked to those sessions. In the event of confirmed or suspected compromise, preserve logs, apply the patch, rotate credentials used in affected jobs, and treat artifacts from dubious builds as untrusted until verified. Other defenses include network restrictions to trusted zones and separating build agents from the TeamCity server host.

This is not the first time TeamCity had to deal with post-disclosure exploitation; a previous bug was probed by attackers within minutes after proof-of-concept code went public. In this case, the swift exploitation after disclosure underscores how quickly attackers move when vulnerabilities are revealed.

What this means: This flaw represents a serious shift in how trust is broken between core continuous integration components. As more CI/CD pipelines go hybrid or stay on-premises, vulnerabilities like these threaten integrity and supply chain security. Organizations must not only patch quickly but also build resilience: monitor build agent activity, enforce cryptographic authentication, and assume artifacts could be poisoned. What to watch next is whether there’s any evidence that artifacts were modified and deployed to production, and whether other tools with similar server-agent trust models have comparable flaws.