JetBrains TeamCity On-Premises (all versions before 2025.11.7 and 2026.1.3)
TeamCity is a continuous integration and delivery server made by JetBrains — software used by development teams to automatically build, test, and deploy code.
Root Cause
The flaw sits in the agent polling protocol, a communication channel normally used by build agents (automated workers) to check in with the TeamCity server. The server failed to properly enforce authentication checks on this channel, meaning an attacker can send requests through it as if they were a legitimate agent and reach privileged functionality they should never be able to access. Think of it like a staff entrance with a broken lock — the front desk checks every visitor, but this side door waves anyone through.
Attack Vector
An attacker with HTTP or HTTPS access to the TeamCity server sends crafted requests through the agent polling endpoint, bypassing authentication entirely. Once past that check, they can issue operating system commands that run with the same permissions as the TeamCity server process itself — which in many deployments means access to stored credentials, build configurations, source code, and deployment pipelines. No user interaction and no existing account is required.
Detection Notes
- Review TeamCity server logs for unexpected or unauthenticated requests to agent polling endpoints, particularly from unfamiliar IP addresses.
- Check for unexpected outbound connections from the TeamCity host, especially to unusual destinations.
- Audit recently modified build configurations, stored credentials, or administrator accounts for changes you did not make.
Recommended Actions
- Upgrade to TeamCity On-Premises version 2025.11.7 or 2026.1.3 immediately.
- If upgrading now is not possible, install JetBrains' security patch plugin (available for versions 2017.1 and above) as an interim measure.
- Place the TeamCity server behind a VPN or restrict network access so it is not reachable from the public internet.

