Critical JetBrains TeamCity flaw exploited to hijack build agents

Hackers are targeting JetBrains TeamCity On-Premises in attacks that exploit a critical vulnerability tracked as CVE-2026-136858 to hijack build agents.
The activity was observed just one day after the public disclosure, according to data from offensive security company watchTowr.“The watchTowr team is rapidly reacting to CVE-2026-136858 across our client base, a recently disclosed Authentication Bypass vulnerability affecting JetBrains TeamCity,” the security company warned.“Only one day after initial disclosure, watchTowr Intel is already observing attempted in-the-wild exploitation, trying to take over build agents.”The researchers explained that exploitation requires guessing a build agent ID, although this is not a real obstacle because these IDs typically start at "1" and are relatively easy to predict.
TeamCity On-Premises is the self-hosted edition of JetBrains’ platform for software build and release automation, used by developers to compile code, run tests, and automatically deploy software.A build agent is the worker software that runs the job the TeamCity server assigns it. CVE-2026-136858 allows an attacker to impersonate a worker the server already trusts and receive jobs intended for it.
This could expose credentials passed to those jobs or let an attacker report false build results or return modified output files that could execute attacker-supplied code when used in later builds.
JetBrains published a bulletin on December 2, “strongly recommending” that all users update to versions 2026.1.7, 2026.2.3, and 2026.3, which address the issue.
The flaw affects all TeamCity On-Premises versions before those versions.
JetBrains also offers a security patch plugin for 2021.2 and later that can be installed without restarting the server.
On 2026.2.2 and later, TeamCity can install the patch unattended if automatic security patch installation is enabled.
This summary is from Bleeping Computer, published Dec 4, 2026. NewsFusion links to the original reporting and groups related coverage.





