# JetBrains TeamCity Flaw CVE-2026-136858 Exploited to Hijack Build Agents

> Critical authentication bypass CVE-2026-136858 in JetBrains TeamCity On-Premises is actively exploited in the wild to hijack build agents.

- Published: 2026-12-05T05:12:12.000Z
- Severity: critical
- Category: Vulnerabilities
- Tags: CVE-2026-136858, JetBrains TeamCity, Zero-Day, RCE, Authentication Bypass
- CVEs: CVE-2026-136858 (CVSS 9.8)
- Author: Runtime Rebel Intel
- Primary source: https://www.bleepingcomputer.com/news/security/critical-jetbrains-teamcity-flaw-exploited-to-hijack-build-agents/
- Canonical: https://runtimerebel.com/blog/jetbrains-teamcity-flaw-cve-2026-136858-exploited-to-hijack-build-agents

## Key points

- Immediate impact: Attackers are actively exploiting an authentication bypass vulnerability to hijack build agents and manipulate software build pipelines.
- Affected systems: JetBrains TeamCity On-Premises versions prior to 2026.1.7, 2026.2.3, and 2026.3.
- Remediation: Update immediately to patched versions, apply the security patch plugin, or restrict access to the /app/agents endpoint.

Threat actors have begun actively exploiting a critical [vulnerability](/glossary#vulnerability) in self-hosted continuous integration servers, according to [BleepingComputer](https://www.bleepingcomputer.com/news/security/critical-jetbrains-teamcity-flaw-exploited-to-hijack-build-agents/). Offensive security researchers observed exploitation attempts just one day after public disclosure, targeting environments utilizing the software for automated build and release workflows. Organisations relying on self-hosted instances must prioritize immediate remediation to prevent unauthorized manipulation of build pipelines and subsequent supply chain compromise.

## Technical Details of [CVE](/glossary#cve)-2026-136858

The vulnerability, tracked as [CVE-2026-136858](https://nvd.nist.gov/vuln/detail/CVE-2026-136858), is an authentication bypass affecting JetBrains TeamCity On-Premises editions. TeamCity On-Premises acts as a central build server that coordinates worker software, known as build agents, to compile code, execute tests, and deploy software artifacts.

This security flaw allows an unauthenticated attacker to impersonate a trusted worker node. Successful exploitation requires guessing a build agent identifier. Because these [IDs](/glossary#ids) typically follow a predictable sequential pattern starting at "1", attackers face minimal friction when identifying valid targets. Once an attacker assumes the identity of a legitimate build agent, the TeamCity server assigns jobs to the malicious entity.

### Impact on Software Build Integrity

Hijacking build agents introduces severe risks to software integrity and internal security:

* **Credential Exposure:** Secrets, [API](/glossary#api) keys, and deployment credentials passed to jobs assigned to the compromised agent can be intercepted.
* **False Build Results:** Attackers can report falsified build outcomes to obscure malicious activity.
* **Artifact Modification:** Returning modified output files allows threat actors to inject malicious code into downstream builds, weaponising legitimate release pipelines.

## Detection and Compromise Assessment

Security teams investigating potential breaches should review server logs for specific indicators associated with this campaign. Administrators must inspect `teamcity-server.log` entries for specific warning strings indicating an existing agent registering with a different [authorization](/glossary#authorization) token. Additionally, the presence of non-empty tokens during agent connection events can signal takeover attempts.

If compromise is suspected, defenders should check connection histories, source IP addresses, and build activity around the suspicious timestamps. JetBrains recommends preserving all logs and build artifacts, rotating any credentials exposed to potentially affected jobs, and treating prior build outputs as untrusted until thoroughly verified.

## Actionable Mitigation Steps

To secure environments against this threat, administrators should take the following actions:

* **Apply Patches:** Update TeamCity On-Premises installations to versions 2026.1.7, 2026.2.3, 2026.3, or later. Alternatively, deploy the vendor-supplied security [patch](/glossary#patch) plugin for supported legacy versions.
* **[Network Segmentation](/glossary#network-segmentation):** Restrict access to the `/app/agents` path and its subpaths exclusively to the expected source IP addresses of legitimate build agents.
* **Credential Rotation:** Rotate all secrets and deployment keys accessible by the build server if unauthorized access is identified.

**Related:** [Critical Citrix NetScaler Zero-Days: CVE-2026-88772 & CVE-2026-88771](/blog/critical-citrix-netscaler-zero-days-cve-2026-88772-cve-2026-88771), [Java4Shell CVE-2026-114938: OpenJDK RCE Vulnerability Analysis](/blog/java4shell-cve-2026-114938-openjdk-rce-vulnerability-analysis)

---

AI-generated analysis from the primary source above; not human-reviewed before publication — verify anything operational against the original (https://runtimerebel.com/editorial). Quote with attribution and a link to the canonical URL: https://runtimerebel.com/blog/jetbrains-teamcity-flaw-cve-2026-136858-exploited-to-hijack-build-agents
