Skip to content
TrustList
Security advisories

TeamCity flaw lets attackers pose as build agents without logging in

Editorial

By TrustList Editorial

CVE-2026-136858, rated 9.1, affects every TeamCity On-Premises version. Fixes are in 2026.1.7, 2026.2.3 and 2026.3, and a patch plugin covers servers from 2021.2 that cannot be upgraded.

About TeamCity flaw lets attackers pose as build agents without logging in

TeamCity flaw lets attackers pose as build agents without logging in

2 December 2026: JetBrains has fixed a critical flaw in TeamCity On-Premises that lets an attacker who can reach the server over HTTP(S) take the place of an existing, authorised build agent without any TeamCity account. From there the attacker can intercept the builds sent to that agent, read the secrets passed to it, and falsify build results or publish tampered artifacts. Every On-Premises version is affected.

The flaw is CVE-2026-136858. The CVE record JetBrains filed scores it 9.1 out of 10 (critical) and describes it as an authentication bypass during agent registration. Fixed releases are 2026.1.7, 2026.2.3 and 2026.3. TeamCity Cloud has already been corrected, and JetBrains says it found no sign that any Cloud environment was exploited.

Why a build server is a bigger prize than it looks

A build agent receives whatever a build needs to run: repository credentials, signing keys, cloud deployment tokens and registry passwords. An attacker who displaces a real agent receives them too. JetBrains spells out the further risk: downstream builds that consume tampered artifacts "could execute attacker-supplied code", which turns one exposed CI server into a route into the software a company ships to its own customers.

At publication JetBrains said it was not aware of active exploitation, and CISA's assessment on the CVE record lists exploitation as none. The flaw was not in CISA's Known Exploited Vulnerabilities catalogue in its 3 December release. A researcher, Jiawei Guo, reported it privately on 24 November, eight days before the fix.

Three ways to close it

  1. Upgrade to 2026.1.7, 2026.2.3 or 2026.3, by download or through TeamCity's automatic update.
  2. Install the security patch plugin, released for TeamCity 2021.2 and later. It fixes only this flaw and installs without restarting the server.
  3. Check the automatic patch setting. From 2024.03, TeamCity downloads available patches and can notify administrators; from 2026.2.2, choosing "Install automatically" under Administration, Updates installs them without a person stepping in. Servers on 2026.2.2 or later with that setting on should pick up this patch by themselves.

JetBrains also suggests allowing requests to /app/agents and its subpaths only from the addresses where real agents connect, including the outbound addresses of cloud agents and NAT gateways, and keeping the server off the open internet behind a VPN.

Checking whether anyone tried

JetBrains gives a log check. Search teamcity-server.log for lines saying an agent registered "of the existing agent, but different authorization token" followed by a token value. A line with a non-empty token may mean someone tried to take over an agent; lines with an empty token are normal. Where one turns up, compare the agent's hostname and source address with what you expect, review the builds it ran around that time, rotate every credential those builds used, and treat their artifacts as untrusted until checked.

TeamCity is made by JetBrains, which we list among DevOps companies; our continuous integration software ranking covers the tools teams compare it with. An earlier TeamCity flaw, CVE-2026-63077, was flagged by CISA as used in ransomware campaigns, which is why exposed TeamCity servers are worth patching first.

Sources

Categories & features

TrustList Weekly

The week in software and IT, in one email

The news that matters to buyers, new rankings and our own research. Every Thursday, free, and easy to leave.

We will email you to confirm. Unsubscribe with one click in any issue. Privacy policy

You may be interested in