What do hackers already know about your business? Get Your Free Report
TeamCity CVE-2026-136858 Lets Attackers Hijack Build Agents
6 Mins Read
Summarize with:

TeamCity CVE-2026-136858 Lets Attackers Hijack Build Agents

JetBrains has patched CVE-2026-136858, a critical authentication bypass that lets unauthenticated attackers impersonate build agents in TeamCity On-Premises and steal the secrets their builds carry.

All On-Premises releases before the fixed versions are affected. JetBrains reports no exploitation, but attempts have already been observed, so internet-facing servers should be patched now.

What Is CVE-2026-136858?

CVE-2026-136858 (CVSS 9.1) is an authorization bypass through a user-controlled key (CWE-639) in the way TeamCity On-Premises handles build agents. Network access to the server over HTTP(S) is all an attacker needs to pose as an agent that is already registered. No TeamCity account is required.

SOCRadar Vulnerability Intelligence card for CVE-2026-136858
SOCRadar Vulnerability Intelligence card for CVE-2026-136858

JetBrains has not published the vulnerable function or request sequence. Its security bulletin explains the risk in terms of outcome: once a real agent is pushed aside, the jobs meant for it go to the attacker instead. Security researcher Jiawei Guo reported the issue privately on November 24, 2026, and JetBrains disclosed it on December 2.

The direct result is agent impersonation, not code execution on the TeamCity server itself. The danger comes from what a build agent is trusted to receive and produce.

Which TeamCity Versions Are Affected by CVE-2026-136858?

DeploymentStatusAction
TeamCity On-Premises, 2026.1.x before 2026.1.7VulnerableUpdate to 2026.1.7
TeamCity On-Premises, 2026.2.x before 2026.2.3VulnerableUpdate to 2026.2.3
TeamCity On-Premises, older releasesVulnerableUpdate to 2026.3, or install the security patch plugin (2021.2 and later)
TeamCity CloudFixed by JetBrainsNo action needed

For servers that cannot be upgraded right away, JetBrains offers a security patch plugin for TeamCity 2021.2 and later. The plugin fixes only CVE-2026-136858, so it is a stopgap rather than a replacement for a full upgrade. JetBrains says it found no evidence that any TeamCity Cloud environment was exploited.

Why Does Build Agent Impersonation Expose CI/CD Secrets?

Build agents are where TeamCity hands over the material needed to compile, test and ship software. A hijacked agent slot gives the attacker a seat in that flow. JetBrains lists three main outcomes:

  • Secret exposure: Jobs routed to a fake agent can hand over deployment keys, cloud tokens, registry passwords and similar credentials
  • Falsified results: The attacker can report fake build or test outcomes back to the server
  • Tampered artifacts: Malicious files can be published as build output, and any pipeline that pulls them in could end up running the attacker’s code

The last point turns a server-side flaw into a supply chain problem. A poisoned artifact can travel from the build system into internal deployments or customer-facing releases, well beyond the TeamCity instance where the attack started.

Is CVE-2026-136858 Being Exploited in the Wild?

When JetBrains disclosed the flaw on December 2, 2026, it said it had no evidence of active exploitation. watchTowr then said in a post on X that it was “already observing attempted exploitation.” The firm also noted that the attack depends on guessing the ID of an active build agent, which is a weak barrier because agent IDs start at 1.

Attempts are not the same as confirmed compromises, and no successful attacks or victims have been publicly reported as of December 4, 2026. No independently verified public proof of concept (PoC) has been identified either. Even so, the speed of the attempts fits TeamCity’s history.

Attackers have repeatedly gone after TeamCity On-Premises soon after disclosure. CVE-2023-42793 and CVE-2024-27198, two earlier authentication bypass flaws, drew attacks from nation-state groups and cybercriminals alike. More recently, CVE-2026-63077 (CVSS 9.8), an unauthenticated flaw patched in late July 2026, was added to CISA’s Known Exploited Vulnerabilities (KEV) catalog about a week after disclosure.

How Can SOCRadar Help Teams Protect TeamCity Build Pipelines?

