Skip to content

TeamCity agent-polling protocol authority validation

CISA added CVE-2026-63077 to the Known Exploited Vulnerabilities catalog on August 5, 2026. JetBrains describes the affected TeamCity boundary as unauthenticated remote code execution through the agent polling protocol before 2026.1.3 and 2025.11.7; the public record classifies the flaw as deserialization of untrusted data. This yields a durable CI-control-plane test: determine whether an unauthenticated network peer can reach object decoding on a server endpoint intended for build-agent coordination.

Primary records:

Route evidence first; inert lab decoding only

Do not send serialized exploit objects to an operational TeamCity server. On customer-approved production surfaces, stop at ownership, version, protocol reachability, and authentication-gating evidence. Exercise decoding only in a disposable TeamCity lab with a patched deserializer that accepts an inert marker and denies class loading, process creation, file access, and outbound network access.

1. Establish scope and product identity

Record every approved TeamCity authority before probing:

Field Evidence
authority scheme, host, port, reverse-proxy path
deployment on-premises server, test replica, or disposable lab
version authenticated About page, package/image metadata, or administrator-provided build number
agent boundary agent listener/polling authority and whether a proxy or load balancer fronts it
network position internet-facing, partner/VPN-facing, internal, or isolated agent segment
approved depth passive/version only, route/auth check, or lab deserializer instrumentation

Do not infer TeamCity from a generic login page or favicon alone. Preserve at least two product signals, such as an administrator-confirmed asset plus TeamCity-specific headers, HTML, package metadata, or server logs.

Treat the fixed-version branches exactly as published. A 2025.11.x deployment must be compared with 2025.11.7; a 2026.1.x deployment must be compared with 2026.1.3. Do not flatten these into a guessed single semantic-version range, and do not infer that an undisclosed older or future branch is affected without a primary vendor statement.

2. Discover the polling boundary without guessing exploit routes

The public records identify the agent polling protocol, not a request path or wire payload. Do not invent an endpoint from third-party exploit snippets. Derive the real route and authority from one of these approved sources:

  1. a disposable agent registering with a disposable server while an intercepting recorder captures destination authority and request metadata;
  2. TeamCity server access logs for a synthetic lab agent;
  3. reverse-proxy configuration supplied by the owner;
  4. authenticated server or agent diagnostics with secrets redacted; or
  5. source/patch review for the exact deployed branch.

Record method, normalized path, content type, framing, connection reuse, and the first server handler reached. Redact agent tokens, cookies, authorization fields, build metadata, repository URLs, and environment variables. Do not replay a captured production agent credential.

This discovery step should produce a route map, not a payload:

external authority
  -> reverse proxy / load balancer
  -> TeamCity agent-polling route
  -> authentication or agent-identity gate
  -> parser / object decoder
  -> dispatch handler

3. Build an authentication and parser-reachability matrix

Use an empty request or a protocol-valid, non-serialized control generated by the same disposable lab agent. Compare:

Case Credential state Expected evidence
ordinary negative route none normal not-found behavior
polling route none rejected before parser/decoder
polling route malformed synthetic credential same pre-parser rejection
polling route disposable valid lab agent normal polling response
fixed lab build none rejection before decoder

Capture status, response length/hash, redirect chain, connection behavior, server request ID, and the earliest handler observed in lab instrumentation. Avoid high-rate scanning: one negative control and one polling control per approved authority are enough to establish gating.

A route returning a TeamCity-shaped error is not by itself deserialization reachability. The relevant question is whether an unauthenticated request crosses the identity gate and reaches the decoder.

4. Instrument a denied deserializer in a disposable lab

Only when the assessment authorizes exploit-path validation, clone the affected architecture into an isolated lab with no production projects, agents, credentials, plugins, or network access. Patch or hook immediately before object decoding and replace the real decoder with a recorder that logs:

  • request authentication state;
  • route and protocol message type;
  • content length and framing;
  • selected decoder or serializer family;
  • requested top-level type identifier, if one exists;
  • whether dispatch would proceed; and
  • a random inert marker hash.

The fixture must deny class resolution, constructors, callbacks, filesystem operations, process APIs, reflection-driven side effects, and egress. Generate the marker locally; do not use a gadget chain or a public RCE payload.

Run affected and fixed builds with the same recorder and controls. A bounded positive is:

unauthenticated synthetic poll
  -> real polling route selected
  -> authentication gate not enforced before decoding
  -> patched decoder receives inert marker
  -> fixed build rejects before that recorder

That proves the exposed deserialization boundary without code execution. If the affected build rejects before the recorder, do not report RCE based only on its version or the KEV entry.

5. Separate protocol exposure from application impact

Report the strongest observed boundary and no more:

Evidence Supported claim
affected version only potentially affected deployment
polling route reachable without authentication exposed agent control-plane surface
unauthenticated request reaches patched decoder unauthenticated deserialization boundary
inert marker selects a denied type/dispatch path attacker influence over decoder/dispatch selection
vendor advisory plus KEV status public exploitation context, not local compromise proof

Do not claim local compromise, build takeover, source-code access, secret theft, or arbitrary command execution unless separately proven under explicit lab authorization. KEV inclusion establishes known exploitation of the vulnerability in the wild; it does not prove that the assessed server was exploited.

October 6 follow-up: unvalidated Git submodule URL → server-side local repository read (CVE-2026-106219 / GHSA-j4qw-7f5f-rqvw, medium, TeamCity <2026.2.1)

