Impersonating build agents: TeamCity CVE-2026-136858 and the CI trust boundary
Impersonating the Build Agent: TeamCity CVE-2026-136858 and CI Trust Boundaries
JetBrains disclosed on December 2 an authentication bypass vulnerability in TeamCity On-Premises, CVE-2026-136858 (CVSS v3.1 9.1): an unauthenticated attacker who can reach the server over HTTP(S) and knows or guesses a valid agent identifier can impersonate an authorized build agent, intercept builds routed to it, obtain credentials issued by the server, and tamper with build results and artifacts that may be executed downstream. All On-Premises versions are affected except 2026.3, 2026.2.3 and later 2026.2.x, and 2026.1.7 and later 2026.1.x; all versions 2025.11 and earlier are affected; TeamCity Cloud is not affected. After analyzing the patch plugin, Ostorlab concluded that the root cause is that the server did not bind the declared agent identity to the authorization token stored for that agent, and that the fix adds a filter performing a constant-time comparison.