JetBrains TeamCity On-Premises auth bypass CVE-2026-136858 exploited in the wild a day after disclosure, alongside 11 Ktor and Kotlin fixes
Matéria consolidada. Reúne 2 matérias que o Tifon tinha publicado separadamente sobre a mesma história. A IA reescreveu o relatório com o que as 7 fontes trouxeram em 04/12/2026 18:01; os links antigos trazem para cá.
Fontes: securityaffairs.com ↗ bleepingcomputer.com ↗ securityweek.com ↗ helpnetsecurity.com ↗ thehackernews.com ↗ securityonline.info ↗ darkwebinformer.com ↗
JetBrains disclosed CVE-2026-136858 (CVSS 9.1, CWE-639) on 2 December 2026. It is a critical authentication bypass in TeamCity On-Premises: an unauthenticated attacker who can reach the server over HTTP(S) can impersonate or displace a legitimate build agent. That exposes build secrets such as deployment keys, cloud tokens and registry passwords, and allows falsified build results or tampered artifacts, so downstream builds could run attacker code, a software supply chain risk (helpnetsecurity.com, thehackernews.com). Researcher Jiawei Guo reported it privately on 24 November 2026. JetBrains said at disclosure that it knew of no exploitation, but on 4 December securityweek.com reported, citing watchTowr, that exploitation began about one day after disclosure against its honeypots. The fix is in TeamCity 2026.1.7, 2026.2.3 and 2026.3, and TeamCity Cloud has already been updated. The same JetBrains release covered 12 flaws in total (one Critical, four High, seven Medium) across TeamCity, Ktor and Kotlin (securityonline.info).
Entenda a falha
A vulnerabilidade
CVE-2026-136858 (CVSS 9.1, CWE-639) is an authentication bypass in JetBrains TeamCity On-Premises, in the build agent handling over HTTP(S). An unauthenticated attacker who can reach the server, with no TeamCity account, can impersonate a build agent the server already trusts and receive its jobs. That exposes credentials passed to those jobs and allows false build results or modified output files that later builds may run. All On-Premises versions before 2026.1.7, 2026.2.3 and 2026.3 are affected, and those three are the fixed releases. TeamCity Cloud is already patched. The same release fixes 11 more flaws: Ktor before 3.6.2 (high: CVE-2026-142046, CVE-2026-142044, CVE-2026-142043), Kotlin before 2.5.0 (high: CVE-2026-135284) and several medium ones.
Como funciona
TeamCity has a central server and separate build agents that run the jobs the server assigns. Agents poll the server over HTTP(S), and the server hands each one the credentials its builds need. In this flaw, an outsider reaching the agent endpoints can take the place of an agent the server already knows. This requires knowing that agent's ID. Per watchTowr, as relayed by BleepingComputer, IDs typically start at 1 and are easy to predict, so this is no real obstacle. Once the server accepts the impostor, it sends it the jobs meant for the real agent, so credentials leak and false results or altered files can be returned. JetBrains did not describe the exact step where the check fails.
Por que é vulnerável
The flaw is classed as CWE-639, authorization bypass through a user-controlled key: a client-supplied agent identifier appears to be enough to claim an existing agent's place, without proving it is that agent. JetBrains did not detail the root cause, and the articles do not say why it went unnoticed or what the fix changes in code. The patch and the separate security patch plugin fix only this vulnerability.
Onde está
The flaw is in TeamCity On-Premises agent registration and polling; JetBrains advises allowing /app/agents and its subpaths only from legitimate agent IPs. No file, function or commit is named.
Como foi descoberta
Researcher Jiawei Guo reported the flaw privately on 24 November 2026, and JetBrains published its bulletin, fixes and IOCs on 2 December, saying it had observed no active exploitation. On 4 December watchTowr warned directly, in a statement quoted by BleepingComputer, that it was seeing attempted in-the-wild exploitation trying to take over build agents, only one day after disclosure. SecurityWeek adds that watchTowr's Jake Knott said the bug was reverse engineered, reproduced and exploited against its Attacker Eye honeypots, by the same actor that earlier exploited PHP2Shell on a PAN-OS honeypot. For detection, look in teamcity-server.log for the message 'of the existing agent, but different authorization token'; a non-empty token may indicate a takeover attempt.
PoC existente, privada
O exploit existe, mas quem o tem não o publicou.
No public PoC is cited. watchTowr says the bug was reverse engineered and a working exploit reproduced, and it reports attempted exploitation in the wild within a day of disclosure. No published copy is mentioned, and securityonline.info had said no public exploit code was known. Guessing the agent ID is the only prerequisite described, and it is easy. Since attacks are already underway, patch or restrict /app/agents now, starting with web-exposed servers and then those whose builds handle credentials.
Explicação gerada por IA a partir da matéria e dos artigos, em 04/12/2026 18:16.
Detalhes técnicos
- Affected: TeamCity On-Premises before 2026.3, 2026.2.3 and 2026.1.7, i.e. all unpatched versions (securityonline.info, darkwebinformer.com). TeamCity Cloud is not affected.
- JetBrains did not detail the root cause. No TeamCity account is needed. Agents use the agent polling protocol and the server hands them build credentials (helpnetsecurity.com).
- Exploitation requires knowing the ID of an established build agent. Observed attackers guessed agent IDs, which is easy when agents are numbered sequentially (securityweek.com).
- Per watchTowr's head of threat intelligence Jake Knott, the bug was reverse engineered, reproduced and exploited against the watchTowr Attacker Eye honeypot network. The same actor earlier exploited PHP2Shell against a PAN-OS honeypot (securityweek.com).
- Detection: look in teamcity-server.log for the message "of the existing agent, but different authorization token". A non-empty token may indicate a takeover attempt, while an empty token is expected behavior (helpnetsecurity.com). JetBrains shared IOCs on 2 December (securityweek.com).
- Context: CVE-2026-63077 (CVSS 9.8), an earlier critical TeamCity flaw, was added to CISA KEV about a week after disclosure. TeamCity was also targeted via CVE-2023-42793 and CVE-2024-27198 (helpnetsecurity.com, thehackernews.com).
- Ktor (fixed in 3.6.2; some fixes also in 3.5.3 and 3.4.4) (securityonline.info):
- High: CVE-2026-142046 (nested-block auth bypass, CVSS 8.1), CVE-2026-142044 (LDAP auth bypass, CVSS 7.4), CVE-2026-142043 (servlet data leak, CVSS 7.5).
- Medium: CVE-2026-142045 (shared cache leak), CVE-2026-142047 (JWT issuer check), CVE-2026-142048 (multi-provider auth bypass), CVE-2026-142049 (CIO proxy credential leak).
- Kotlin (all before 2.5.0) (securityonline.info):
- High: CVE-2026-135284 (path traversal via Multiplatform metadata, CVSS 8.1).
- Medium: CVE-2026-135282 (KAPT snapshot code execution), CVE-2026-135283 (path traversal in Kotlin/Native unpacking), CVE-2026-135285 (path traversal in Kotlin/JS package names).
Remediação
- Update TeamCity On-Premises to 2026.1.7, 2026.2.3 or 2026.3. Update Ktor to 3.6.2 and Kotlin to 2.5.0 (securityonline.info).
- If a restart is not possible, install the JetBrains security patch plugin (TeamCity 2021.2 and later, no restart needed). It fixes only this vulnerability (helpnetsecurity.com).
- On TeamCity 2026.2.2 and later, the patch can be installed unattended if automatic security patch installation is enabled (bleepingcomputer.com).
- Allow /app/agents and its subpaths only from the IPs of legitimate build agents, including outbound addresses of cloud agents and NAT gateways (thehackernews.com, helpnetsecurity.com).
- watchTowr advises patching web-accessible servers first, then servers whose builds handle credentials (securityweek.com).
- If compromise is suspected, preserve logs, rotate exposed credentials and verify build artifacts before trusting them (darkwebinformer.com). JetBrains has published guidance on verifying whether an attempt succeeded, including checking the agent's connection history, source IP and builds around the timestamp (helpnetsecurity.com, bleepingcomputer.com).
Relatos divergentes
- Exploitation status: darkwebinformer.com, securityonline.info, thehackernews.com and helpnetsecurity.com relayed JetBrains' statement of 2 December that it knew of no exploitation (securityonline.info added that no public exploit code was known). securityweek.com (4 December, the most recent source) reports that watchTowr saw exploitation about one day after disclosure and reproduced the exploit. This supersedes the earlier statements, though securityweek.com is a secondary report that does not link a primary watchTowr publication. Earlier, darkwebinformer.com had called the same claim unverified.
- TeamCity Cloud: described as already secured (darkwebinformer.com), updated automatically (securityweek.com) and needing no action (thehackernews.com). helpnetsecurity.com says JetBrains found no evidence of Cloud exploitation.
Linha do tempo
-
JetBrains TeamCity On-Premises auth bypass CVE-2026-136858 exploited to hijack build agents one day after disclosure
bleepingcomputer.com quotes watchTowr directly on attempted exploitation one day after disclosure. It adds that TeamCity 2026.2.2 and later can install the patch unattended when automatic security patch installation is enabled. It also notes that CISA warned in September 2026 that ransomware operators were targeting the earlier TeamCity flaw CVE-2026-63077.
ler a análise desta fonte ocultar
bleepingcomputer.com quotes watchTowr directly on attempted exploitation one day after disclosure. It adds that TeamCity 2026.2.2 and later can install the patch unattended when automatic security patch installation is enabled. It also notes that CISA warned in September 2026 that ransomware operators were targeting the earlier TeamCity flaw CVE-2026-63077.
Attackers are exploiting CVE-2026-136858, a critical authentication bypass in JetBrains TeamCity On-Premises, to hijack build agents. watchTowr reports attempted in-the-wild exploitation one day after JetBrains' 2 December bulletin. The flaw lets an attacker impersonate a build agent the server already trusts and receive its jobs. That can expose credentials passed to those jobs, or let the attacker return false build results or modified output files that run attacker code in later builds. Exploitation requires guessing a build agent ID, which is easy because IDs typically start at "1". JetBrains says it has observed no active exploitation. The fixes are in versions 2026.1.7, 2026.2.3 and 2026.3, and TeamCity Cloud is already patched.
Technical Details
- Affects all TeamCity On-Premises versions before 2026.1.7, 2026.2.3 and 2026.3.
- Indicators in teamcity-server.log: the line 'of the existing agent, but different authorization token .' A non-empty token may indicate a takeover attempt. In that case, review the agent's connection history, source IP and builds around the timestamp.
- Context: in September 2026 CISA warned that ransomware operators were targeting another TeamCity On-Premises flaw, CVE-2026-63077, to run arbitrary OS commands.
Remediation
- Update to 2026.1.7, 2026.2.3 or 2026.3.
- For 2021.2 and later, a JetBrains security patch plugin can be installed without a server restart.
- On 2026.2.2 and later, TeamCity can install the patch unattended if automatic security patch installation is enabled.
- Restrict '/app/agents' and its subpaths to the source IPs of legitimate build agents.
- If exploitation is suspected, preserve logs and build results, patch the server, rotate credentials passed to potentially affected builds, and treat their artifacts as untrusted until verified.
-
JetBrains TeamCity CVE-2026-136858 auth bypass exploited in the wild one day after disclosure, watchTowr reports
SecurityWeek reports, citing watchTowr's Jake Knott, that CVE-2026-136858 was exploited in the wild against watchTowr's honeypots about one day after disclosure. The attackers guessed build agent IDs, and the same actor had earlier exploited PHP2Shell against a PAN-OS honeypot. This resolves the earlier unverified exploitation claim.
ler a análise desta fonte ocultar
SecurityWeek reports, citing watchTowr's Jake Knott, that CVE-2026-136858 was exploited in the wild against watchTowr's honeypots about one day after disclosure. The attackers guessed build agent IDs, and the same actor had earlier exploited PHP2Shell against a PAN-OS honeypot. This resolves the earlier unverified exploitation claim.
Threat actors began exploiting CVE-2026-136858 (CVSS 9.1), an authentication bypass in JetBrains TeamCity On-Premises, about one day after JetBrains disclosed it on 2 December, according to watchTowr (securityweek.com). The flaw lets an unauthenticated attacker impersonate an existing build agent over HTTP(S). That exposes build secrets and allows tampering with build results and artifacts, which can lead to code execution in downstream builds. watchTowr's head of threat intelligence Jake Knott said the bug was reverse engineered, reproduced and exploited against the watchTowr Attacker Eye honeypot network. JetBrains had said on 2 December that it knew of no exploitation. This article is a secondary report and does not link a primary watchTowr publication.
Technical Details
- Exploitation requires knowing the ID of an established build agent. The observed attackers tried to guess agent ID numbers, which is easy when agents are numbered sequentially (securityweek.com).
- According to Knott, the same attacker earlier exploited PHP2Shell against a Palo Alto PAN-OS device in watchTowr's honeypots, which suggests a focus on high-impact flaws (securityweek.com).
- JetBrains shared IOCs on 2 December and advised restricting requests to /app/agents and its subpaths to trusted IPs (securityweek.com).
Remediation
- Update to TeamCity On-Premises 2026.1.7, 2026.2.3 or 2026.3. TeamCity Cloud was updated automatically (securityweek.com).
- A security patch plugin is available for TeamCity 2021.2 and later. It needs no server restart (securityweek.com).
- watchTowr advises patching web-accessible servers first, then servers whose builds handle credentials (securityweek.com).
- Restrict /app/agents to trusted IPs (securityweek.com).
-
JetBrains fixes critical TeamCity On-Premises auth bypass (CVE-2026-136858) letting attackers impersonate build agents
Help Net Security confirms the JetBrains position from the advisory: no known exploitation, no evidence of Cloud exploitation, and a 24 November report date. It adds that a non-empty token in the teamcity-server.log entry may indicate a takeover attempt, that the patch plugin fixes only this flaw, and that CVE-2026-63077 reached CISA KEV about a week after disclosure. It also recalls earlier targeting through CVE-2023-42793 and CVE-2024-27198.
ler a análise desta fonte ocultar
Help Net Security confirms the JetBrains position from the advisory: no known exploitation, no evidence of Cloud exploitation, and a 24 November report date. It adds that a non-empty token in the teamcity-server.log entry may indicate a takeover attempt, that the patch plugin fixes only this flaw, and that CVE-2026-63077 reached CISA KEV about a week after disclosure. It also recalls earlier targeting through CVE-2023-42793 and CVE-2024-27198.
JetBrains fixed CVE-2026-136858, a critical authentication bypass in TeamCity On-Premises, and disclosed it on Wednesday 2 December 2026. An unauthenticated attacker who can reach the server over HTTP(S) can displace a legitimate build agent and intercept the builds assigned to it. That exposes the secrets passed to the agent, such as deployment keys, cloud tokens and registry passwords. The attacker can also falsify build results or publish tampered artifacts, so downstream builds could run attacker-supplied code, which makes this a software supply chain risk. Researcher Jiawei Guo reported it privately on 24 November 2026. JetBrains says it knows of no active exploitation, has applied fixes to TeamCity Cloud, and found no evidence of Cloud exploitation. The article notes this is the second critical unauthenticated TeamCity flaw in about four months. The first, CVE-2026-63077, was added to CISA KEV about a week after disclosure, and TeamCity servers were previously targeted through CVE-2023-42793 and CVE-2024-27198.
Technical Details
- JetBrains did not detail the root cause. The flaw is reachable by anyone who can reach the server over HTTP(S), and no TeamCity account is needed (helpnetsecurity.com).
- Agents talk to the server over the agent polling protocol, and the server hands them build credentials (helpnetsecurity.com).
- Detection: check teamcity-server.log for entries containing the message "of the existing agent, but different authorization token". A non-empty token in such an entry may indicate a takeover attempt, while an empty token is expected behavior (helpnetsecurity.com).
Remediation
- Update TeamCity On-Premises to 2026.1.7, 2026.2.3 or 2026.3.
- If a restart is not possible right away, install the JetBrains security patch plugin. It supports TeamCity 2021.2 and later and fixes only this vulnerability.
- As an additional mitigation, allow requests to /app/agents and its subpaths only from the IP addresses where legitimate build agents originate. Include the outbound addresses of cloud agents and any NAT gateways (helpnetsecurity.com).
- JetBrains has published further guidance on verifying whether an exploitation attempt succeeded and what to do if it did (helpnetsecurity.com).
-
JetBrains patches critical TeamCity On-Premises auth bypass (CVE-2026-136858) allowing build agent impersonation
The article adds JetBrains' own wording on impact (downstream builds consuming tampered artifacts could run attacker code), the reverse-proxy allowlist detail for cloud agents and NAT gateways, and a reminder that CVE-2026-63077 (CVSS 9.8) in TeamCity was previously exploited per CISA. It repeats JetBrains' statement of no known exploitation.
ler a análise desta fonte ocultar
The article adds JetBrains' own wording on impact (downstream builds consuming tampered artifacts could run attacker code), the reverse-proxy allowlist detail for cloud agents and NAT gateways, and a reminder that CVE-2026-63077 (CVSS 9.8) in TeamCity was previously exploited per CISA. It repeats JetBrains' statement of no known exploitation.
JetBrains disclosed CVE-2026-136858 (CVSS 9.1), a critical authentication bypass in TeamCity On-Premises. An unauthenticated attacker who can reach the server over HTTP(S) can impersonate an existing authorized build agent. This lets the attacker intercept builds, read build secrets, and falsify build results or publish tampered artifacts. Downstream builds that consume those artifacts could then execute attacker-supplied code. All On-Premises versions are affected, and fixes are in 2026.1.7, 2026.2.3 and 2026.3. JetBrains says it has seen no evidence of active exploitation, and TeamCity Cloud needs no action. Researcher Jiawei Guo reported the flaw on 24 November 2026. The article recalls that an earlier critical TeamCity flaw (CVE-2026-63077, CVSS 9.8) was exploited in the wild, according to CISA.
Remediation
- Update to 2026.1.7, 2026.2.3 or 2026.3.
- If a restart is not possible, install the JetBrains security patch plugin (TeamCity 2021.2 or later).
- Configure the reverse proxy to allow /app/agents and its subpaths only from expected build agent IPs. This includes outbound addresses of cloud agents and any NAT gateways.
-
JetBrains patches 12 flaws in TeamCity, Ktor and Kotlin, including critical TeamCity auth bypass CVE-2026-136858
This article widens the scope from the single TeamCity flaw to a 12-vulnerability JetBrains release. It adds seven Ktor and four Kotlin CVEs with their severities and fixed versions (Ktor 3.6.2, with 3.5.3 and 3.4.4 for select fixes; Kotlin 2.5.0), plus a mitigation of restricting /app/agents behind a reverse proxy allowlist.
ler a análise desta fonte ocultar
This article widens the scope from the single TeamCity flaw to a 12-vulnerability JetBrains release. It adds seven Ktor and four Kotlin CVEs with their severities and fixed versions (Ktor 3.6.2, with 3.5.3 and 3.4.4 for select fixes; Kotlin 2.5.0), plus a mitigation of restricting /app/agents behind a reverse proxy allowlist.
JetBrains disclosed 12 vulnerabilities on 2 December 2026 across TeamCity On-Premises, Ktor and Kotlin: one Critical, four High and seven Medium. The most serious is CVE-2026-136858 (CVSS 9.1, CWE-639), an authentication bypass in TeamCity On-Premises. During agent registration over HTTP(S), a remote unauthenticated attacker can displace a legitimate build agent. That allows interception of jobs, theft of build secrets and tampering with artifacts. The article says JetBrains confirmed no exploitation in the wild and that no public exploit code was known at publication. TeamCity Cloud is unaffected.
Technical Details
- TeamCity On-Premises: versions before 2026.3, 2026.2.3 and 2026.1.7 are affected (CVE-2026-136858).
- Ktor, seven flaws:
- High: auth bypass via nested blocks (CVE-2026-142046, CVSS 8.1), LDAP auth bypass (CVE-2026-142044, CVSS 7.4), servlet data leak (CVE-2026-142043, CVSS 7.5).
- Medium: shared cache leak (CVE-2026-142045), JWT issuer check (CVE-2026-142047), multi-provider auth bypass (CVE-2026-142048), CIO proxy credential leak (CVE-2026-142049).
- Affected: versions before 3.6.2; some fixes are also in 3.5.3 and 3.4.4.
- Kotlin, four flaws, all before 2.5.0:
- High: path traversal via Multiplatform metadata (CVE-2026-135284, CVSS 8.1).
- Medium: KAPT snapshot code execution (CVE-2026-135282), path traversal in Kotlin/Native unpacking (CVE-2026-135283), path traversal in Kotlin/JS package names (CVE-2026-135285).
Remediation
- Upgrade TeamCity to 2026.3, 2026.2.3 or 2026.1.7, Ktor to 3.6.2 and Kotlin to 2.5.0.
- If TeamCity cannot be upgraded, install JetBrains' security patch plugin (2021.2+, no restart needed).
- Restrict /app/agents behind a reverse proxy allowlist.
-
JetBrains patches critical TeamCity On-Premises flaw (CVE-2026-136858) letting unauthenticated attackers impersonate build agents
ler a análise desta fonte ocultar
JetBrains released fixes for CVE-2026-136858, a critical authentication bypass in TeamCity On-Premises. An unauthenticated attacker with HTTP(S) access to the server can impersonate a trusted build agent without a TeamCity account. That lets them capture build secrets and tamper with build artifacts, which creates a software supply chain risk. Researcher Jiawei Guo reported it privately on 24 November 2026. JetBrains said it knew of no active exploitation at disclosure on 2 December, and TeamCity Cloud was already secured. Secondary reports found through web search say exploitation began about a day after disclosure (attributed to watchTowr, not verified against a primary source). The JetBrains blog returned HTTP 403 and could not be opened.
Technical Details
- All unpatched TeamCity On-Premises versions are affected (darkwebinformer.com).
- Secondary sources report CVSS v3.1 9.1 and CWE-639, authorization bypass through a user-controlled key (socradar.io and radar.offseq.com appeared in search results; the pages were not opened).
- Detection: JetBrains recommends reviewing server logs for unexpected agent authorization tokens. A secondary report cites a teamcity-server.log message containing "of the existing agent, but different authorization token".
Remediation
- Upgrade to 2026.1.7, 2026.2.3 or 2026.3 (darkwebinformer.com).
- A security patch plugin is available for versions 2021.2 and later. It can be installed without restarting the server (darkwebinformer.com).
- Restrict network access to trusted systems (darkwebinformer.com).
- If compromise is suspected, preserve logs, rotate exposed credentials and verify build artifacts before trusting them.