Threat actors have started exploiting a critical authentication bypass in JetBrains TeamCity On-Premises, the self-hosted edition of the company’s software build and release automation platform. The flaw, tracked as CVE-2026-136858 and carrying a CVSS score of 9.1, was observed in active attacks roughly one day after public disclosure, according to offensive security firm watchTowr.

How the attack works

The vulnerability lets an attacker impersonate a build agent that the TeamCity server already trusts. Build agents are the worker processes that execute jobs assigned by the server. Exploitation requires guessing a build agent ID, which watchTowr described as a minor obstacle because these IDs typically begin at “1” and are easy to predict.

Once impersonation succeeds, an attacker can:

  • Receive build jobs intended for the legitimate agent and access credentials or secrets passed to them.
  • Report false build results.
  • Return modified output artifacts that could execute attacker-supplied code in downstream builds that consume them.

JetBrains says the flaw can be exploited by an unauthenticated attacker over HTTP or HTTPS.

Affected versions and fixes

All TeamCity On-Premises versions before 2026.1.7, 2026.2.3, and 2026.3 are affected. JetBrains strongly recommends updating to one of those releases. For customers on TeamCity 2021.2 and later who cannot upgrade immediately, the company provides a security patch plugin that installs without a server restart. TeamCity Cloud has already been patched, so cloud customers need no action.

Detection and response

JetBrains has not observed active exploitation in its own telemetry, but its bulletin lists indicators administrators should check. These include a specific line in the teamcity-server.log referencing an existing agent with a different authorization token, and the presence of a non-empty token that may signal a takeover attempt. If either is found, administrators should review the agent’s connection history, source IP, and builds around the relevant timestamp.

If compromise is suspected, JetBrains advises preserving logs and build results, patching the server, rotating credentials exposed to potentially affected builds, and treating build artifacts as untrusted until verified. As an interim control, the company recommends restricting requests to /app/agents and its subpaths to the expected source IP addresses of legitimate build agents.

Context

This is not the first TeamCity On-Premises issue under active attack this year. In September, CISA warned federal agencies that ransomware operators were targeting a separate TeamCity On-Premises vulnerability, CVE-2026-63077, to execute arbitrary operating system commands. Because CI/CD servers hold credentials and control software delivery, organizations should prioritize internet-facing TeamCity instances and those whose builds handle secrets.