Threat reportVulnerabilityTL-2026-7370
Critical JetBrains TeamCity On-Premises Flaw (CVE-2026-136858) Lets Unauthenticated Attackers Hijack Build Agents
JetBrains disclosed CVE-2026-136858 (CVSS 9.1), an authentication bypass during build agent registration that affects all TeamCity On-Premises versions before 2026.3, 2026.2.3 and 2026.1.7. An unauthenticated attacker with HTTP(S) access to the server can impersonate an authorized build agent, intercept its builds, access build secrets and tamper with build results and artifacts.
Key facts
| Identifiers | TL-2026-7370, CVE-2026-136858, CVE-2026-63077 |
|---|---|
| Severity | CRITICAL |
| CVSS | 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) |
| First disclosed | |
| EPSS | CVE-2026-63077: 0.6% (47.3th percentile) |
| Affected products | JetBrains TeamCity On-Premises; JetBrains TeamCity Cloud |
| Weaknesses (CWE) | CWE-639 |
| Tools | TeamCity security patch plugin |
| MITRE ATT&CK techniques | T1036 Masquerading, T1190 Exploit Public-Facing Application, T1195 Supply Chain Compromise, T1550 Use Alternate Authentication Material, T1552 Unsecured Credentials, T1565 Data Manipulation |
| Motivation | UNKNOWN |
| Target sectors | technology, software development, critical infrastructure, finance |
| Target regions | Global |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-12-03, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7370 across Splunk SPL, Microsoft KQL and Sigma, covering 11 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: TeamCity Agent Authorization Token Mismatch (CVE-2026-136858) - Exploitation
Detects the JetBrains-published hunting indicator for CVE-2026-136858 in teamcity-server.log: the message 'of the existing agent, but different authorization token' carrying a NON-empty token. An empty token is routine reconnect behaviour; a non-empty token indicates a possible build agent displacement/impersonation attempt via the agent registration authentication bypass (CVSS 9.1, CWE-639). Token values are never emitted in results. Escalates when several distinct tokens or repeated mismatches hit the same server.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1190, T1550, T1036
- Data sources: teamcity-server.log (index=teamcity, sourcetype=teamcity:server), TeamCityServer_CL (Sentinel custom log)
- Severity: high
- Confidence: high
Splunk SPL
index=teamcity sourcetype="teamcity:server" source="*teamcity-server.log" earliest=-24h "of the existing agent, but different authorization token"
| rex field=_raw "different authorization token \x22(?<auth_token>[^\x22]*)\x22"
``` Empty token is routine reconnect behaviour; non-empty token is a possible agent displacement attempt ```
| where len(auth_token) > 0
| stats count AS mismatch_events dc(auth_token) AS distinct_tokens earliest(_time) AS first_seen latest(_time) AS last_seen BY host source
| convert ctime(first_seen) ctime(last_seen)
| eval cve="CVE-2026-136858", mitre="T1190,T1550,T1036", severity=if(distinct_tokens>1 OR mismatch_events>=3, "critical", "high")
| table first_seen last_seen host source mismatch_events distinct_tokens severity cve mitreMicrosoft KQL
TeamCityServer_CL
| where TimeGenerated > ago(24h)
| where RawData has "of the existing agent, but different authorization token"
| extend AuthToken = extract(@'different authorization token "([^"]*)"', 1, RawData)
| where isnotempty(AuthToken)
| summarize MismatchEvents = count(), DistinctTokens = dcount(AuthToken), FirstSeen = min(TimeGenerated), LastSeen = max(TimeGenerated) by Computer
| extend Severity = iff(DistinctTokens > 1 or MismatchEvents >= 3, "critical", "high")
| project FirstSeen, LastSeen, Computer, MismatchEvents, DistinctTokens, SeveritySigma
title: TeamCity Build Agent Authorization Token Mismatch CVE-2026-136858
id: 7c1e5a2e-3b9d-4f6a-9d0e-1a2b3c4d5e01
status: experimental
description: Detects the JetBrains-published indicator for CVE-2026-136858 in teamcity-server.log, an existing agent connecting with a different and non-empty authorization token, which signals possible build agent impersonation.
references:
- https://nvd.nist.gov/vuln/detail/cve-2026-136858
- https://thehackernews.com/2026/12/critical-jetbrains-teamcity-flaw-lets.html
author: Threadlinqs Team
date: 2026-12-03
tags:
- attack.initial-access
- attack.t1190
- attack.defense-evasion
- attack.t1550
- attack.t1036
- cve.2026-136858
logsource:
product: teamcity
service: server
detection:
selection:
Message|contains: 'of the existing agent, but different authorization token'
selection_nonempty:
Message|re: 'different authorization token "[^"]+"'
condition: selection and selection_nonempty
fields:
- Computer
- Message
falsepositives:
- Legitimate agent re-registration after a token reset or agent reinstall on the same host
- Cloned agent images that reuse an agent name
level: high
Known false positives:
- Legitimate agent re-registration after an agent reinstall, token reset or restored VM snapshot
- Cloned or auto-scaled agent images that reuse an agent name
Tuning notes: The index, sourcetype and Sentinel table are deployment-specific names for teamcity-server.log ingestion; map them to your forwarder. Verify the exact log message text against a sample after upgrade. Exclude known agent hostnames once a mismatch is confirmed benign. Correlate each hit with agent connection history, source IP/hostname, active builds, and build logs/artifacts from the same window, and rotate secrets exposed to the agent if a rogue agent is confirmed.
- TeamCity Agent Registration POST From Non-Approved Source · unlock with TL Creds
- Scripted HTTP Client Impersonating TeamCity Build Agent on [indicator] · unlock with TL Creds
- TeamCity Agent Commands Error Endpoint Probing (Related CVE-2026-63077 Surface) · unlock with TL Creds
- Unexpected .jspws File Created Under TeamCity Web Root (Related CVE-2026-63077) · unlock with TL Creds
- Shell Spawned By TeamCity Server Process - Post-Exploitation · unlock with TL Creds
- Build Agent Process Harvesting Secrets and Credential Files - Supply Chain · unlock with TL Creds
- TeamCity Token Mismatch Followed by Build and Artifact Activity - Post-Exploitation · unlock with TL Creds
- TeamCity [indicator] Access From Non-Approved Source - Agent Surface Probing · unlock with TL Creds
Indicators of compromise
As of 2026-12-03, Threadlinqs Intelligence tracks 11 indicators of compromise for TL-2026-7370.
Technical analysis
JetBrains reports no evidence of active exploitation as of 2026-12-03.
CVE-2026-136858 is an authentication bypass in the agent registration flow of JetBrains TeamCity On-Premises. The CVE record (CNA: JetBrains) states that the bypass 'allowed takeover of authorized build agents'. NVD scores it CVSS 3.1 9.1 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N) and maps it to CWE-639 (Authorization Bypass Through User-Controlled Key). NVD analysis was still 'Awaiting Analysis' on 2026-12-03. The flaw was reported privately by Jiawei Guo on 2026-11-24 and disclosed by JetBrains on 2026-12-02.
Per JetBrains (as relayed by The Hacker News and other coverage), an attacker who can reach the TeamCity server over HTTP or HTTPS needs no TeamCity account to impersonate an existing authorized build agent. A rogue agent can displace the legitimate agent and receive its pending jobs. From that position the attacker can read credentials and other secrets passed to the agent, falsify build results, and publish tampered artifacts. Downstream builds that consume those artifacts can then run attacker-supplied code, which makes this a CI/CD supply-chain risk. TeamCity Cloud was remediated by JetBrains and needs no customer action; JetBrains reports no evidence of compromise there.
All TeamCity On-Premises versions are affected. Fixes ship in 2026.1.7, 2026.2.3 and 2026.3. For servers that cannot be upgraded or restarted, JetBrains provides a security patch plugin for TeamCity 2021.2 and later. The plugin addresses only this CVE and does not carry other cumulative fixes. A reverse-proxy workaround restricts /app/agents and all subpaths to the IP addresses build agents legitimately use, including cloud-agent egress and NAT gateway addresses.
Detection guidance published in secondary coverage, attributed to JetBrains, is to search teamcity-server.log for the message 'of the existing agent, but different authorization token "<token>"'. An empty token is routine connection behaviour. A non-empty token is a possible displacement attempt and should be correlated with agent connection history, source IP and hostname, active builds and job assignments, and the build logs and artifacts from that window.
No public exploit, threat actor, campaign or network IOC is documented in the sources reviewed. A Sploitus listing for the CVE contained only description text, so it is not treated as a working PoC. Technical root cause and request-level mechanics are not published by JetBrains or NVD, and some secondary sites add unverified details (forged headers, default ports) that are excluded here. For context, the same product's earlier CVE-2026-63077 (CVSS 9.8, unauthenticated RCE via the agent polling protocol, added to CISA KEV on 2026-08-05) is a distinct vulnerability on the same /app/agents attack surface and was exploited in the wild. Its indicators are recorded below and labelled as related context only, because they have not been shown to apply to CVE-2026-136858.
MITRE ATT&CK techniques by tactic:
Defense Evasion
Initial Access
T1190 Exploit Public-Facing Application; T1195 Supply Chain Compromise
lateral-movement
T1550 Use Alternate Authentication Material
Credential Access
Impact
Remediation
Patches
- Upgrade TeamCity On-Premises to 2026.1.7, 2026.2.3 or 2026.3
- Servers on 2024.03 to 2026.2.1 can apply the fix manually under Administration > Updates
Immediate actions
- Inventory all TeamCity On-Premises servers and confirm the running version
- Restrict /app/agents and all subpaths at the reverse proxy to the IP addresses of legitimate build agents, including static, auto-scaling, cloud egress and NAT gateway addresses
- Search teamcity-server.log for 'of the existing agent, but different authorization token' entries with a non-empty token and investigate each one
- If a rogue agent is confirmed, preserve logs, rotate all secrets exposed to the agent, and quarantine artifacts built in the affected window
Workarounds
- Install the JetBrains security patch plugin (TeamCity 2021.2 and later; no restart required; addresses this CVE only)
- Allowlist /app/agents and its subpaths at the reverse proxy
Longer-term hardening
- Keep TeamCity servers off the public internet, for example behind a VPN, and run build agents on separate hosts
- Enable the TeamCity 'Security patches' update mode (2026.2.2 and later) so security fixes install automatically
- Verify artifact integrity and provenance before promoting build outputs to production
- Review registered agents regularly for unexpected identity or authorization changes
Affected and fixed versions
- JetBrains — TeamCity On-Premises
Vulnerable versions: All versions prior to 2026.3; 2026.2.x prior to 2026.2.3; 2026.1.x prior to 2026.1.7; Older releases back to 2021.2 (patch plugin available)
Fixed in: 2026.1.7; 2026.2.3; 2026.3 - JetBrains — TeamCity Cloud
Fixed in: Remediated by JetBrains; no customer action required
Timeline
- Related context: JetBrains publishes the advisory for the earlier TeamCity CVE-2026-63077 (CVSS 9.8, unauthenticated RCE via the agent polling protocol), a distinct flaw on the same /app/agents attack surface.
- Related context: CISA adds CVE-2026-63077 to the Known Exploited Vulnerabilities catalog, confirming in-the-wild exploitation of TeamCity On-Premises.
- Related context: Rapid7 publishes root-cause analysis and a PoC for CVE-2026-63077, documenting the /app/agents/v1 polling protocol and detection indicators.
- Researcher Jiawei Guo privately reports the agent registration authentication bypass (CVE-2026-136858) to JetBrains.
- JetBrains states TeamCity Cloud has been remediated, requires no customer action, and shows no evidence of compromise.
- JetBrains discloses CVE-2026-136858 and ships fixes in TeamCity 2026.1.7, 2026.2.3 and 2026.3, together with a security patch plugin for 2021.2 and later. The CVE record is published to NVD at 22:18 UTC.
- The Hacker News and other outlets report the flaw. JetBrains reports no evidence of active exploitation, and NVD analysis remains pending (record last modified 05:19 UTC).
Sources cited
- NVD - CVE-2026-136858 NVD (NIST) · Advisory · 2026-12-02
- CVE-2026-136858: TeamCity Agent Bypass, Fix Status (Brandefense) brandefense.io · Research · 2026-12-03
- Related: Rapid7 - Unauthenticated RCE in JetBrains TeamCity (CVE-2026-63077) agent polling protocol analysis Rapid7 · Research · 2026-08-07
- Critical JetBrains TeamCity Flaw Lets Attackers Hijack Build Agents Without Authentication The Hacker News · News · 2026-12-03
- TeamCity Build Agent Impersonation: Patches and Log Checks gadget-rumours.com · News · 2026-12-03
- JetBrains Dec 2026 Fixes 12 Flaws, Bypass CVE-2026-136858 (SecurityOnline) securityonline.info · News · 2026-12-03
- Related: CISA flags TeamCity CVE-2026-63077 RCE as exploited (KEV added 2026-08-05) The Hacker News · News · 2026-08-05
Other reports on CVE-2026-63077
- Dragos Q3 2026: Industrial Ransomware Incidents Up 11% to 1,266, Manufacturing 69% of Victims
- Kaspersky Q3 2026 Non-Mobile Threat Landscape: Qilin Ransomware via CVE-2026-0257, INC Ransom via SonicWall SMA1000 CVE-2026-15409/15410, macOS Stealers (PamStealer, MacSync, Overlord) and npm/PyPI/crates.io Supply-Chain Backdoors
- CVE-2026-63077: Unauthenticated RCE in JetBrains TeamCity On-Premises via Agent Polling Protocol
AI-drafted from 7 cited sources; published ; last updated —.