Build servers hold the keys to deployment pipelines, and attackers are already testing this flaw. Teams need to know where TeamCity is exposed and whether its secrets have leaked:

  • Autonomous Exposure Management: Discovers internet-facing TeamCity servers across your external attack surface so unpatched instances can be prioritized first
  • Vulnerability Intelligence: Tracks CVE-2026-136858 and CVE-2026-87887 and flags changes in their exploitation status, including any move from attempted to confirmed attacks
  • Dark Web Monitoring: Alerts when cloud tokens, registry passwords or other company credentials surface on Dark Web forums and leak channels
SOCRadar’s Vulnerability Intelligence: Latest CVEs and exploit trends
SOCRadar’s Vulnerability Intelligence: Latest CVEs and exploit trends

As attempts against TeamCity grow, SOCRadar keeps exposure and exploitation signals in one view so teams can close the gap before a build agent is taken over.

How Can Defenders Mitigate CVE-2026-136858 Before Patching?

Upgrading to 2026.1.7, 2026.2.3 or 2026.3 is the fix. Where that cannot happen immediately, JetBrains recommends two interim measures:

  • Install the security patch plugin on TeamCity 2021.2 or later
  • Allow traffic to /app/agents and every path beneath it only from the IP addresses your real agents use, including cloud agent egress addresses and NAT gateways, enforced at a reverse proxy or another path-aware control

The path restriction narrows who can talk to the agent endpoints, but it does not remove the flaw. Servers that stay reachable from the internet should be upgraded first.

How Do You Check a TeamCity Server for Agent Hijacking?

JetBrains points defenders to teamcity-server.log. Search it for entries showing an already-registered agent presenting a new authorization token:

  • Non-empty token: May indicate a takeover attempt and should be investigated
  • Empty token: Expected behavior and not a sign of attack on its own

If the logs point to a takeover, treat every secret exposed to builds on that agent as compromised. Rotate deployment keys, cloud tokens and registry credentials, review recent build results and artifacts from the affected agent, and check whether downstream builds consumed them. JetBrains has published further steps for verifying a successful attempt in its bulletin. A log review that finds nothing does not prove the server was untouched, especially if logs have rotated since the flaw became public.

Acronis Backup Plugin Flaw CVE-2026-87887 Exploited in Attacks

Another recent vulnerability also deserves attention: CVE-2026-87887 (CVSS 7.5), a flaw in the Acronis Backup plugin for cPanel and Web Host Manager (WHM). CISA added it to its Known Exploited Vulnerabilities catalog on December 3, 2026, after confirmed exploitation. The incorrect authorization flaw (CWE-863) also affects the Acronis Backup extension for Plesk on Linux and can expose sensitive data to a remote attacker who has no credentials.

Acronis’s security advisory reports “limited, targeted attacks” against cPanel and WHM deployments. Beyond that, Acronis has not said who is behind the activity, how many customers were hit or which indicators of compromise (IOCs) defenders should look for, and no Plesk exploitation has been confirmed. It is the second exploited flaw in these integrations this year, after CVE-2026-87886 (CVSS 7.8), a local privilege escalation bug added to KEV on September 16. Covered federal agencies must fix CVE-2026-87887 by December 17, 2026.

Fixed builds are available for most deployments:

  • cPanel and WHM 1.9.3 branch: Update to build 1.9.3.1031 (1.9.3 HF4)
  • cPanel and WHM 1.9.4 branch: No fixed build yet for versions up to 1.9.4.1022, so Acronis advises downgrading to the patched 1.9.3 build
  • Plesk extension: Update to build 1.8.12.659

Patching does not undo earlier tampering. Acronis recommends reviewing protection plans for edits nobody on the team made and looking in Backup Options for any pre- or post-backup command you do not recognize. Those commands execute on the server whenever a backup job runs, so a server with unexplained changes should be handled as potentially compromised.

Extended Threat Intelligence
Yağmur Ernalbant

Yağmur is a Senior Content Development Specialist at SOCRadar, covering both breaking cybersecurity news and the broader issues behind it. Through articles and regular Radar roundups, she tracks vulnerabilities, cybercrime, dark web activity, and other developments across the threat landscape.

Intelligence in your inbox every Thursday.

Join 30,000+ security professionals reading SOCRadar research.

Subscribe