Saturday, December 5, 2026
Patch priority

TeamCity vulnerability under attack: which version fixes it?

The flaw lets someone with no account pose as a trusted build agent. watchTowr saw exploitation attempts on December 3, a day after JetBrains published the CVE.

Technician working on server equipment with tools

The TeamCity vulnerability CVE-2026-136858 is fixed in versions 2026.1.7, 2026.2.3 and 2026.3 of TeamCity On-Premises, and every On-Premises version without the fix is affected. Security firm watchTowr reports exploitation attempts. If you cannot upgrade, JetBrains has a patch plugin for version 2021.2 and later.

Which TeamCity versions are affected and which are fixed?

All TeamCity On-Premises versions before the three fixed releases are affected. TeamCity Cloud has already been fixed by JetBrains, which says it found no evidence that any Cloud environment was exploited, so Cloud customers need to do nothing.

Your setup What to do
2026.1 line Update to 2026.1.7 or a newer fixed release
2026.2 line Update to 2026.2.3 (build 239430, released December 2)
Moving to the newest line Update to 2026.3
2021.2 or later, cannot update yet Install the security patch plugin, no server restart needed
Older than 2021.2 Update to a fixed release; the plugin is offered for 2021.2 and later
TeamCity Cloud No action

A server showing plain 2026.2 is still on the original September release, build 238924, according to a JetBrains reply under its bulletin. It needs the update or the plugin.

JetBrains warns that the plugin addresses only CVE-2026-136858. Other security fixes come with a full update.

Is the TeamCity vulnerability being exploited?

Yes, according to watchTowr, which says its honeypot network saw exploitation attempts on December 3. BleepingComputer reported on December 4 that the security company described attackers trying to take over build agents one day after public disclosure.

The vendor's own wording is older. JetBrains wrote in its December 2 bulletin that it was not aware of active exploitation at the time of publishing. watchTowr marked the flaw as not listed in CISA's Known Exploited Vulnerabilities catalog when its page was updated on December 4. As of that update, a patch queue that waits for a CISA listing would not have been triggered.

We found no named victim in the pages we read. The reports describe attempts, and they do not say how many succeeded.

What can an attacker do with CVE-2026-136858?

An attacker who can reach the server by HTTP or HTTPS could impersonate an existing authorized build agent, with no TeamCity account. A build agent is the machine that runs the jobs a TeamCity server hands out.

Posing as that agent, the intruder can push the real one aside and receive its builds. Credentials and other secrets passed to those jobs are then exposed. The attacker can also report false build results or publish altered artifacts, and later builds that use those artifacts could run the attacker's code.

JetBrains' conditions are short: the server has to be reachable. watchTowr adds that the attacker has to guess a valid agent ID. That is not a real obstacle, its researchers explained, according to BleepingComputer, because the IDs typically start at 1 and are easy to predict. watchTowr lists a CVSS 3.1 score of 9.1, in the critical range. Security researcher Jiawei Guo reported the flaw to JetBrains privately on November 24.

How do you install the TeamCity security patch?

Update the server if you can, either with the installer from JetBrains or through TeamCity's automatic update. The patch plugin is the fallback.

How the plugin arrives depends on your version. From 2024.03, TeamCity can download security patches on its own and notify administrators if notifications are set up. On versions 2024.03 through 2026.2.1, open Administration, then Updates, and apply what is pending under Available security updates. On 2026.2.2 and later, the setting sits under Security patches. Choosing Install automatically lets the server fetch and install verified, compatible patches. If it is set to Download and notify, someone still has to apply the patch. If it is set to Ignore, nothing happens until an administrator acts.

Older supported servers can take the plugin as a manual download from the link in the JetBrains bulletin. Check afterward that it shows as installed.

How can you check a TeamCity server for compromise?

Search teamcity-server.log for the phrase "different authorization token", part of a message about an existing agent, and read the token value that follows. An empty token is expected and can be ignored. A token with a value may point to an attempt to take over an agent.

For each hit with a value, note the time. Review that agent's connection history and the builds assigned to it around then. Confirm the hostname and source IP address are the ones you expect for that machine. Then compare build logs, results and published artifacts to work out whether the attempt worked.

If you suspect it did, JetBrains advises that you keep your logs and build output, apply the fix, change any credentials those builds received and distrust their artifacts until verified. Trace where those artifacts were used or deployed. Our guide to which secrets to rotate first after a breach can help order that work.

Does limiting network access protect TeamCity?

It reduces who can try, and it does not replace the patch. JetBrains advises restricting the server to trusted networks wherever possible, using a VPN or similar control for users and agents outside them, and keeping build agents on different machines from the server itself.

There is also a targeted measure. Configure a reverse proxy, or another control that can filter by path, so that /app/agents and everything under it accepts requests only from the addresses where your real build agents sit. Include the outbound addresses of cloud agents and of any NAT gateways they pass through, or legitimate agents will be cut off.

watchTowr suggests handling servers reachable from outside trusted networks first, including those that accept agent connections from outside. Attack timelines keep shrinking, which we covered in our patch window checklist.

What should TeamCity admins do today?

Save the evidence, then patch every On-Premises server.

  • Inventory TeamCity servers, including test and forgotten ones, and mark which are reachable from the internet.
  • Preserve server logs and build results before changing anything.
  • Search teamcity-server.log for the agent token message and investigate every non-empty token.
  • Upgrade each server (2026.1.7, 2026.2.3 or 2026.3). Where that has to wait, add the patch plugin on 2021.2 and later.
  • Restrict /app/agents at the reverse proxy to known agent addresses.
  • Rotate credentials used by any build that may have been affected, and hold its artifacts until verified.
  • Turn on automatic security patch installation if you run 2026.2.2 or later.