---
schema: 1
kind: vulnerability
title: "JetBrains TeamCity On-Premises CVE-2026-136858: unauthenticated build-agent takeover rated Critical, all versions affected"
headline: "TeamCity On-Premises CVE-2026-136858: unauthenticated build-agent takeover; update or install the patch plugin"
summary: >
  JetBrains rated CVE-2026-136858 in TeamCity On-Premises Critical on 2026-12-02: an unauthenticated attacker who can reach the server over HTTP(S) may impersonate an existing authorized build agent, intercept its builds and secrets and tamper with build results and artifacts. The fix is 2026.1.7, 2026.2.3 or 2026.3, or a security patch plugin for 2021.2 and later; JetBrains is not aware of active exploitation as of 2026-12-02.
discovered_at: "2026-12-02T23:43:10Z"
updated_at: null
event_date: "2026-12-02"
run_id: 2026-12-02T2329Z-intel
priority: notable
immediate_action: null
tags: [vulnerabilities, supply-chain, auth-bypass, pre-auth, patch-available]
regions: [global]
sectors: [technology]
entities: ["product:jetbrains-teamcity-on-premises"]
techniques: [T1190, T1195.002]
affected_products: ["JetBrains TeamCity On-Premises"]
cves:
  - id: CVE-2026-136858
    cvss: "9.1"
    epss: null
    type: auth-bypass
    vector: zero-click
    auth: pre-auth
    status: [patch-available]
    affected: "All TeamCity On-Premises versions"
    fixed: "2026.1.7, 2026.2.3 and 2026.3 (a security patch plugin covers 2021.2 and later)"
sources:
  - url: "https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/"
    publisher: "JetBrains TeamCity blog (Andrey Koltsov)"
    date: "2026-12-02"
    role: primary
  - url: "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-141890"
    publisher: "ENISA EUVD (record EUVD-2026-141890, assigner JetBrains)"
    date: "2026-12-02"
    role: corroborating
closed_sources: []
evidence:
  - quote: "If exploited, this vulnerability may allow an unauthenticated attacker who can reach a TeamCity server over HTTP(S) to impersonate an existing authorized build agent."
    publisher: "JetBrains TeamCity blog"
    source_url: "https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/"
  - quote: "At the time of publishing this advisory, we are not aware of any active exploitation of this vulnerability."
    publisher: "JetBrains TeamCity blog"
    source_url: "https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/"
verification: single-source
sourcing_note: >
  JetBrains is the vendor of its own product and its advisory is the primary source. The CVSS score is the one ENISA's EUVD record carries with JetBrains as assigner, while the advisory itself prints no numeric score, so the two share one assessor. JetBrains says it is not aware of any active exploitation at publication.
confidence: high
references:
  - 2026-09-06/jetbrains-cadence-teamcity-cve-2026-63077-breach
deep_dive: false
deep_dive_category: null
org_triage: null
classification:
  reliability: A
  credibility: 2
watchlist_hit: false
actions:
  - "Update every TeamCity On-Premises server to 2026.1.7, 2026.2.3 or 2026.3, or install the CVE-2026-136858 security patch plugin (2021.2 and later, no restart)."
updates: []
migrated_from: null
---

JetBrains says that, if exploited, CVE-2026-136858 may allow an unauthenticated attacker who can reach a TeamCity On-Premises server over HTTP(S) to impersonate an existing authorized build agent, and the attacker does not need a TeamCity user account ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)). A successful exploitation could displace the legitimate agent and intercept the builds assigned to it, which can expose credentials and other secrets passed to the agent ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)). The attacker could also falsify build results or publish tampered artifacts, and downstream builds that consume those artifacts could execute attacker-supplied code ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)). All TeamCity On-Premises versions are affected; the fix is in 2026.1.7, 2026.2.3 and 2026.3, and a security patch plugin for 2021.2 and later installs without restarting the server ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)). ENISA's vulnerability database, with JetBrains as assigner, records CVSS 3.1 base score 9.1 for the flaw with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N ([ENISA EUVD, 2026-12-02](https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-141890)). JetBrains fixed TeamCity Cloud itself and found no evidence that any Cloud environment was exploited through the flaw, and it was not aware of any active exploitation at publication ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)).

**Exposure:** every TeamCity On-Premises server reachable over HTTP(S), in every version, unless it runs 2026.1.7, 2026.2.3 or 2026.3 or has the patch plugin installed ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)). JetBrains advises limiting server access to trusted networks, using a VPN or other network access controls for users and agents that connect from outside, and running the server and the build agents on separate hosts ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)).

**Detection:** the server application log: JetBrains says to search `teamcity-server.log` for entries containing "of the existing agent, but different authorization token" and a non-empty token, then use the timestamp to check that the affected agent's hostname and source address match what is expected, and compare its connection history with the build logs, build results and published artifacts ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)). If exploitation is suspected, JetBrains says to preserve the logs and build results, update or patch the server, rotate the credentials passed to potentially affected builds and treat artifacts from those builds as untrusted until verified ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)).

**Triage:** entries with an empty token are expected and can be disregarded for this check, while a non-empty token may indicate an attempt to take over an existing build agent ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)).

**Defender takeaway:** update to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin, which TeamCity 2026.2.2 and later can install automatically when automatic security patch installation is enabled ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)). JetBrains also suggests, as an additional mitigation, allowing requests to `/app/agents` and its subpaths only from the addresses where legitimate build agents originate, including the outbound addresses of cloud agents and NAT gateways ([JetBrains, 2026-12-02](https://blog.jetbrains.com/teamcity/2026/12/cve-2026-136858/)).
