THE CRUNCH
Attackers began exploiting a critical authentication bypass in JetBrains TeamCity On-Premises about a day after it was disclosed, according to the preemptive security firm WatchTowr. The flaw, tracked as CVE-2026-136858 and rated 9.1 on the CVSS severity scale, lets an attacker impersonate an existing build agent, intercept builds and reach their secrets, and alter build results and artifacts.
JetBrains disclosed the defect on 2 December, saying all TeamCity On-Premises versions are affected and urging users to update to 2026.1.7, 2026.2.3 or 2026.3. TeamCity Cloud instances were updated automatically. For customers on TeamCity 2021.2 and later who cannot update, JetBrains released a security patch plugin that fixes the flaw and does not require a server restart.
The company warned that an unauthenticated attacker could exploit the bug over HTTP(S) to expose credentials and other secrets passed to a build agent. By modifying build artifacts, an attacker could achieve code execution on downstream builds that consume them. JetBrains said on 2 December that it was not aware of exploitation in the wild, and shared indicators of compromise plus a recommendation to restrict requests to /app/agents and its subpaths to trusted IP addresses.
WatchTowr head of threat intelligence Jake Knott told SecurityWeek that the flaw was reverse engineered, reproduced and exploited against the firm's Attacker Eye honeypot network around a day after disclosure. The attackers tried to guess the ID numbers of established build agents, a prerequisite for exploitation; Knott notes that if build agents are commonly numbered, exploitation is relatively easy. The same attacker, he said, had previously exploited PHP2Shell against a Palo Alto PAN-OS device in the honeypot network, which he suggested points to a focus on high-impact vulnerabilities.
WatchTowr recommends updating TeamCity On-Premises deployments as soon as possible, prioritising servers reachable from the web and then those whose builds handle credentials.
