# TeamCity flaw CVE-2026-136858 saw exploit attempts in a day

> Attackers tried to exploit a critical TeamCity On-Premises auth bypass a day after disclosure. Patch to 2026.1.7, 2026.2.3 or 2026.3.

- Published: 2026-12-05
- Topic: [Security](https://futuretechnologyhq.com/topic/security/)
- URL: https://futuretechnologyhq.com/article/teamcity-flaw-cve-2026-136858-saw-exploit-attempts-in-a-day/
- Publisher: [Future Technology HQ](https://futuretechnologyhq.com/), free to read. Quote as "Future Technology HQ" with a link to the article.

## Key points

- Exploitation attempts against CVE-2026-136858 were seen one day after disclosure, per watchTowr
- Update TeamCity On-Premises to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin
- Check teamcity-server.log for the existing-agent, different-authorisation-token line and rotate credentials if a takeover is suspected
- Restrict /app/agents and its subpaths to the IP addresses of legitimate build agents

## Article

JetBrains TeamCity On-Premises, the self-hosted continuous integration and delivery (CI/CD) server that compiles, tests and deploys code, has a critical authentication bypass, CVE-2026-136858, and attackers have already tried to exploit it. Offensive security firm watchTowr says it saw attempted in-the-wild exploitation one day after public disclosure, aimed at taking over build agents.

TeamCity is a CI/CD server: the software that builds, tests, packages and often deploys an organisation's code whenever a developer pushes a change. It comes as a JetBrains-hosted service (TeamCity Cloud) and as a self-hosted product (TeamCity On-Premises). An installation has a central server that coordinates work and build agents, the separate machines that run the builds. Before an agent can receive work, an administrator usually has to authorise it, and agents talk to the server over HTTP(S) using the agent polling protocol.

## What the flaw allows

JetBrains has not detailed the root cause of the vulnerability. It says the flaw can be exploited by attackers who can reach the TeamCity server over HTTP(S), and that they do not need a TeamCity user account to do so.

Successful exploitation lets an attacker impersonate a worker the server already trusts and receive jobs intended for it. Along with each build, the server hands the agent whatever it needs to complete the job, which often includes credentials such as deployment keys, cloud tokens and package registry passwords. That makes an authorised agent a very attractive thing to impersonate. Per JetBrains, exploitation could displace a legitimate build agent and intercept builds assigned to it, exposing credentials and other secrets passed to the agent.

An attacker could also report false build results or return modified output files that run attacker-supplied code when used in later builds. Help Net Security describes this as opening the door to a software supply chain attack.

watchTowr says exploitation requires guessing a build agent ID, but that is not a real obstacle: the IDs typically start at "1" and are relatively easy to predict.

## The response so far

The flaw was privately reported by security researcher Jiawei Guo on 24 November 2026. JetBrains published a bulletin on 2 December "strongly recommending" that all users update to versions 2026.1.7, 2026.2.3 and 2026.3. All TeamCity On-Premises versions before those are affected.

For teams that cannot restart the server straight away, JetBrains offers a security patch plugin for TeamCity 2021.2 and later. It can be installed without restarting the server and fixes only this vulnerability. On 2026.2.2 and later, TeamCity can install the patch unattended if automatic security patch installation is enabled.

TeamCity Cloud has already received the fix, so cloud customers need to take no action. JetBrains says it found no evidence that any TeamCity Cloud environment was exploited through the vulnerability.

JetBrains said at the time of publishing its advisory that it was not aware of active exploitation. watchTowr reported attempted exploitation a day after disclosure.

## A second critical flaw in months

This is the second critical, unauthenticated TeamCity flaw JetBrains has fixed in a little over four months. The first, CVE-2026-63077, was patched in late July and added to CISA's Known Exploited Vulnerabilities catalogue roughly a week after disclosure. In September 2026, CISA warned federal agencies that ransomware operators were targeting that vulnerability to execute arbitrary OS commands on targets.

TeamCity On-Premises servers have also previously been targeted by both state-sponsored and financially motivated threat actors, via the authentication bypass flaws CVE-2023-42793 and CVE-2024-27198.

## What administrators should do

For IT and security teams running TeamCity On-Premises, the steps from JetBrains are:

1. Update to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin if a restart is not possible.
3. If one appears, check the agent's connection history, source IP and builds around the timestamp to determine whether the attempt succeeded.
4. If exploitation is suspected, preserve logs and build results, patch the server, rotate credentials passed to potentially affected builds, and treat their artifacts as untrusted until verified.
5. As an additional mitigation, configure a reverse proxy or another path-aware access control to allow requests to /app/agents and its subpaths only from the IP addresses where legitimate build agents are expected to originate, including the outbound addresses used by cloud agents and any NAT gateways.

Anything downstream that consumes build artifacts from an affected server is also worth reviewing, since tampered output files are one of the routes by which attacker-supplied code could spread.

## Key takeaways

- Attempted exploitation was observed one day after disclosure, per watchTowr.
- The attack can expose secrets and allow tampering with downstream builds, which makes it a supply chain risk and not just a server compromise.
- Patching, log checks and credential rotation are concrete steps that can start immediately, and the patch plugin avoids the need for a server restart.

## Assessment

For TeamCity On-Premises customers, the immediate priority is to apply the update or the patch plugin and then check logs for signs of a takeover attempt. The flaw needs no TeamCity account, and agent IDs are easy to guess, so reachability of the server over HTTP(S) matters. Restricting access to /app/agents is a sensible additional layer. TeamCity Cloud customers need take no action, because JetBrains has already applied the fix there.

## Sources

- [BleepingComputer](https://www.bleepingcomputer.com/news/security/critical-jetbrains-teamcity-flaw-exploited-to-hijack-build-agents/)
- [Help Net Security](https://www.helpnetsecurity.com/2026/12/03/teamcity-vulnerability-cve-2026-136858-fixed/)
- [nvd.nist.gov](https://nvd.nist.gov/vuln/detail/CVE-2023-42793)
- [nvd.nist.gov](https://nvd.nist.gov/vuln/detail/CVE-2024-27198)
- [nvd.nist.gov](https://nvd.nist.gov/vuln/detail/CVE-2026-136858)
- [nvd.nist.gov](https://nvd.nist.gov/vuln/detail/CVE-2026-63077)
