DEV Community

SloaneWinterbourne
SloaneWinterbourne

Posted on

Hardening the TeamCity Control Plane After CVE-2026-63077

Hardening the TeamCity Control Plane After CVE-2026-63077

The incident pressure

CVE-2026-63077 turned a routine build-agent connection into an unauthenticated command execution path. JetBrains rates the On-Premises flaw CVSS 3.1 9.8 and CWE-502. The exploit uses the agent polling protocol, registers a client, and sends a crafted serialized response to reach unsafe XStream deserialization. Commands run with the TeamCity server process privileges.

What the fix does

TeamCity 2025.11.7 and 2026.1.3 contain the fix. A security patch plugin covers TeamCity 2017.1 and later when an upgrade cannot happen immediately. The plugin addresses this vulnerability, not every security issue in an old release. The correct state is a confirmed patched build or an active plugin, followed by a dated upgrade plan.

TeamCity Cloud customers were not required to take action. On-Premises owners need to verify their own process, including containers, snapshots, standby servers, and hosts managed by another team.

Attack mechanism

The vulnerable service must be reachable over HTTP(S). An unauthenticated client registers through the agent polling protocol, then submits a crafted serialized response. Unsafe XStream deserialization runs commands with the TeamCity server process privileges. The vulnerability is CWE-502, and its CVSS 3.1 score is 9.8.

Exposure and exploitation

CISA added the issue to KEV on August 5, 2026 after active exploitation was reported. The frozen ZoomEye evidence records 2,484 matches for app="JetBrains TeamCity" and 0 for the CVE filter. The larger figure is a product inventory, not a confirmed vulnerable count.

Impact

The attacker can read TeamCity data and configuration, stored credentials, and source-control material. Build results or artifacts can be changed before downstream systems consume them. If the server process has deployment access, the incident can reach production infrastructure as well as the CI host.

Hardening checklist

Confirm the running build and plugin state. Restrict agent polling endpoints to approved source networks. Place internet-facing servers behind a VPN, allowlist, or reverse proxy. Use mutual TLS when the service must remain externally reachable. Run TeamCity and agents on separate hosts, give the service account only the access it needs, and keep deployment secrets outside the server process.

Review server and proxy logs for anonymous registration followed by XStream conversion errors. On a patched system, ForbiddenClassException without a conversion exception can indicate a blocked attempt. Record and remove unexpected scan- agents. Look for new plugins, modified jobs, suspicious child processes, unexpected outbound connections, and changed artifacts.

Rotation is part of hardening. If an unpatched server was reachable, rotate credentials available to TeamCity and affected builds, then rebuild suspicious outputs from a clean commit. Monitor registration patterns and build-control changes after recovery. A patch ends this vulnerability's direct window, but it does not repair a compromised identity, altered pipeline, or untrusted artifact that was created before the fix.

References

Top comments (0)