TeamCity Auth Bypass Exploited a Day After Disclosure; Update

Attackers began probing JetBrains TeamCity CVE-2026-136858 a day after disclosure to hijack build agents. Update to 2026.1.7, 2026.2.3 or 2026.3.

Attackers began trying to exploit a critical authentication bypass in JetBrains TeamCity On-Premises, tracked as CVE-2026-136858, about a day after it was disclosed. The flaw lets an unauthenticated attacker pose as a build agent the server already trusts, which can expose build secrets and let them tamper with the software a build produces. Fixed versions are available.

What happened

JetBrains published its security bulletin on December 2, 2026. The bug carries a CVSS score of 9.1 and affects every TeamCity On-Premises release older than 2026.1.7, 2026.2.3 and 2026.3. On the day of disclosure, JetBrains said it knew of no exploitation and shared indicators of compromise for administrators to check.

That changed quickly. Security firm watchTowr reported that its honeypot network saw attempted exploitation around a day later, after the flaw was reverse engineered and reproduced. Its head of threat intelligence, Jake Knott, told SecurityWeek that the attacker tried to guess agent ID numbers, a prerequisite for the attack. BleepingComputer notes these IDs usually start at 1, so guessing them is not much of a barrier. Knott also said the same attacker had earlier exploited a different flaw, against a Palo Alto PAN-OS device in the same honeypot network, which suggests it goes after high-impact bugs.

Why it matters

TeamCity is a self-hosted CI/CD server that assigns jobs to build agents, stores the credentials builds need, and holds the files they produce. According to watchTowr, the weakness sits in the check performed when an agent registers with the server. An attacker who can reach the server over HTTP(S) needs no account, only a valid agent ID. Once they take over an agent, they can capture the builds assigned to it, including credentials and other secrets, and report false results or return modified artifacts. Downstream builds that consume those artifacts could then run attacker-supplied code.

TeamCity Cloud has already been patched, so only self-hosted servers need action. watchTowr advises prioritizing servers reachable from the internet, then those whose builds handle credentials. BleepingComputer also points out that CISA has previously warned that ransomware operators targeted another TeamCity flaw, CVE-2026-63077, which shows how attractive these servers are.

What to do

  • Preserve server logs and build results before changing anything.
  • Search teamcity-server.log for entries showing an existing agent connecting with a different authorization token. A non-empty token may indicate a takeover attempt. If you find one, review that agent’s connection history, source IP and nearby builds.
  • Update to 2026.1.7, 2026.2.3 or 2026.3. If you cannot upgrade, JetBrains offers a security patch plugin for TeamCity 2021.2 and later that installs without a restart. On 2026.2.2 and later, the patch can install unattended if automatic security patch installation is enabled.
  • Restrict /app/agents and its subpaths to the addresses your legitimate agents use. watchTowr notes this should include any cloud agent or NAT gateway addresses.
  • If you suspect exploitation, rotate credentials passed to potentially affected builds and treat their artifacts as untrusted until verified.
  • Our analysis: a CI server that holds production secrets should not be openly exposed. Both JetBrains and watchTowr recommend limiting access to trusted networks or a VPN and running the server on a different host from its agents.

What we still do not know

The reported exploitation comes from watchTowr’s honeypots, and none of the sources we reviewed describe a confirmed compromise of a customer environment. The attacker has not been identified. At the time of watchTowr’s write-up, the flaw was not listed in CISA’s Known Exploited Vulnerabilities catalog. Details may change as JetBrains and researchers publish more.

Sources: SecurityWeek, Dec 4, 2026; BleepingComputer, Dec 4, 2026; watchTowr FAQ, Dec 4, 2026. JetBrains bulletin details are as relayed by these outlets (bulletin dated Dec 2, 2026).

Leave a Reply

Your email address will not be published. Required fields are marked *