TeamCity accepted Git submodule URLs without validation, letting a configured VCS root make the server read local repositories on the server, a project-write permission converts into cross-project source disclosure (every other repo checked out on that agent/server is a readable target).

  • Durable axis: Git URL fields are SSRF with a file:///local-path dialect. The git submodule add /srv/teamcity/.git or ext:: shapes are the same config-supplied-URL → subprocess family as the Gitea picture-claim bare-http.Get leg and the June 17 repo-trust rules: when a build platform runs real git on server-supplied config, test file://, relative, and ext:: transport URLs against a marker repo outside your project, and check what a failed clone's error text reflects (path disclosure oracle on shared agents).
  • CI recon note for authorized engagements: a TeamCity/Bamboo/GitLab runner with per-project VCS configuration is a lateral source-read pivot, enumerate every URL-consuming field (repo URL, submodule URL, credentials-plugin refs, patch URLs) with a local-path canary before assuming network egress is the only outbound channel.
  • Same wave's TeamCity Kotlin DSL sandbox escape (CVE-2026-106218 / GHSA-p8v4-6cfg-7hh7, 8.8, <2026.1.3 / 2025.11.7): DSL config code reaching server-side RCE confirms this page's standing claim that build configuration code is a code-execution surface with server identity, if you can edit Kotlin DSL config (a low-tier grant), assume server-level code execution until proven otherwise; DSL sandbox escapes recur across versions (adjacent to CVE-2026-63077's agent-side surface above). Prove only in a lab TeamCity with an inert marker (touch in a temp dir), never on a shared CI.

November 18 follow-up: coordinated 21-GHSA wave, four 9.9 RCE legs from VCS argument injection, build-attribute injection, and three path-traversal RCEs (CVE-2026-132231 through CVE-2026-132251, before 2026.1.3 / 2025.11.7)

JetBrains shipped a coordinated TeamCity advisory set the same minute as the F5 wave. The operator-relevant legs: argument injection in Mercurial VCS root settings (f25v/132234, 9.9), argument injection in Perforce settings (gq2h/132232, 9.9), best-fit character mapping in Perforce settings (f7xv/132231, 9.9), build attribute injection (wgw9/132233, 9.9), three path-traversal RCEs in the external artifact cache (6pjc/132237), pipeline YAML file path (6xjf/132236), and project import archives (97pr/132235); XXE via .NET build-step auto-discovery (m8jh/132241) and Maven settings file upload (x9wx/132240); password parameter values disclosed to project viewers (w6c9/132238); project viewers using stored Kubernetes credentials (xhmg/132239); build process details leaked via agent stacktraces (j2m9/132247); privesc to sysadmin after disabling per-project permissions (cq9g/132246); viewers changing project IDs (gvc6/132248); restricted access tokens minting new tokens / Basic-auth privesc (pv5q/132250, rm2g/132251); a stored-XSS cluster on Disk Usage, Build Time, Docker Container Info, Promote dialog, and Shared Resources pages (x8vc/132244, 5r4q/132243, 2hvw/132242, f9hh/132249).

  • VCS root fields are subprocess argument surfaces, not just URL surfaces. This page's October 6 lesson (Git URL = SSRF with file:///ext:: dialect) extends: Mercurial and Perforce root settings reach hg/p4 command lines, and the advisories say plain argument injection gets RCE. On any CI platform where you can edit VCS roots (a project-write grant, per this page's standing claim), test option-consuming fields for --prefixed payload injection (--config, --debug, p4 -p, hg --config extensions.x=...) and delimiter/= shapes, in a lab with inert markers. Shared-agent error text is the read-only oracle on authorized targets.
  • "Best-fit character mapping" is its own bug class worth a probe family. f7xv means input normalization (Unicode best-fit folding to lookalike ASCII) reassembles a token that validators saw in a different representation: fullwidth/homoglate the discriminating characters in every CI field that has a deny-list or prefix check (., :, -, U+2044, ligatures) before trusting the filter. Same genealogy as this wiki's canonicalization-differentials page, pointed at build configuration.
  • Viewer role is a credential-use surface on integrations. xhmg (viewers invoke stored Kubernetes credentials) and w6c9 (viewers read password parameter values) say: enumerate every integration that stores server-side credentials (K8s, Docker, cloud connectors) and test each at the lowest role you hold, expecting read/use to be gated separately from view. Agent stacktrace disclosure (j2m9) adds the passive channel: trigger a failing build property that throws and read the server-side object graph from the agent-visible trace.
  • Token lifecycle again (cross-ref the F5 page same day): a restricted access token that mints new tokens or escalates via Basic auth (pv5q, rm2g) means token capability is not fixed at mint time. On any CI/token service, take your lowest-priv token and attempt re-mint, capability upgrade, and Basic-auth use against admin-scoped routes.
  • Validation boundaries: lab TeamCity only for injection/traversal/RCE (inert touch markers, disposable VCS roots); authorized targets limited to role-matrix reads (does the viewer endpoint return 200 with the secret field present, redact value in evidence) and version/patch-level evidence (/internal/buildResults footer or REST version endpoint). No XSS payloads in shared CI dialogs, no real credential use.

Evidence bundle

Preserve:

TeamCity authority and deployment class:
Version source and branch comparison:
Polling route derivation source:
Reverse-proxy-to-origin mapping:
Unauthenticated control response hash:
Disposable-agent control response hash:
Earliest handler reached:
Affected-build recorder result:
Fixed-build recorder result:
Denied sink list:
Observed claim:
Excluded stronger claims:

Keep credentials and CI metadata out of screenshots and reports. Hash synthetic bodies where full content is unnecessary, and include the exact lab build/image digest so the parser result can be replayed.