Attackers hit JetBrains TeamCity with 9.1 auth bypass within a day of disclosure

Attackers began actively exploiting a critical authentication bypass in JetBrains TeamCity roughly 24 hours after the vendor disclosed it, using the flaw to impersonate build agents, steal credentials and tamper with software builds, Security Affairs reports.

JetBrains disclosed CVE-2026-136858 on 2 December, assigning it a CVSS score of 9.1, according to the vendor advisory cited by Security Affairs. The same report says observed attacks followed within about a day of that disclosure, and that the advisory covers all TeamCity On-Premises versions while TeamCity Cloud is not impacted. Readers should consult the JetBrains advisory directly for the authoritative scope and the specific fixed version.

A patch window measured in hours

The timeline is the story here. Defenders running self-hosted continuous-integration infrastructure have historically been able to treat a critical CVE as a scheduled task — triage on Monday, patch over the weekend. That assumption no longer holds. When the interval between vendor advisory and observed exploitation collapses to roughly a day, the practical patch window becomes hours, not weeks.

It is not yet publicly established whether the attackers already possessed knowledge of the flaw before 2 December — a genuine zero-day — or whether they reverse-engineered the patch quickly after disclosure. Either scenario carries the same operational consequence: internet-reachable TeamCity instances should be treated as potentially compromised from 2 December onward, not merely as pending a patch.

Why build-agent impersonation matters

The flaw sits in the trust relationship between the TeamCity server and its build agents, which is what makes it unusually dangerous for a CI/CD environment. Build agents are the workers that compile code, run tests and produce release artefacts; they routinely hold registry tokens, cloud credentials, signing keys and repository access.

An unauthenticated attacker who can register as a bogus agent does not merely gain a foothold on a server — they gain a seat inside the build pipeline itself. From that position, the attacker can harvest secrets exposed to jobs and poison the artefacts those jobs produce. A server-side authentication bug thus converts directly into a supply-chain incident, with poisoned builds propagating downstream to every consumer of the affected software.

What defenders should do now

For teams operating self-hosted instances, the response checklist should be immediate and layered:

  • Patch urgently. Deploy the fixed version specified in the JetBrains advisory without waiting for a routine maintenance window.
  • Assume exposure. Treat any instance reachable from the internet since 2 December as potentially compromised until proven otherwise.
  • Audit registered agents. Review the agent list for unfamiliar or unexpected entries, and constrain which hosts are permitted to register against the server going forward.
  • Rotate secrets. Any credential that a build job could have accessed — cloud keys, tokens, signing material — should be considered exposed and rotated.
  • Review build logs and artefacts. Agent-registration checks alone will not catch an attacker who joined mid-job, so inspect recent builds for unexpected agent connections, anomalous job behaviour or altered artefacts.
  • Constrain agent trust. Revisit how agents authenticate to the server and narrow registration permissions to reduce the blast radius of any future abuse.

Why it matters beyond JetBrains users

TeamCity sits at the centre of many organisations' release pipelines, and CI/CD systems have become a favoured target for supply-chain attacks precisely because compromising one yields leverage over everything built downstream. This is not a new pattern: the SolarWinds compromise of 2020 turned a build and update mechanism into a distribution channel for malicious code, and the XZ Utils backdoor of 2024 showed that even foundational open-source tooling can be subverted at the source. TeamCity is the latest entry in a recurring lesson — build systems are pivot points, and attacking them pays compounding dividends.

For DevOps and platform teams, the practical distinction is between two different remediations. Patching the server closes the door; it does not tell you what an attacker already carried through it. That is why the checklist above is deliberately pipeline-centric: auditing agents, rotating secrets and inspecting artefacts address the possibility that a compromised build environment has already poisoned artefacts or leaked credentials, regardless of how quickly the patch lands.

The broader lesson is about cadence. When the gap between disclosure and exploitation is measured in hours, patch prioritisation can no longer be driven by CVSS score alone; reachability and exposure since the disclosure date become the more actionable filters.

Security Affairs reported the exploitation activity following JetBrains' 2 December advisory. Teams operating affected On-Premises versions should consult the vendor advisory for the specific fixed version and apply it as a priority.


攻擊者在漏洞公開一日內即利用 9.1 分身份驗證繞過漏洞攻擊 JetBrains TeamCity

據 Security Affairs 報道,攻擊者在 JetBrains 就其 TeamCity 一項嚴重身份驗證繞過漏洞作出披露約 24 小時後,即開始主動利用該漏洞,假冒 build agent、竊取憑證並篡改軟件 build。

根據 Security Affairs 所引用的廠商公告,JetBrains 於 12 月 2 日披露 CVE-2026-136858,評分為 CVSS 9.1 分。同一報道指,所觀察到的攻擊在該次披露後約一日內隨即出現,並稱該公告涵蓋所有 TeamCity On-Premises 版本,而 TeamCity Cloud 則不受影響。讀者應直接查閱 JetBrains 公告,以獲取權威的影響範圍及具體的已修復版本。

以小時計算的修補窗口

今次事件的關鍵在於時間線。過往,自行託管持續整合(continuous integration)基礎設施的防禦者,一向可以把嚴重 CVE 視為例行工作處理——星期一進行分類評估,周末再作修補。這個假設已不再成立。當廠商公告與觀察到的利用之間的間隔縮短至約一日,實際的修補窗口便由數週縮短為數小時。

目前尚未有公開資料確認,攻擊者是否在 12 月 2 日之前已掌握該漏洞資訊——即真正的 zero-day——抑或是在披露後迅速逆向工程分析補丁。無論哪種情況,營運後果相同:從 12 月 2 日起,可從互聯網連接的 TeamCity 實例應被視為可能已被入侵,而不應僅視為等待修補。

為何冒充 build agent 如此重要

該漏洞位於 TeamCity server 與其 build agent 之間的信任關係,正因如此,它對 CI/CD 環境構成異常嚴重的威脅。Build agent 是負責編譯代碼、執行測試及產出 release artefacts 的工作節點;它們通常持有 registry token、雲端憑證、簽署金鑰及 repository 存取權限。

一名能夠註冊為虛假 agent 的未經身份驗證攻擊者,不但在 server 上取得立足點,更獲得了 build pipeline 內部的一席之地。攻擊者從這一位置,可以蒐集對 jobs 暴露的機密資料,並毒化這些 jobs 產出的 artefacts。伺服器端的驗證漏洞因此直接轉化為供應鏈事故,被毒化的 build 會向下傳播至該受影響軟件的每一名消費者。

防禦者現時應採取的措施

對於運作自行託管實例的團隊,應對清單必須即時並分層執行:

  • 緊急修補。 立即部署 JetBrains 公告指定的已修復版本,毋須等待例行維護窗口。
  • 假定已受影響。 自 12 月 2 日起可從互聯網連接的任何實例,在獲證實之前,應視為可能已被入侵。
  • 審計已註冊的 agent。 檢查 agent 清單,留意陌生或不尋常的項目,並限制日後哪些主機獲准向 server 註冊。
  • 輪換機密資料。 任何 build job 可能接觸過的憑證——雲端金鑰、token、簽署材料——均應視為已外洩並進行輪換。
  • 檢視 build logs 及 artefacts。 僅靠 agent 註冊檢查無法發現中途加入 job 的攻擊者,因此應檢查近期 builds 是否出現預期以外的 agent 連線、異常 job 行為或遭改動的 artefacts。
  • 限制 agent 信任。 重新檢視 agent 如何向 server 進行身份驗證,收緊註冊權限,以降低日後任何濫用行為的影響範圍。

為何事件的重要性超越 JetBrains 用戶

TeamCity 位於許多機構 release pipelines 的核心,而 CI/CD 系統之所以成為供應鏈攻擊的首選目標,正是因為攻陷一個系統即可對下游所有建置成果取得籌碼。這並非新現象:2020 年的 SolarWinds 事件將 build 及更新機制變成惡意代碼的分發渠道;2024 年的 XZ Utils 後門則表明,即使是最基礎的 open source 工具,也可能在源頭遭到篡改。TeamCity 是這一反覆出現的教訓的最新一例——build 系統是樞紐點,攻擊它們可帶來複利式、不斷累積的回報。

對 DevOps 及 platform 團隊而言,實際區別在於兩種不同的補救措施。修補 server 是關上了門,卻無法告知攻擊者已透過這扇門帶走了甚麼。這正是上述清單刻意以 pipeline 為中心的原因:審計 agent、輪換機密資料及檢查 artefacts,都是針對受入侵的 build 環境可能已經毒化 artefacts 或洩露憑證的可能性,不論修補程序落實得有多快。

更宏觀的教訓在於節奏。當披露與利用之間的間隔以小時計算時,修補的優先次序已不能再僅由 CVSS 評分決定;自披露日期以來的可連接性及暴露程度,才是更具操作性的篩選標準。

Security Affairs 報道了 JetBrains 12 月 2 日公告後出現的利用活動。運作受影響 On-Premises 版本的團隊應查閱廠商公告,確認具體的已修復版本並優先套用。

新聞來源 / Original News Source