Skip to content
Start with Identity
Identity CVE · Other

CVE-2026-136858TeamCity agent registration lets an unauthenticated caller take over an authorized build agent

SWI rating: criticalCVSS 9.1
Product: JetBrains TeamCity On-PremisesVendor: JetBrainsCWE-639Disclosed: 2026-12-02Status: PatchedNVD ↗

What broke

JetBrains disclosed CVE-2026-136858 on December 2, 2026: an "authentication bypass during agent registration" in TeamCity On-Premises that "allowed takeover of authorized build agents." JetBrains says an attacker who can reach the server over HTTP(S) "does not need a TeamCity user account" and can impersonate an existing authorized agent, intercept the builds assigned to it, read the credentials passed to those builds and publish tampered artifacts. All on-premises versions are affected. The JetBrains CNA scores it CVSS 3.1 9.1 and lists CWE-639 (authorization bypass through a user-controlled key); NVD had not added its own analysis when this brief was written.

Fixes ship in TeamCity 2026.1.7, 2026.2.3 and 2026.3, and a security patch plugin covers 2021.2 and later without a server restart. TeamCity Cloud was fixed by JetBrains. Researcher Jiawei Guo reported the bug on November 24. JetBrains says it is not aware of active exploitation; The Hacker News quotes watchTowr as already seeing attempts that guess low, long-lived agent IDs, which start at 1.

Why it matters

A build agent is a machine identity that the server trusts with deploy keys, cloud credentials and signing secrets for every job it runs. Here the server let a stranger claim that identity by naming an agent it already knew, so the attacker becomes the agent and receives its secrets without stealing any token. This is the fourth TeamCity authentication flaw in this catalog after CVE-2023-42793, CVE-2024-27198 and CVE-2026-63077, all three of which reached CISA KEV.

What to do

  • Update to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin. On 2026.2.2 and later, set security patches to install automatically.
  • At the reverse proxy, allow /app/agents and its subpaths only from the addresses your agents use, including cloud agent egress and NAT gateways.
  • Keep the TeamCity server off the internet; JetBrains recommends a VPN or other network controls for remote agents.

After you patch

  • Search teamcity-server.log for of the existing agent, but different authorization token with a non-empty token. Entries with an empty token are expected.
  • For any hit, check the agent's source IP and hostname at that time against builds and artifacts it produced, rotate every credential passed to those builds, and treat their artifacts as untrusted until verified.

Sources

Learn the flaw class · CWE-639

What this class of flaw is: broken authorization

The user is who they claim to be, but the product lets them do more than they should: a missing or wrong permission check, a role assigned too broadly, or an object reachable by changing an ID. In identity products this often means a low-privilege account can grant itself admin or read other tenants.

Key terms: Authorization (AuthZ) · Privilege Escalation · Least Privilege

In the news

News and analysis on Start with Identity that name CVE-2026-136858 or link this brief, newest first.

Last reviewed By SWI Community TeamSuggest a correctionHow we research
Know a primary source we should add, or a patch status that has changed? Email community@startwithidentity.com. See all briefs in the identity CVE catalog, or volunteer as a CVE Analyst.
Compiled from vendor advisories, NVD, CISA KEV, and public research. CVSS figures can disagree across NVD and the CNA. Confirm affected versions against the vendor advisory before you patch. Independent, community-driven analysis. See the disclaimer.