← Blog
TeamCityCI/CD SecuritySupply ChainAuthentication Bypass

TeamCity CVE-2026-136858: unauthenticated build-agent takeover

CVE-2026-136858 lets an unauthenticated attacker impersonate a TeamCity build agent and steal CI/CD secrets. CVSS 9.1, no public PoC yet — patch now.

Zero Hunt Research··6 min read

Published by Zero Hunt, an autonomous AI red team on an on-premise appliance running private AI: automated penetration testing for networks and infrastructure, black-box or gray-box, with a human approving every step that matters.

On 2 December 2026 JetBrains disclosed CVE-2026-136858, a critical authentication-bypass in TeamCity On-Premises. During agent registration, an unauthenticated attacker who can reach the server over HTTP(S) can impersonate an existing authorized build agent — no login, no credentials, no exploit chain beyond the registration handshake. CVSS 9.1. Every On-Premises version before 2026.3, 2026.2.3 and 2026.1.7 is affected; TeamCity Cloud is not.

Developing story — first published 08:50 CET (07:50 UTC), 3 December 2026. Updated as the vendor and CISA publish more.

At a glance

CVE CVE-2026-136858
Product / affected versions TeamCity On-Premises before 2026.3 · 2026.2.3 · 2026.1.7; TeamCity Cloud not affected
Fixed in 2026.3 · 2026.2.3 · 2026.1.7 (released December 2, 2026); security-patch plugin for 2021.2+ applies without a server restart
CVSS 9.1 critical · CVSS 3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N · scored by JetBrains (CNA); CWE-639
Exploited in the wild No — JetBrains reports no evidence of exploitation; CISA SSVC exploitation: none as of 2026-12-02
CISA KEV Not listed (catalog version 2026.11.30)
Public PoC None confirmed as of 2026-12-03; a Sploitus entry reproduces only the CVE text
Official advisory JetBrains security — issues fixed

What CVE-2026-136858 actually does

This is not the TeamCity bug from the summer. CVE-2026-63077 was a pre-auth deserialization RCE on the server process. CVE-2026-136858 is quieter and, for a lot of estates, more dangerous to miss: it is an authorization-bypass through a user-controlled key (CWE-639) in the path that registers a build agent.

TeamCity agents are the machines that actually run your build steps — compile, test, sign, publish. The server hands each agent the jobs and the secrets those jobs need: VCS deploy keys, cloud credentials, registry publish tokens, signing material. Registration is how an agent proves to the server that it is the agent it claims to be. The flaw lets an attacker complete that handshake as a valid, already-authorized agent without authenticating. As JetBrains put it, a remote actor can "displace a valid build agent with no login."

From the attacker's chair the payoff is direct:

  • Intercept jobs. Build steps that would have run on your agent now run on theirs. That is code execution inside your pipeline, on work your developers trust by default.
  • Steal build secrets. Anything the server would have passed to the real agent — tokens, keys, connection strings — is passed to the impersonator instead.
  • Poison artifacts. A hijacked agent can emit a tampered binary that your own signing and publishing steps then bless and ship downstream.

The CVSS vector reads C:H/I:H/A:N: high confidentiality and integrity impact, no availability impact. That last letter is the tell. This is not a bug that knocks your build farm over so you notice. It is a bug that lets someone quietly become one of your agents and read and rewrite what flows through it.

Who is exposed, and how to check your version

Every TeamCity On-Premises instance below the three fixed builds is affected, regardless of how it is otherwise configured. The exposure that matters is who can reach the agent-registration endpoint over HTTP(S) — any server reachable from an attacker-controllable network is in scope.

# Version from the REST API (may require auth on hardened installs)
curl -sk -H "Accept: application/json" https://<teamcity-host>/app/rest/server

# Authoritative: Administration → Diagnostics shows the exact build number.
# The startup log carries it too:
grep -m1 -iE 'TeamCity server version|build [0-9]{5}' \
  "<TeamCity Server Home>/logs/teamcity-startup.log"

If the build predates your branch's fix (2026.1.7 on the 2026.1 line, 2026.2.3 on 2026.2, or 2026.3), treat the server as vulnerable.

Remediation

1. Am I affected? Any On-Premises build below 2026.3 / 2026.2.3 / 2026.1.7. TeamCity Cloud needs no action — JetBrains patched it.

