TeamCity build-agent hijack attempts reported for CVE-2026-136858

If a self-hosted TeamCity server accepts connections from untrusted networks, check it now. An attacker who impersonates a build agent can get access to secrets passed to that agent or tamper with artifacts that later run in customer environments.

Four cabled server appliances, with one amber indicator among three teal indicators.

What changed on December 4–5

JetBrains disclosed CVE-2026-136858 on December 2, 2026. The Canadian Centre for Cyber Security cited in-the-wild reporting in AV26-1224 on December 4. Guyana’s national CIRT echoed it in ADV2026_799 on December 5. The original observer, watchTowr, describes attempts seen December 3. Successful compromise remains unverified. JetBrains reported no known active exploitation at publication. CISA’s December 2 assessment predates the observed attempts, and the CVE was absent from CISA KEV when checked December 5. There is no associated KEV federal deadline.

Who should act

JetBrains rates this Critical, 9.1 CVSS v3.1. It affects reachable TeamCity On-Premises servers running releases older than the applicable fix: 2026.1.x before 2026.1.7, 2026.2.x before 2026.2.3, and earlier release lines. 2026.3 contains the fix. An attacker needs HTTP(S) access and an existing authorized agent to impersonate. A TeamCity user account is unnecessary. JetBrains already applied corrective measures to TeamCity Cloud and says Cloud customers need take no action for this CVE.

What to do

Suggested MSP priority: urgent for installations reachable from untrusted networks or those that build and deploy artifacts across customers. The following sequence applies to affected self-hosted deployments.

  1. Inventory the TeamCity server version, HTTP(S) exposure, proxy and origin access, and expected build-agent egress addresses, including cloud agents and NAT gateways.
  2. Restrict the server to trusted networks. If needed, allow only expected agent addresses to reach /app/agents and its subpaths. Preserve relevant server logs and build results if you suspect exposure or compromise.
  3. Upgrade to 2026.1.7, 2026.2.3, 2026.3, or a supported later release containing the fix. If an upgrade must wait, JetBrains offers a no-restart plugin for 2021.2 and later that addresses this CVE only. On 2026.2.2 or later, verify automatic installation if enabled. Earlier than 2021.2 requires an upgrade for the vendor fix.
  4. Verify the running build or installed patch, expected agent registrations, denied untrusted access, and a trusted test build. Review teamcity-server.log for an existing agent presenting a different, non-empty authorization token. Compare the timing, agent hostname and IP, and the affected builds and artifacts. If compromise is suspected, rotate credentials passed to those builds and trace or quarantine suspect artifacts until verified.

Last verified December 5, 2026

Sources

Share this article