Critical CVSS 9.1 Security news

TeamCity: unauthenticated attackers can impersonate build agents (CVE-2026-136858)

On 2 December 2026 JetBrains fixed a critical flaw in TeamCity On-Premises. An attacker who can reach the server over HTTP(S) can impersonate an existing authorized build agent without any account, intercept builds along with their secrets, and tamper with build results and artifacts. The fix is in versions 2026.1.7, 2026.2.3 and 2026.3, and a security patch plugin covers older servers from 2021.2. JetBrains is not aware of exploitation so far.

Kyberkit editorial team · · event date · reading time 4 minutes · For admins and analysts

Critical: TeamCity, CVE-2026-136858, CVSS 9.1

Key points

  • On 2 December 2026 JetBrains fixed CVE-2026-136858 (CVSS 9.1), an authentication bypass during build agent registration in TeamCity On-Premises. The attacker needs no account, only network access to the server.
  • Whoever impersonates an authorized agent receives its builds: they can see secrets passed to those builds and tamper with results and artifacts, a textbook route into a software supply chain attack.
  • The fix is in 2026.1.7, 2026.2.3 and 2026.3. For servers on 2021.2 or later JetBrains released a security patch plugin that installs without a restart. TeamCity Cloud has already been fixed.
  • JetBrains knew of no exploitation as of 2 December. But an earlier TeamCity authentication bypass, CVE-2024-27198, has been in CISA's Known Exploited Vulnerabilities (KEV) catalog since 7 March 2024.

Vulnerabilities: CVE-2026-136858

What happened

TeamCity is JetBrains' continuous integration and delivery (CI/CD) server. It drives build agents, the machines that compile code, run tests and package artifacts, and hands them secrets along the way: access to repositories, package registries, cloud accounts and signing keys.

On 2 December 2026 JetBrains released fixed versions 2026.1.7, 2026.2.3 and 2026.3 and published a bulletin on the critical flaw CVE-2026-136858 (CVSS 3.1 9.1). An attacker with no TeamCity account who can reach the server over HTTP(S) can impersonate an existing authorized build agent. Security researcher Jiawei Guo reported the issue privately on 24 November 2026.

Technical details

  • Component: build agent registration on the TeamCity On-Premises server.
  • Weakness: authentication bypass (CWE-639, authorization bypass through a user-controlled key, per NVD).
  • Conditions: network access to the server, no login and no user interaction (vector AV:N/AC:L/PR:N/UI:N). CISA's SSVC assessment rates the attack as automatable.
  • Impact: according to JetBrains, the attacker takes over builds assigned to the agent, gets access to their secrets and can tamper with build results and artifacts. The score assigns no availability impact (A:N).

In practice this is a supply chain risk: a tampered artifact goes through your own deployment pipeline and reaches your customers. JetBrains has not disclosed exactly how registration is bypassed, and as a matter of principle we don't publish exploitation details.

How an attacker abuses the TeamCity agent registration flaw1. Attacker reaches the TeamCity server over HTTP(S); 2. During registration, poses as an existing authorized agent; 3. Server assigns builds to it, secrets included; 4. Attacker steals secrets or tampers with artifacts1Attacker reaches the TeamCity serverover HTTP(S)2During registration, poses as anexisting authorized agent3Server assigns builds to it, secretsincluded4Attacker steals secrets or tamperswith artifacts
Attack flow as described by JetBrains (simplified)

Who is affected

  • All TeamCity On-Premises versions before 2026.1.7, 2026.2.3 and 2026.3 (JetBrains, NVD).
  • Internet-facing servers are most at risk, but an attacker inside the network is enough.
  • TeamCity Cloud is not affected: JetBrains has fixed it and found no evidence of exploitation.

How to tell if you were compromised

JetBrains published one specific sign. Search teamcity-server.log for the message

of the existing agent, but different authorization token

According to JetBrains an empty token value ("") is expected and can be ignored. A non-empty token may indicate an attempted agent takeover. The vendor has not published other indicators.

We'd also check for agent registrations from unexpected IP addresses, agents that suddenly connect from a new location, and artifact changes that don't match commits. You can pull addresses out of a log export with our IOC extractor, which runs entirely in your browser.

What to do

  1. Upgrade to TeamCity 2026.1.7, 2026.2.3 or 2026.3 (released 2 December 2026).
  2. If you can't upgrade right away, install the security patch plugin for TeamCity 2021.2 and later. It installs without a restart but fixes only this flaw. From 2026.2.2 the patch installs itself if Updates → Security patches → Install automatically is enabled.
  3. Restrict access at your reverse proxy: allow /app/agents and its subpaths only from the addresses your agents connect from, including cloud agents and NAT gateways (JetBrains' recommendation).
  4. Search teamcity-server.log for the message above.
  5. If you suspect exploitation, rotate credentials passed to potentially affected builds and treat their artifacts as untrusted until verified (JetBrains). For next steps, see our guide to a server compromised through an exploited flaw; we also covered CI secret theft in our report on WFX Loot.

Timeline

Timeline of TeamCity flaw CVE-2026-13685824 Nov 2026: Jiawei Guo reports the flaw to JetBrains; 25 Nov 2026: CVE-2026-136858 reserved; 2 Dec 2026: Fixed versions 2026.1.7, 2026.2.3 and 2026.3, bulletin and NVD record24 Nov 2026Jiawei Guo reports the flawto JetBrains25 Nov 2026CVE-2026-136858 reserved2 Dec 2026Fixed versions 2026.1.7,2026.2.3 and 2026.3, bulletinand NVD record
From report to fix (JetBrains and NVD data)

Updates

  • 3 December 2026 – first version of this article.

FAQ

We can't upgrade right away. What should we do?

Install JetBrains' security patch plugin (TeamCity 2021.2 and later, no restart needed). It fixes only this flaw. On top of that, allow the /app/agents path at your reverse proxy only from your build agents' addresses.

We have automatic security patch installation turned on. Do we need to do anything?

Since version 2026.2.2 TeamCity can install security patches on its own (Updates → Security patches → Install automatically). JetBrains says the fix should then be installed automatically. Check the Updates page to confirm.

We use TeamCity Cloud. Are we affected?

No. JetBrains has fixed the cloud service and found no evidence of exploitation there. Cloud customers don't need to do anything.

Should we rotate secrets after upgrading?

JetBrains recommends it only if you suspect exploitation: rotate credentials passed to potentially affected builds and treat their artifacts as untrusted until verified. If your server was reachable from the internet, we think checking the log is always worth it.

Sources

  1. JetBrains – Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858) (2 Dec 2026)
  2. NVD – CVE-2026-136858
  3. JetBrains – TeamCity 2026.3 Release Notes
  4. JetBrains – TeamCity 2026.2.3 Release Notes
  5. JetBrains – Fixed security issues
  6. NVD – CVE-2024-27198 (CISA KEV 7 Mar 2024)

Spotted a mistake? Let us know and we will correct it openly.