CVE-2026-136858TeamCity agent registration lets an unauthenticated caller take over an authorized build agent
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/agentsand 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.logforof the existing agent, but different authorization tokenwith 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
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
Related identity CVEs
- CVE-2026-63077 · Related flawTeamCity agent-polling protocol authentication bypass to RCE
- CVE-2024-27198 · Related flawJetBrains TeamCity 2024 authentication bypass, admin access
- CVE-2023-42793 · Related flawJetBrains TeamCity 2023 authentication bypass to RCE
- CVE-2026-137843 · Same flaw class: broken authorizationZimbra's legacy delegation handler still grants loginAs, so mailbox access survives a password reset
- CVE-2026-84869 · Same flaw class: broken authorizationScreenConnect client runs transferred files without host confirmation
- CVE-2026-42016 · Same flaw class: broken authorizationJFrog Artifactory checks a token's signature and issuer but not its scope
In the news
News and analysis on Start with Identity that name CVE-2026-136858 or link this brief, newest first.
Related on Start with Identity
- BlogTeamCity flaw let unauthenticated attackers impersonate build agents and take their secrets
JetBrains fixed CVE-2026-136858 (CVSS 9.1), an authentication bypass in TeamCity On-Premises agent registration that lets anyone who can reach the server impers
- Blog24,650 exposed server management interfaces leak crackable password hashes before login
Firmware security firm Lava found that 67 percent of 36,872 internet-exposed Baseboard Management Controllers hand over IPMI authentication hashes before a logi
- Blog26,400 working cloud and AI credentials found in public Gitee repositories
A researcher scanned 7.25 million public repositories on Gitee, China's largest Git platform, and found 26,400 unique credentials that still worked, led by Alib
- CVEA second critical vCenter directory service authentication bypass, five days after the first
Broadcom's VMSA-2026-0011 fixes another unauthenticated authentication bypass in the VMware Directory Service (vmdir), the identity store behind vSphere SSO. CV
- CVEBarracuda Email Security Gateway lets unauthenticated attackers import a configuration backup
An authentication bypass in Barracuda Email Security Gateway before 9.4.0.030 let an unauthenticated attacker restore a crafted backup and rewrite the appliance
- CVECheck Point Remote Access VPN lets attackers in without a password over IKEv1
A certificate validation logic flaw in Check Point Remote Access and Mobile Access over deprecated IKEv1 let attackers open a VPN session without a valid passwo