Status: On 2 December 2026 JetBrains disclosed CVE-2026-136858, a flaw in TeamCity On-Premises that lets an attacker with no account take over an existing, authorized build agent. JetBrains rates it Critical with a CVSS 3.1 base score of 9.1 and says it affects all TeamCity On-Premises versions. The fix is in 2026.1.7, 2026.2.3 and 2026.3, and JetBrains has also released a security patch plugin for TeamCity 2021.2 and later. TeamCity Cloud is already fixed. When JetBrains published, it was not aware of active exploitation. On 3 December 2026 watchTowr reported that it was observing exploitation attempts against its honeypot network, and BleepingComputer reported watchTowr's finding on 4 December 2026. Ireland's National Cyber Security Centre (NCSC) issued an advisory on 4 December 2026 that recommends installing the updates "with the highest priority".
CVE-2026-136858 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog.
Executive Summary
TeamCity is a CI/CD server: it assigns build jobs to build agents and passes them the credentials those jobs need. JetBrains says that an unauthenticated attacker who can reach a TeamCity server over HTTP(S) "could impersonate an existing authorized build agent, intercept builds and access their secrets, and tamper with build results and artifacts." JetBrains adds that "Downstream builds that consume those artifacts could execute attacker-supplied code." The attacker does not need a TeamCity user account.
What the sources say about exploitation:
- JetBrains wrote in its advisory: "At the time of publishing this advisory, we are not aware of any active exploitation of this vulnerability." It also says it has "found no evidence that any TeamCity Cloud environment was exploited through this vulnerability."
- watchTowr lists the flaw as exploited in the wild in its CVE-2026-136858 FAQ and writes: "December 3, 2026: watchTowr observed exploitation attempts via Attacker Eye", its honeypot network. BleepingComputer quotes watchTowr: "Only one day after initial disclosure, watchTowr Intel is already observing attempted in-the-wild exploitation, trying to take over build agents." These are watchTowr's observations, not Rescana's.
- CISA had not added CVE-2026-136858 to its KEV catalog when we checked catalog version 2026.12.04 at about 1:07 a.m. EST on 5 December 2026. CISA's SSVC entry in the NVD record, dated 2 December 2026, still rates exploitation as "none".
What is not confirmed: no source we opened names an attacker, gives a victim count, publishes network indicators, or says whether any attempt succeeded.
Why this matters: four earlier TeamCity flaws are in CISA's KEV catalog, each with use in ransomware campaigns marked "Known": CVE-2023-42793 (added 4 October 2023), CVE-2024-27198 (added 7 March 2024), CVE-2024-27199 (added 20 April 2026) and CVE-2026-63077 (added 5 August 2026).
What to do first (Rescana guidance):
- Update every TeamCity On-Premises server to 2026.1.7, 2026.2.3 or 2026.3, or install JetBrains' security patch plugin if you cannot update today.
- Search teamcity-server.log for the message JetBrains names, "of the existing agent, but different authorization token", and review every entry with a non-empty token.
- Restrict the /app/agents path and its subpaths at your reverse proxy to the addresses your build agents connect from, as JetBrains suggests, until the server is updated.
- If you find a non-empty token entry, rotate the credentials passed to that agent's builds and hold back artifacts from those builds until they are verified, as JetBrains advises.
Technical Information
This section uses JetBrains' advisory, the NVD record, Ireland's NCSC advisory, watchTowr's FAQ, BleepingComputer's report, Ostorlab's analysis and CISA's KEV feed. We describe the flaw at the level JetBrains does and do not reproduce attack steps. No source we opened mentions a public PoC; we did not search for one and do not link or describe any.
| Field | CVE-2026-136858 |
|---|---|
| Vendor advisory | JetBrains, "Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858)", 2 December 2026 |
| Product | JetBrains TeamCity On-Premises |
| Affected | All TeamCity On-Premises versions (JetBrains); NVD lists versions before 2026.3, 2026.2.3 and 2026.1.7 |
| Fixed | 2026.1.7, 2026.2.3, 2026.3; security patch plugin for 2021.2 and later |
| Not affected | TeamCity Cloud (fixed by JetBrains, no customer action) |
| What it is | Authentication bypass during build agent registration that allows takeover of authorized build agents |
| Weakness | Authorization Bypass Through User-Controlled Key (CWE-639) |
| Score | CVSS 3.1 9.1 Critical, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (JetBrains as CNA) |
| Authentication needed | None (vector PR:N; JetBrains: no TeamCity user account needed) |
| Exploitation | JetBrains: not aware of active exploitation at publication. watchTowr: exploitation attempts observed 3 December 2026 |
| In CISA's catalog | No (catalog version 2026.12.04, checked about 1:07 a.m. EST on 5 December 2026) |
| Reported by | Security researcher Jiawei Guo, privately on 24 November 2026 (JetBrains) |
Scores and records. The 9.1 score and the vector come from JetBrains, which is the CVE Numbering Authority for its products. The NVD record lists JetBrains as the source of that score and shows no separate NVD score; its status was "Awaiting Analysis" when we read it at about 1:07 a.m. EST on 5 December 2026. NVD's description reads: "In JetBrains TeamCity before 2026.3, 2026.2.3, 2026.1.7 authentication bypass during agent registration allowed takeover of authorized build agents". The vector says the attack comes over the network, needs no account and no user action, and has high impact on confidentiality and integrity and none on availability (Rescana reading of the vector). CISA's SSVC entry in the NVD record rates the flaw as automatable, with total technical impact. Ireland's NCSC advisory lists an EPSS score of 1.54% and names the weakness as "CWE-639: Authorization Bypass Through User-Controlled Key".
What an attacker gains. JetBrains says a successful attack "could displace a legitimate build agent and intercept builds assigned to it. This can expose credentials and other secrets passed to the agent. An attacker could also falsify build results or publish tampered artifacts." In Rescana's reading, the risk reaches past the TeamCity server: build secrets can include cloud, registry, signing and deployment credentials, and a tampered artifact can travel into later builds and releases.
The log message JetBrains names. JetBrains tells administrators to search teamcity-server.log for entries containing "of the existing agent, but different authorization token". JetBrains says: "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. Ostorlab's analysis notes that the security patch plugin turns the same check into a hard stop.
Earlier TeamCity flaws in KEV. CISA's KEV feed lists four earlier TeamCity flaws: CVE-2023-42793 and CVE-2024-27198, both authentication bypasses, added 4 October 2023 and 7 March 2024; CVE-2024-27199, a path traversal flaw, added 20 April 2026; and CVE-2026-63077, a deserialization flaw, added 5 August 2026. All four entries mark use in ransomware campaigns as "Known". BleepingComputer reports that CISA warned federal agencies in September 2026 that ransomware operators were targeting CVE-2026-63077. In Rescana's reading, that history is a reason to treat exploitation attempts against TeamCity as a priority even before a KEV listing.
Affected Product Versions
- Affected: all TeamCity On-Premises versions before the fixed releases (JetBrains: "This vulnerability affects all TeamCity On-Premises versions.").
- Fixed releases: 2026.1.7, 2026.2.3 and 2026.3.
- Security patch plugin: JetBrains says it has "released a security patch plugin for 2021.2 and later, so customers who are unable to update can still patch their environments." The plugin can be installed without restarting the server and addresses only CVE-2026-136858.
- Automatic patching: JetBrains says servers on 2026.2.2 or later with automatic security patch installation enabled should check for and install the patch automatically. From TeamCity 2024.03, TeamCity can download available security patches and notify administrators if notifications are configured.
- Not affected: TeamCity Cloud. JetBrains says "TeamCity Cloud customers do not need to take any action."
Rescana guidance: a server older than 2021.2 is not covered by the patch plugin, so the only fix JetBrains names for it is an update to a fixed release.
How to Find Your Exposure
Rescana guidance:
- List every TeamCity On-Premises server you run, including test, legacy and team-owned servers, and record each version from Administration, About. Note whether each server is reachable over HTTP(S) from outside trusted networks; JetBrains says the flaw affects servers "reachable over HTTP(S)".
- Check whether the security patch plugin is installed on servers you have not updated. Ostorlab notes that the plugin does not change the server version, so a version check alone does not show whether a server is protected.
- Search teamcity-server.log for "of the existing agent, but different authorization token" from as far back as your logs go. JetBrains says entries with a non-empty token may indicate a takeover attempt.
- For each non-empty token entry, use its timestamp to review that agent's connection history and the builds assigned to it around that time, check that the hostname and source IP address match what you expect for that agent, and compare build logs, results and published artifacts. These are JetBrains' steps.
- List the secrets your builds receive: cloud keys, registry and package tokens, signing keys, deployment credentials and parameters marked as passwords. Those are the credentials to rotate if an agent was taken over.
Workaround and Mitigation
JetBrains' options are:
- Update to 2026.1.7, 2026.2.3 or 2026.3, through the download page or TeamCity's automatic update. JetBrains strongly recommends this option.
- Apply the security patch plugin on TeamCity 2021.2 or later if you cannot update. On 2024.03 through 2026.2.1, JetBrains says to review and apply pending patches under Administration, Updates. On 2026.2.2 and later, JetBrains recommends setting security patches to install automatically.
- Additional mitigation: JetBrains says to "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 connect through. Ostorlab notes that this restriction does not fix the server and does not stop an attacker sending from an allowed address.
JetBrains' best practices are to limit access to the server to trusted networks, use a VPN or other network access controls for users and agents outside those networks, keep TeamCity up to date, and run the server and build agents on separate hosts.
If you suspect exploitation, JetBrains says to "preserve relevant logs and build results, update or patch the server, and rotate any credentials passed to potentially affected builds." JetBrains also says artifacts from those builds stay untrusted until verified, and that their use and deployment need to be traced.
Rescana guidance for the days that follow:
- Preserve logs before you change anything. Copy teamcity-server.log and build results first, as watchTowr's FAQ also advises.
- The plugin and the allowlist are not the end state. Plan the update to a fixed release, since the plugin covers only this CVE.
- Rotate at the issuer. When you rotate a build secret, revoke the old value at the service that issued it, not only in TeamCity.
- Trace artifacts. For any build that ran on an agent you cannot vouch for, find where its artifacts were deployed or consumed and rebuild them from a trusted agent.
Indicators of Compromise
JetBrains, watchTowr, Ireland's NCSC and the NVD record publish no addresses, domains or file hashes for this flaw, and we publish none of our own. The signal the sources name is this:
- teamcity-server.log: entries containing "of the existing agent, but different authorization token" with a non-empty token (JetBrains). An empty token is expected.
Rescana guidance: also compare each agent's recorded hostname and source address with your inventory, look for agents that connected from unexpected networks or at unexpected times, and review builds that ran on an agent around the time of a non-empty token entry. If you find one, preserve the evidence before you clean up.
Timeline (EST)
- 24 November 2026: Jiawei Guo reports the flaw privately to JetBrains (date only).
- 2 December 2026: JetBrains publishes its advisory and the fixed releases 2026.1.7, 2026.2.3 and 2026.3, plus the security patch plugin (date only).
- 2 December 2026, 5:18 p.m. EST: NVD publishes the CVE-2026-136858 record.
- 3 December 2026: watchTowr observes exploitation attempts via its Attacker Eye honeypot network (date only).
- 3 December 2026, 10:32 p.m. EST: watchTowr publishes its CVE-2026-136858 FAQ.
- 4 December 2026: Ireland's NCSC issues its advisory, and BleepingComputer reports watchTowr's observation (date only).
- 4 December 2026, 1:49 p.m. EST: CISA releases KEV catalog version 2026.12.04, which does not include CVE-2026-136858.
- 5 December 2026, about 1:07 a.m. EST: our checks of every source below; NVD's record was last modified at 12:19 a.m. EST on 3 December 2026.
Third-Party Risk (TPRM) Angle
A supplier's TeamCity server holds the credentials its builds use and produces the software it ships, so a taken over build agent at a supplier can expose secrets that reach the supplier's cloud and release systems, and can put tampered artifacts into software you receive (Rescana reading). JetBrains' fix is simple to apply, but a supplier that has already updated may still need to check its logs and rotate build secrets, because updating does not undo an earlier takeover (Rescana reading).
Questions that give a usable answer:
- Do you run TeamCity On-Premises to build or release software or services that you provide to us?
- Are your TeamCity servers on 2026.1.7, 2026.2.3 or 2026.3, or do they have JetBrains' security patch plugin installed, and since what date?
- Did you search teamcity-server.log for non-empty token entries of the message JetBrains names, and what did you find?
- If any entry was found, which build secrets did you rotate, and did you check the artifacts from affected builds before they reached us?
- How and how quickly would you tell us if build credentials or artifacts linked to our services were affected?
Need help working out which suppliers run TeamCity On-Premises in their build pipelines, and whether they have updated and checked their logs? Our team can help you prioritize them and track their answers. Talk to an expert
Sources
We read every source below at about 1:07 a.m. EST on 5 December 2026.
- JetBrains: Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858) (summary, affected and fixed versions, patch plugin, TeamCity Cloud status, reporter, exploitation statement, log check, additional mitigation, best practices).
- NVD API: CVE-2026-136858 (description, score source, vector, weakness, affected data, CISA SSVC entry, publication and modification times; the NVD web page renders with JavaScript).
- NCSC Ireland: Critical Vulnerability in JetBrains: TeamCity, CVE-2026-136858 (advisory of 4 December 2026, CVSS, EPSS, weakness, recommendation).
- watchTowr: JetBrains TeamCity Authentication Bypass (CVE-2026-136858) FAQ (exploitation status, exploitation attempts observed 3 December 2026, fix and log guidance, earlier TeamCity KEV entries).
- BleepingComputer: Critical JetBrains TeamCity flaw exploited to hijack build agents (report of 4 December 2026 quoting watchTowr; CISA's September 2026 warning on CVE-2026-63077).
- Ostorlab: TeamCity Build Agent Auth Bypass (CVE-2026-136858) (patch plugin behavior, version check limits, allowlist limits).
- CISA: KEV catalog JSON feed (catalogVersion 2026.12.04, 1,814 entries, released 1:49 p.m. EST on 4 December 2026; does not list CVE-2026-136858; lists CVE-2023-42793, CVE-2024-27198, CVE-2024-27199 and CVE-2026-63077).



