JetBrains has patched a critical authentication bypass in TeamCity On-Premises, tracked as CVE-2026-136858 and rated CVSS 9.1. The flaw sits in the build agent registration handshake. It lets a remote, unauthenticated actor displace an authorized agent and take over its build channel.
JetBrains disclosed the issue on December 2, 2026. The fix ships in TeamCity 2026.3, 2026.2.3 and 2026.1.7. The weakness is mapped to CWE-639, Authorization Bypass Through User-Controlled Key. In that class, the server trusts an externally controllable identifier instead of verifying the caller’s entitlement to the object it references.
During registration, the TeamCity server binds an agent identity to an authorization token. Exploitation lets an attacker present the identity of an existing agent with a different token and displace the legitimate agent. The attacker needs no TeamCity user account.
Critical TeamCity CVE-2026-136858 Flaw
Network reachability to the server over HTTP or HTTPS is the only precondition. The Hacker News reports that all TeamCity On-Premises versions are affected. TeamCity Cloud is reportedly unaffected.
CI/CD pipeline impact and secret exposure
Once the attacker holds the agent’s channel, the server dispatches build jobs meant for the legitimate agent to the attacker’s host. JetBrains warns that this allows interception of builds, access to build secrets, and tampering with build results and artifacts.
Exposed material typically includes signing keys, cloud credentials, package registry tokens, and deployment secrets injected as build parameters.
The risk is larger than a single compromised host. An attacker could report fabricated build or test outcomes, or push tampered artifacts downstream.
That makes this a software supply chain vector. Similar CI/CD trust-boundary failures have recently drawn attention, including the RubyGems.org gem push RCE via YAML deserialization, where a publishing pipeline became the attack surface.
Affected builds and disclosure timeline
Security researcher Jiawei Guo reported the defect privately on November 24, 2026, under JetBrains’ Coordinated Disclosure Policy. The internal tracker reference is TW-105963. JetBrains says it knew of no active exploitation at the time of the advisory. Aggregators also list the issue as not exploited.
| Branch | Fixed build |
|---|---|
| 2026.1 | 2026.1.7 |
| 2026.2 | 2026.2.3 |
| 2026.3 | 2026.3 |
A security patch plugin is also available for servers as old as 2021.2. JetBrains patched 12 flaws across TeamCity, Ktor and Kotlin in the same disclosure cycle.
Detection
JetBrains gives a concrete detection artifact. Defenders should search teamcity-server.log for entries containing the text “of the existing agent, but different authorization token” followed by a token value. A non-empty token may indicate an attempted takeover of an existing build agent.
Teams should also correlate agent registration events with unexpected IP addresses, agent name collisions, and agents that suddenly appear disconnected or re-registered. Reviewing build history for unexpected artifact hashes completes the triage. Because the flaw requires no credentials, absence of failed logins proves nothing.
Mitigation
Upgrade to 2026.1.7, 2026.2.3 or 2026.3 immediately. Where an upgrade is not possible, apply the JetBrains security patch plugin. After patching, rotate every secret that passed through agents on exposed servers, and revoke and reissue agent authorization tokens.
Restrict TeamCity server exposure with network segmentation, so agent registration endpoints are reachable only from trusted build networks, VPN ranges or allowlisted hosts.
Add short-lived, scoped credentials with OIDC-style federation in place of long-lived secrets. Verify artifact provenance with signed attestations and reproducible build checks. Exposure of internet-facing management planes keeps recurring, as seen in the Red Hat OpenShift operator token privilege escalation case.
Adversaries increasingly pivot into build infrastructure because one compromised agent can multiply into many downstream victims. Regulators and customers now expect tamper-evident pipelines. Teams should also track underground exploit-primitive trading, since public CVE details often shorten the time to weaponization.
FAQ
Is CVE-2026-136858 exploitable without credentials? Yes, an unauthenticated attacker with HTTP(S) access to the server can exploit it.
Which TeamCity versions are fixed? TeamCity 2026.3, 2026.2.3 and 2026.1.7 contain the fix.
Is TeamCity Cloud affected? Reporting indicates only TeamCity On-Premises is affected.
How can defenders spot takeover attempts? Search teamcity-server.log for the “different authorization token” entry with a non-empty token.
Sources
JetBrains Blog: Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858)