By Hamza Faisal

Hackers needed less than a day to turn a newly disclosed JetBrains TeamCity flaw into live attacks. The critical authentication bypass, tracked as CVE-2026-136858, was disclosed on December 2 — and by December 3, security researchers were already watching attackers try to hijack build agents on unpatched servers.

TeamCity is JetBrains' continuous integration and delivery server, used by software teams to build, test and ship code automatically. The flaw affects every on-premises version of the product, and it carries a CVSS severity score of 9.1 out of 10. JetBrains fixed it in versions 2026.1.7, 2026.2.3 and 2026.3, and has already patched its own cloud service.

A one-day window

Security firm WatchTowr, which runs a global network of decoy systems known as Attacker Eye, said it observed exploitation attempts on December 3 — a single day after JetBrains published its advisory. The attackers had reverse-engineered the patch, reproduced the flaw and put it to work against the honeypot network almost immediately.

That speed is becoming the norm rather than the exception. Modern exploit development, increasingly assisted by AI tools, has shrunk the gap between a patch landing and attacks beginning to hours. For teams running internet-facing build servers, the old habit of patching "next week" no longer holds.

The flaw was reported privately to JetBrains by security researcher Jiawei Guo on November 24. At the time of disclosure, JetBrains said it had seen no evidence of active exploitation. That changed within 24 hours.

What the flaw lets attackers do

CVE-2026-136858 is an authentication bypass in the build agent registration process. An unauthenticated attacker who can reach a TeamCity server over the internet can impersonate an existing authorized build agent simply by guessing its ID number — and those IDs typically start at 1 and count upward, so guessing is not much of a barrier.

Once inside as a trusted agent, the attacker can intercept builds, steal the secrets and credentials passed through them — including API keys, cloud tokens and signing certificates — falsify build results, and inject malicious code into the software artifacts that ship to users. In effect, a compromised build agent can poison the software supply chain at its source.

WatchTowr also linked the observed attacks to the same actor behind an earlier PHP2Shell attack on a Palo Alto Networks device, suggesting a threat group that hunts high-impact infrastructure flaws. This is the second pre-authentication flaw in TeamCity's agent functionality to be exploited in the wild this year. The first, CVE-2026-63077, was a critical remote-code flaw patched in July and later flagged by the US cybersecurity agency CISA in September after ransomware operators began targeting it.

How to check and patch

JetBrains says administrators should upgrade immediately to TeamCity 2026.1.7, 2026.2.3 or 2026.3, prioritising servers reachable from the internet and those whose builds handle credentials. For teams that cannot upgrade right away, the company has released a security patch plugin for versions 2021.2 and later that can be installed without restarting the server.

JetBrains also published a way to check whether a server has already been probed: search the teamcity-server.log file for entries containing the phrase "of the existing agent, but different authorization token". Any match means someone tried to impersonate one of your build agents.

TeamCity Cloud customers are already protected — JetBrains applied the fix there and found no evidence it was exploited. The risk sits squarely with self-hosted installations, and with exploitation already underway, every unpatched server is now a live target.