TeamCity flaw lets anyone who can reach the server pose as a build agent
JetBrains fixed CVE-2026-136858 in TeamCity On-Premises on Dec. 2, a critical bug that lets an attacker with no account impersonate an authorized build agent and take its builds and secrets. Every on-premises version is affected; TeamCity Cloud is already fixed.
Warden, covering security, outages and the rules for tech
, 3 min read
8 daysfrom private report (Nov. 24) to JetBrains's fix (Dec. 2)
What to know
- CVE-2026-136858 lets an unauthenticated attacker who can reach a TeamCity On-Premises server over HTTP(S) displace an authorized build agent, receive its builds and the credentials passed to them, and tamper with artifacts.
- Fixed versions are 2026.1.7, 2026.2.3 and 2026.3; a security patch plugin covers TeamCity 2021.2 and later without a restart.
- JetBrains says it knows of no active exploitation; the previous critical unauthenticated TeamCity bug, CVE-2026-63077, was added to CISA's exploited list about a week after its July fix.
A build agent is the machine a CI server trusts with the keys. When TeamCity hands it a job, it also hands over whatever the job needs to finish: deployment keys, cloud tokens, package registry passwords. JetBrains said on Dec. 2 that an attacker with no TeamCity account could, until now, walk up to an on-premises server and become one of those trusted machines.
The bug is CVE-2026-136858. In its advisory, JetBrains says anyone who can reach a TeamCity On-Premises server over HTTP(S) could impersonate an existing, already-authorized agent, displace the real one and receive the builds meant for it. From there the attacker can read the secrets passed to those builds, fake build results and publish tampered artifacts. Any downstream build that pulls those artifacts could then run the attacker's code. That makes it a software supply chain problem first and a server problem second.
Every on-premises version is affected. JetBrains did not publish the root cause.
The fix, and the plugin for old servers
The fixed releases are TeamCity 2026.1.7, 2026.2.3 and 2026.3. For servers that can't be upgraded soon, JetBrains shipped a security patch plugin that installs without a restart, works on TeamCity 2021.2 and later, and fixes only this bug. Servers on 2026.2.2 or later with automatic security patches turned on should pick it up on their own. TeamCity Cloud needs nothing; JetBrains says it fixed the hosted service and found no sign any Cloud environment was exploited.
As an extra layer, the company says to let requests to /app/agents and its subpaths through a reverse proxy only from addresses where real agents live, including the outbound addresses of cloud agents and any NAT gateways in front of them.
The timeline is short. Researcher Jiawei Guo reported the flaw privately on Nov. 24, and the fix shipped eight days later.
Why the clock matters here
JetBrains says it is not aware of active exploitation. That was also true at the start of the last round. Help Net Security notes that CVE-2026-63077, the previous critical TeamCity bug that needed no login, was fixed in late July; the Canadian Centre for Cyber Security's advisory, dated July 28, records that CISA added it to its Known Exploited Vulnerabilities catalog on Aug. 5. Exposed TeamCity servers have been a target for state and criminal groups since the 2023 and 2024 authentication bypasses, according to Help Net Security.
The detail that should move a patch window is in JetBrains's own checking steps. A takeover attempt leaves a line in teamcity-server.log saying a connection came in under the name of an existing agent "but different authorization token." An empty token there is normal; a non-empty one is a possible attempt. JetBrains says to match that timestamp against the agent's connection history and builds, and, if the attempt looks real, to rotate every credential passed to the affected builds and treat their artifacts as untrusted until checked.
That last step is the expensive one. A patched server stops new takeovers. It does not tell you which of last week's artifacts are clean. We saw the same cost in the Hex.pm registry breach, where the questions after the fix were about what had already shipped. For how to read the rest of an advisory like this one, see our guide to security advisories.
Sources
- Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858): Update to 2026.1.7, 2026.2.3, or 2026.3 Now, JetBrains, December 2, 2026
- Critical TeamCity flaw lets unauthenticated attackers pose as build agents, grab secrets (CVE-2026-136858), Help Net Security, December 3, 2026
- JetBrains security advisory (AV26-752), Canadian Centre for Cyber Security, July 28, 2026 (updated August 5)
Internet, outages and security
Written by an AI correspondent under standards set by editor Jacob Knight. Spotted an error? Tell us and we will fix it.