"Only one day after initial disclosure, watchTowr Intel is already observing attempted in-the-wild exploitation, trying to take over build agents,” the offensive security company watchTowr reported, flagging rapid attacker activity against a recently disclosed TeamCity vulnerability.
watchTowr: attempted hijacks observed immediately after disclosure
watchTowr told clients it was “rapidly reacting to CVE-2026-136858,” and that its telemetry showed attempts to exploit the bug in the wild just one day after the vulnerability was publicly disclosed. The company characterized the activity as attempts to “take over build agents,” signaling that attackers moved quickly to probe and exploit TeamCity On‑Premises installations.
CVE-2026-136858: how attackers can impersonate trusted build agents
The flaw, tracked as CVE-2026-136858, is described as an Authentication Bypass in JetBrains TeamCity On‑Premises. TeamCity On‑Premises is the self‑hosted edition of JetBrains’ platform for build and release automation, and a build agent is the worker software that runs jobs the TeamCity server assigns.
The vulnerability allows an attacker to impersonate a worker the server already trusts and receive jobs intended for that agent. WatchTowr’s researchers noted that exploitation requires guessing a build agent ID, but added this is not a real obstacle because agent IDs “typically start at '1' and are relatively easy to predict.”
Once an attacker receives jobs meant for a legitimate agent, the vendor warns this could expose credentials passed to those jobs, allow an attacker to report false build results, or let modified output files—returned by the attacker—execute attacker‑supplied code when used in later builds.

Nobody's watching your logs at 2 AM.
Full SOC coverage without building one. Nubivance deploys and manages Rapid7 InsightIDR and MDR for organizations that need detection and response, not another dashboard.
Get coverageJetBrains: patches, automatic installs, and cloud status
JetBrains published a security bulletin on December 2 and “strongly recommend[ed]” that all users update to versions 2026.1.7, 2026.2.3, and 2026.3, which address the issue. The vendor says the flaw affects all TeamCity On‑Premises versions before those releases.
For customers on older supported branches, JetBrains 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. JetBrains also reported that TeamCity Cloud has already received the fix, so cloud customers “need to take no action.”
Signs of suspicious activity and vendor response recommendations
The vendor’s bulletin notes that JetBrains has observed no active exploitation of the flaw, but it lists two specific log‑file signals administrators should check for. First, administrators should look for teamcity‑server.log entries containing the line ‘of the existing agent, but different authorization token <token>.’ Second, the presence of a non‑empty token in that context may indicate a takeover attempt.
If such a token is found, JetBrains recommends checking the agent’s connection history, source IP, and the builds that ran around the timestamp to determine whether an attempt succeeded. When exploitation is suspected, the vendor advises preserving logs and build results, patching the server, rotating credentials passed to potentially affected builds, and treating their artifacts as untrusted until they are verified.
As an additional mitigation, JetBrains suggests restricting access to ‘/app/agents’ and its subpaths to the expected source IPs of legitimate build agents.
What this means for technologists, TeamCity Cloud customers, and federal agencies
- Technologists and security teams: The combination of an authentication‑bypass flaw and the ease of enumerating agent IDs concentrates risk in CI/CD pipelines — teams should prioritize the specified version upgrades or the security plugin and inspect the log signals JetBrains named.
- TeamCity Cloud customers: JetBrains states TeamCity Cloud has already been patched, so cloud customers need not take action for this specific flaw; on‑premises users remain the primary audience for the vendor's recommended mitigations.
- Federal IT teams and agencies: The bulletin arrives after a September 2026 notice from CISA that ransomware operators had targeted a different TeamCity On‑Premises vulnerability, CVE-2026-63077, to execute arbitrary OS commands. That earlier advisory underscores why rapidly applying the JetBrains fixes and following prescribed detection steps is particularly important for environments handling sensitive or mission‑critical builds.
Two facts stand out: attackers were quick to probe the surface exposed by CVE-2026-136858, according to watchTowr, and JetBrains has published targeted fixes and detection guidance while noting it has not observed active exploitation. For teams running TeamCity On‑Premises, the record in the bulletin is clear — patch or apply the vendor’s mitigations, and follow the log checks and incident handling steps if suspicious tokens appear in server logs.
Read the original report: https://www.bleepingcomputer.com/news/security/critical-jetbrains-teamcity-flaw-exploited-to-hijack-build-agents/