2. Patch — exact fixed versions. Upgrade to the fix on your branch: 2026.1.7, 2026.2.3, or 2026.3. If you cannot take the restart today, JetBrains ships a security-patch plugin for TeamCity 2021.2 and later that applies the fix without restarting the server — install it now and schedule the full upgrade behind it.

3. Can't patch now? Reduce reachability. The attack needs network access to the agent-registration path. Put the TeamCity server behind a reverse proxy or network policy that only admits the hosts you actually run agents on; drop registration traffic from everything else. This is a compensating control, not a fix — the plugin or upgrade is still required.

4. Hunt for a rogue or impersonated agent. No vendor IOCs exist for this CVE yet, so hunt on behavior, not signatures:

  • In Agents → Connected / Disconnected, look for an agent that registered from an unexpected IP or hostname, a duplicate of an existing agent name, or an agent that flipped authorization state around the disclosure window.
  • Correlate agent registrations and job pickups against your known agent inventory (MITRE ATT&CK T1078 Valid Accounts — the impersonated agent is a valid identity).
  • Review recent builds for steps that pulled secrets, then check whether the executing agent matches the machine you expected (groundwork for T1195.002 Compromise Software Supply Chain).

5. Eradicate and verify — after patching, not before. If you find a suspect agent, assume every secret that agent could have received is burned. Rotate VCS deploy keys, cloud credentials, registry tokens and artifact-signing keys (T1552 Unsecured Credentials is the whole point of the attack). Then verify the integrity of artifacts built in the exposure window — a patch closes the door, it does not revoke what was taken or rebuild what was touched.

What is not known yet

  • Exploitation. JetBrains reports no evidence of in-the-wild attacks and CISA's SSVC decision records exploitation: none as of 2 December. That is the current window, not a guarantee — CISA also marks the bug automatable: yes.
  • Public PoC. None is confirmed. The one Sploitus listing contains only the CVE description. Treat any "CVE-2026-136858 exploit" appearing on GitHub as unverified and potentially hostile.
  • Discovery credit and full technical detail. JetBrains has not named a reporter, and the registration-bypass mechanics are not public. Expect a technical write-up to raise the exploitation risk sharply once one lands — which is exactly the window to be patched in.
  • KEV status. Not listed as of catalog 2026.11.30. If that changes, BOD 26-04 risk-based tiers will set the federal deadline.

Where this leaves a defender

The honest question this CVE asks is not "did they get root on the server" — there is no server RCE here. It is the one JetBrains' own impact statement implies: is one of my build agents already someone else's? An impersonated agent is a legitimate identity doing illegitimate work, which is precisely the case an endpoint agent on the build host cannot see — it may be the very thing that was displaced. On the wire it is not invisible. A build agent registering from a host that has never spoken that protocol before, or an agent that suddenly ships build secrets to a destination it has never contacted, is an anomaly in shape and timing. Zero Hunt's traffic analysis runs a deep-learning model with four parallel inference heads on the appliance GPU, scoring suspicious traffic and attack type against billions of PCAP sequences locally, in real time — catching the rogue registration and the secret egress while they happen, not in the next morning's SIEM digest.

Detection is the second half; the first is not waiting to be the test case. Zero Hunt is an autonomous AI red team that runs on-premise on its own private models, with a human in the loop for every action that matters. Pointed at your CI/CD surface black-box — no credentials, no source — its swarm fingerprints the exact TeamCity build and proves whether the agent-registration path actually reaches agent takeover in your environment, before a public PoC does it for real. That is the gap an annual, scoped penetration test rarely touches: the build server is Tier-0 infrastructure that almost nobody governs like Tier-0, and the only part of this timeline you control is the part before exploitation starts.

Every vulnerability CISA lists as exploited, with federal due dates: CISA KEV tracker →

Patching one CVE at a time? A CTEM program validates which exposures are actually exploitable before the next advisory: what CTEM is →

Is this exploitable in your environment?

Zero Hunt answers that on your own network: an autonomous AI red team on an on-premise appliance, running on private AI, black-box or gray-box, with a human approving every step that matters. Proof of what is exploitable, the fix, and signed evidence — your data stays on your network.