JetBrains TeamCity Vulnerability Exploited One Day After Disclosure
JetBrains patched TeamCity On-Premises CVE-2026-136858 (CVSS 9.1) on December 2 and WatchTowr reported active exploitation within one day of disclosure.
By Dillip Chowdary • Dec 05, 2026 • Source: SecurityWeek

At a glance
- Product
- JetBrains TeamCity On-Premises
- CVE
- CVE-2026-136858, CVSS 9.1
- Type
- Authentication bypass, build agent impersonation
- Disclosure date
- December 2, 2026
- Fixed versions
- 2026.1.7, 2026.2.3, 2026.3
- Patch plugin
- Available for TeamCity 2021.2 and later (no restart required)
In this post
Threat actors began exploiting a critical authentication bypass vulnerability in JetBrains TeamCity On-Premises just one day after the company disclosed it, according to SecurityWeek's report. Security firm WatchTowr detected the in-the-wild exploitation through its honeypot network and confirmed the flaw had been reverse-engineered and weaponized within roughly 24 hours of the December 2 disclosure.
The vulnerability, tracked as CVE-2026-136858 with a CVSS score of 9.1, is an authentication bypass that lets an attacker impersonate an existing build agent over HTTP or HTTPS. By impersonating a build agent, the attacker can intercept builds and their secrets, and modify build results and artifacts — a modification that can achieve code execution on downstream builds that consume those artifacts. All TeamCity On-Premises versions are affected.
01CVE-2026-136858 and build agent impersonation
The flaw allows an unauthenticated attacker to spoof the identity of an existing build agent. Once impersonating an agent, the attacker sits in the build pipeline: they can intercept builds assigned to that agent, read the credentials and secrets those builds contain, and alter the artifacts the builds produce. Downstream processes that trust and consume those artifacts then execute attacker-controlled code.
JetBrains disclosed CVE-2026-136858 on December 2 and stated at that time that it was not aware of any exploitation in the wild. The company released patches in the same disclosure: updated versions 2026.1.7, 2026.2.3, and 2026.3. For customers running TeamCity 2021.2 or later who cannot update immediately, JetBrains also released a security patch plugin that fixes the vulnerability without requiring a server restart.
02WatchTowr honeypot detection within one day
WatchTowr head of threat intelligence Jake Knott confirmed that CVE-2026-136858 was reproduced and exploited against the firm's Attacker Eye honeypot network "around a day after disclosure." The firm observed attackers attempting to guess the numeric ID numbers of established build agents — a prerequisite for exploiting the impersonation flaw. If build agents use commonly predictable ID sequences, the guessing step is straightforward.
Knott noted that the same attacker had previously exploited PHP2Shell against a Palo Alto PAN-OS device in WatchTowr's honeypot network, suggesting this actor focuses on high-impact, recently disclosed vulnerabilities. The rapid weaponization of CVE-2026-136858 fits that pattern.
03Patches and security plugin for older installations
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
JetBrains updated TeamCity Cloud instances automatically and released fixed on-premises versions 2026.1.7, 2026.2.3, and 2026.3. For installations on TeamCity 2021.2 through the most recent version that cannot be updated immediately, the security patch plugin is available as a no-restart fix.
JetBrains also published indicators of compromise (IOCs) for teams wanting to audit whether their systems have already been targeted. The company recommended restricting requests to /app/agents and its subpaths to trusted IP addresses as an additional network-layer mitigation while patching is in progress.
04Prioritizing internet-exposed and credential-holding servers
WatchTowr's remediation guidance prioritizes servers accessible from the internet first, followed by servers whose builds handle credentials. This ordering reflects the attack's mechanics: external exposure determines whether an attacker can reach the endpoint, and credential-holding builds determine the value of a successful agent impersonation.
Build agents in CI/CD systems routinely have access to deployment secrets, signing keys, and production credentials. An attacker who successfully impersonates an agent in this class of build can exfiltrate those secrets or embed malicious code into release artifacts before they are deployed downstream.
05Agent ID guessing as the exploitation prerequisite
The specific detail that attackers must guess existing build agent IDs means exploitation is not fully unauthenticated in the simplest sense — the attacker must enumerate or predict a valid agent ID. However, Knott points out that if agents use commonly predictable numbering sequences, this step is not a meaningful obstacle.
Teams running TeamCity On-Premises should update to 2026.1.7, 2026.2.3, or 2026.3 as soon as possible. Where immediate update is not possible, the security patch plugin and the /app/agents path restriction provide partial mitigation. The IOCs published by JetBrains allow teams to check whether exploitation was attempted before patching was applied.
JetBrains TeamCity has been targeted in multiple national-security level campaigns in prior years. Any organization with an internet-exposed TeamCity server should treat this vulnerability as an urgent priority, review recent build logs for unexpected agent connections, and audit artifacts published between December 2 and the date of patching.
Frequently asked questions
What does CVE-2026-136858 allow an attacker to do?
It lets an unauthenticated attacker impersonate a build agent over HTTP or HTTPS, intercept builds and their secrets, and modify artifacts — which can result in code execution on downstream builds that consume those artifacts.
Which TeamCity versions are affected by CVE-2026-136858?
All TeamCity On-Premises versions are affected. Fixed versions are 2026.1.7, 2026.2.3, and 2026.3. A patch plugin is available for TeamCity 2021.2 and later for installations that cannot update immediately.
How quickly was CVE-2026-136858 exploited after disclosure?
WatchTowr detected exploitation in its honeypot network approximately one day after JetBrains disclosed the vulnerability on December 2, 2026.
What is the prerequisite for exploiting this vulnerability?
An attacker must know or correctly guess the numeric ID of an existing build agent. If agents use predictable ID sequences, this prerequisite is not a significant obstacle.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement