JetBrains TeamCity CVE-2026-136858 Exploited: Update to 2026.1.7, 2026.2.3 or 2026.3
watchTowr saw attacks on a critical TeamCity flaw a day after disclosure. Which versions are fixed, what to look for in the logs and why to rotate build secrets.

Underlined words are defined in the KBY Lexicon. Tap or click one to see what it means.
Attackers began trying to exploit a critical JetBrains TeamCity flaw about a day after it was disclosed, according to the security firm watchTowr. The flaw, CVE-2026-136858, lets an unauthenticated attacker pose as a build agent and reach the secrets a build uses. Every self-hosted TeamCity On-Premises version is affected. Fixed releases are 2026.1.7, 2026.2.3 and 2026.3.
TeamCity is the build server many teams use to compile code, run tests and publish software. Its agents are the machines that do the work, and they carry the credentials needed to sign, deploy and release. A flaw that lets a stranger impersonate one of those agents is therefore a flaw in the supply chain, not just in one server.
#What was disclosed, and when
JetBrains published the CVE record on Wednesday 2 December. SecurityWeek reports JetBrains saying an unauthenticated attacker could exploit the flaw over HTTP or HTTPS. That could expose credentials and other secrets passed to a build agent. The same report says JetBrains warned that changing build artifacts could lead to code execution in later builds. CVSS, the industry severity score, is 9.1 out of 10.
At disclosure, JetBrains said it knew of no exploitation in the wild, SecurityWeek reports. It shared indicators of compromise, the log traces that show an attempt. TeamCity Cloud was updated automatically, so the exposure is limited to servers that customers run themselves.
We could not open JetBrains’ own post, because the page refused our request. The JetBrains details above therefore come from SecurityWeek’s account of it, and we have attributed them that way.
#Exploitation arrived within a day
watchTowr says its Attacker Eye honeypot network recorded exploitation attempts on Thursday 3 December. The firm published its write-up on Friday 4 December. Its head of threat intelligence, Jake Knott, told SecurityWeek the bug was “reverse engineered, reproduced, and exploited in the wild.”
A honeypot is a decoy system that security firms leave exposed to see who attacks it. What it shows is that attackers are scanning for this flaw now. It does not show that any real company has been compromised, and neither watchTowr nor JetBrains has named a victim.
watchTowr also says the same actor had earlier exploited PHP2Shell against a Palo Alto PAN-OS device in the same honeypot. In watchTowr’s reading, that suggests the actor goes after high-impact flaws. That is the firm’s inference rather than a confirmed attribution.
#How the attack works, in plain terms
According to watchTowr, an attacker needs network access to the server over HTTP or HTTPS and no account. The attacker must also guess a valid agent ID. watchTowr gives “1” as an example of an ID that would work, and attackers were seen trying to guess them.
SecurityWeek quotes Knott as noting that exploitation is easy if agents use common numbering. Our reading is that agent IDs were never meant to act as passwords. If the server accepts a request that claims to come from agent 1, an attacker who sends that claim can start receiving that agent’s work. Small numbers in a long-lived server are easy to guess.
Once the attacker is treated as the agent, the build’s secrets reach the attacker. That can include cloud keys, package registry tokens and signing credentials. The attacker can also report false results or publish altered files. A build that later consumes a tampered artifact can then run the attacker’s code without the attacker ever touching it directly.
#Which servers to look at first
watchTowr advises starting with servers reachable from the internet. Next come servers whose builds handle credentials or publish files that other builds use. In practice, that puts the release pipeline at the front of the queue and a rarely used test server at the back.
If your TeamCity server is only reachable on an internal network, the risk is lower but not zero. Anyone who can reach the server from a compromised laptop or a contractor’s connection can still try the same guesses. We would not treat “internal only” as a reason to wait for the next maintenance window.
Check whether your server is TeamCity Cloud first. JetBrains has already updated those instances, so the steps below are for On-Premises customers only. Does a supplier build software for you on their own TeamCity? Ask which version they run and whether they have rotated the credentials your builds use.
#What to do today
The steps below follow watchTowr’s advice, with the order we would use.
- Preserve evidence first. Copy the server logs and build results before you change anything. An upgrade and a restart can make it harder to tell later whether an attempt succeeded.
- Look for the traces. In
teamcity-server.log, search for entries saying an existing agent presented a different authorisation token. An empty token is normal. A non-empty token may mean a takeover attempt, so compare its timestamp, host name and source address with the agent’s usual connection history. - Update. Move to 2026.1.7, 2026.2.3 or 2026.3, whichever matches your branch.
- If you cannot update today, install the patch plugin. JetBrains offers a security patch plugin for TeamCity 2021.2 and later. SecurityWeek says it needs no server restart.
- Limit who can reach agent paths. JetBrains recommends restricting requests to
/app/agentsand its subpaths to trusted addresses. watchTowr suggests a reverse proxy that allows only your known agents. Include any cloud agent and NAT gateway addresses. - Rotate secrets. Rotate credentials passed to any build that ran while the server was exposed, and treat its artifacts as untrusted until you have verified them.
- Separate the roles. Keep the server on a trusted network, use a VPN for outside access, and run it on a different host from the agents.
Following along? Tap a step’s number to tick it off.
Rotating secrets is the step teams skip, because it is the most work. It is also the only one that helps if an attacker already took something. Our guide to rotated secrets that workloads never pick up covers a common way a rotation looks finished when it is not.
#Why build servers keep being the target
A build server sits between source code and production. It holds the keys that publish releases, and many teams give it broad permissions because narrow ones are tedious to set up. An attacker who gets in does not need to break a hardened production system. They can wait for the pipeline to deliver their changes for them.
That is also why the damage can spread beyond the company that runs the server. If tampered files are published to customers or to other teams, the problem becomes theirs. Our article on remote cache poisoning in CI/CD explains a related route by which poisoned build output spreads.
#Our view
We think this is a patch-today flaw for anyone running TeamCity On-Premises. The score is high, the barrier is low, and a security firm has seen attempts within a day. The gap between disclosure and exploitation is now short enough that a monthly patch cycle is the wrong tool for internet-facing build servers.
We also think the patch alone is not the finish line. A server that was reachable before you updated may have handed over secrets that remain valid after the fix. Treat the update as stopping the leak, and the rotation as dealing with whatever has already left.
We expect more public detail in the coming days, including write-ups that show how agent IDs are chosen. That would make scanning cheaper. What would change our view is evidence that TeamCity servers with non-default agent numbering are safe in practice. Nobody has shown that yet.
#What is not yet known
No source we read names a victim, a stolen secret or a tampered artifact. We do not know how many servers are exposed to the internet or whether the attempts watchTowr saw succeeded against any real system. We did not check whether the US exploited-vulnerabilities list includes this CVE.
We also do not know whether any version before 2021.2 can use the patch plugin. JetBrains’ advice, as relayed, covers 2021.2 and later. Anyone on an older release has no stated plugin option and should plan an upgrade.
If you run TeamCity and find a non-empty token entry you cannot explain, treat it as an incident. Report it through your normal security process.
We will update this story if new indicators appear, a victim is named, or an official exploited list adds the flaw.
Evidence trail
Sources and verification
Primary documentation and external technical references used in this article.
About this page
Credited to
Dates
Published
Corrections
No corrections are listed for this page. Some review sweeps corrected pages without naming each one; those are in the corrections log.
Found this useful? Follow KBY for more like it.
Recommended reading
More from KBY that goes with this story.
More news
All news


Artificial IntelligenceMicrosoft Copilot Business Now Sells Without Microsoft 365: What the $18 Offer Covers
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Get new fixes by email.
For IT teams: new runbooks, configuration traps and fixes, and the Microsoft and Apple deadlines coming up, about twice a week.



Comments
Add a thoughtful note on JetBrains TeamCity CVE-2026-136858 Exploited: Update to 2026.1.7, 2026.2.3 or 2026.3. Comments are checked for spam and held for moderation before appearing.