TeamCity CVE-2026-136858: Anyone Who Can Reach Your Build Server Can Pose as Your Build Agent. Patch to 2026.1.7, 2026.2.3 or 2026.3
If you run TeamCity On-Premises, do this today: update the server to 2026.1.7, 2026.2.3 or 2026.3. If you cannot restart it, install JetBrains' security patch plugin, which works on TeamCity 2021.2 and later and, per JetBrains, "can be installed without restarting the TeamCity server." Then search teamcity-server.log for the line JetBrains tells you to look for (below). TeamCity Cloud customers have nothing to do.
JetBrains published CVE-2026-136858 on Wednesday, December 2, 2026. It is an authentication bypass in agent registration, CVSS 3.1 score 9.1 from JetBrains as the CNA (vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, weakness CWE-639). In JetBrains' words, it "may allow an unauthenticated attacker who can reach a TeamCity server over HTTP(S) to impersonate an existing authorized build agent." The attacker "does not need a TeamCity user account."
What to do, in order
Check your version. The TeamCity version and build number show in the footer of the web UI and under Administration | Updates. JetBrains says "This vulnerability affects all TeamCity On-Premises versions." Fixed releases are 2026.1.7, 2026.2.3 and 2026.3.
Update the server to one of those three, by installer or TeamCity's automatic update.
If you cannot update, install the security patch plugin. It covers TeamCity 2021.2 or later and fixes only this CVE. JetBrains' instructions, from Administration | Updates: on 2024.03 through 2026.2.1, "Review and apply pending patches under Available security updates." On 2026.2.2 and later, set Security patches to Install automatically; JetBrains says servers on 2026.2.2 or later with automatic patch installation enabled "should check for and install this security patch automatically." Older supported versions can download and install the plugin by hand. Confirm it actually installed rather than assuming the automatic setting did it.
Fence the agent endpoint. JetBrains' additional mitigation: configure your reverse proxy or another path-aware access control "to allow requests to /app/agents and its subpaths only from IP addresses where you expect legitimate build agents to originate," including the outbound addresses of cloud agents and any NAT gateways they use. This is the exposure that matters for this bug. Modern TeamCity agents talk to the server over the server's own HTTP(S) port (8111 by default on a bare install, or 443 behind a proxy), not a separate port, so "we firewalled the agent port" does not protect you from this one. The question is whether /app/agents on your server URL is reachable from the internet.
Look for attempts. In teamcity-server.log (in the server's logs directory), search for the text: of the existing agent, but different authorization token. JetBrains: "A non-empty token may indicate an attempt to take over an existing build agent. Entries with an empty token ("") are expected and can be disregarded for this check." For any non-empty hit, take its timestamp and check that agent's connection history, hostname and source IP against what you expect, and compare with build logs, results and published artifacts.
If you find a real hit, JetBrains' guidance is to preserve logs and build results, patch, "rotate any credentials passed to potentially affected builds," and "Treat artifacts from those builds as untrusted until verified, and trace where they were used or deployed."
Why a 9.1 on a build server is worse than it sounds
The score says "no availability impact." That undersells it. A build agent is where your secrets get handed out: registry tokens, signing keys, cloud deploy credentials. JetBrains spells out the chain: "An attacker could intercept builds, access build secrets, and tamper with build results and artifacts," and "Downstream builds that consume those artifacts could execute attacker-supplied code." That last sentence is a supply-chain compromise described by the vendor. Whoever poses as your agent does not need to attack your customers. Your release process ships for them.
How this differs from the TeamCity bug we covered in July
On July 30 we wrote about CVE-2026-63077, a different flaw. That one was a deserialization bug giving unauthenticated remote code execution on the server through the agent polling protocol, CVSS 9.8, fixed in 2026.1.3 and 2025.11.7. When we wrote it there was no public exploit. CISA added it to the Known Exploited Vulnerabilities catalog on Wednesday, August 5, 2026, with a due date of August 8 and known ransomware use marked "Known." CISA listed it as exploited nine days after JetBrains disclosed it (July 27). The quiet window we said was closing did close.
CVE-2026-136858 is a separate bug in the same neighborhood. It is not code execution on the server. It is impersonation: an outsider registers as one of your already-authorized agents, displaces it, and receives the builds and secrets meant for it. Patching for 63077 in August does not fix this one. Every On-Premises version is affected, including the ones you patched in the summer.
What is confirmed
JetBrains' advisory (December 2, 2026) names the bug, the fixed versions 2026.1.7, 2026.2.3 and 2026.3, and the patch plugin for 2021.2 and later.
The researcher is Jiawei Guo, who reported it to JetBrains privately on November 24, 2026.
JetBrains: "At the time of publishing this advisory, we are not aware of any active exploitation of this vulnerability." It also says it "found no evidence that any TeamCity Cloud environment was exploited."
NVD published the record on December 2, 2026. CISA's Vulnrichment entry on that record reads exploitation: none, automatable: yes, technical impact: total.
Not on CISA KEV. We checked the KEV JSON this morning (catalog version 2026.11.30, released November 30). It lists four TeamCity CVEs (2023-42793, 2024-27198, 2024-27199, 2026-63077) and not this one.
What is not known
Exploitation. None reported by JetBrains or CISA as of today. We are not implying any.
A working public exploit. We searched GitHub on December 3. Our exploit harvester holds zero PoC repositories for this CVE. GitHub code search turned up two things that mention it: a scanner vendor's detector that only reads the version the server advertises, and a repository in a bulk "PoC lab" collection, committed today, whose script performs version checks and generic GET requests against paths including /app/agents. We read it and did not run it; it does not perform agent registration or takeover, so we do not count it as an exploit. Treat any "PoC" that appears in the next few days with suspicion, and never run one on a host that holds credentials.
The exact mechanism. JetBrains has not published how the registration check fails beyond "authentication bypass during agent registration." Neither have we guessed.
Indicators of compromise. None published in the sources we read. We added nothing to the feed for this CVE.
How we know
We read JetBrains' advisory directly and quote it above. WebFetch received HTTP 403 from the JetBrains blog; a direct HTTPS fetch returned the page (HTTP 200), and that is the text quoted.
We read the NVD record through the NVD 2.0 API and the CISA KEV JSON feed.
Our edge. We do not run TeamCity, so our sensors can only see opportunists spraying our own domains. Our ttp-check scanned 701,944 edge-block records, 115,093 edge-canary records and 1,016 origin-honeypot captures since November 1 for requests to /app/agents, /app/rest/ or anything containing "teamcity." The result: zero requests to /app/agents or /app/rest/. Two blocked requests on November 18, from one IP on AS48090, asked for /.teamcity and /teamcity-config.zip. That is config-file recon looking for leaked secrets, it predates this disclosure by two weeks, and it is not this CVE. We have no canary trap for TeamCity, so "zero" means nobody probed our domains for it, not that nobody is scanning for it.
The Hacker News report was our lead to the story, not our source of fact.
Am I affected?
Yes, if you run TeamCity On-Premises below 2026.1.7 (2026.1 branch), 2026.2.3 (2026.2 branch) or 2026.3, and the security patch plugin is not installed. Check the version in the footer, check Administration | Updates for the patch, and search teamcity-server.log for "different authorization token" with a non-empty token value. If /app/agents on your server answers from an address that is not one of your agents, fence it today.
Confidence capped at 95%. Versions, quotes and exploitation status come from JetBrains' advisory and the CISA and NVD records as of December 3, 2026. The absence of a public exploit is a point-in-time observation and is designed to expire, as it did for 63077.
Sources
JetBrains, "Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858)": blog.jetbrains.com/teamcity/2026/12/cve-2026-136858
JetBrains fixed security issues: jetbrains.com/privacy-security/issues-fixed
NVD, CVE-2026-136858: nvd.nist.gov/vuln/detail/CVE-2026-136858
CISA Known Exploited Vulnerabilities catalog (JSON): cisa.gov KEV feed
The Hacker News, December 3, 2026: Critical JetBrains TeamCity flaw lets attackers hijack build agents
Read next: TeamCity Has a 9.8 in the Protocol Build Agents Use to Phone Home, the July bug that went from "no public exploit" to CISA KEV nine days after disclosure.
Every indicator in this post is in the feed. Free.
1.58M+ IOCs, STIX 2.1 / TAXII, 88% novel vs ThreatFox, exploited-CVE leads ahead of CISA. No credit card — a free API key in 30 seconds, and you can audit every claim above against the live endpoints.



Comments