Skip to main content
CRITICAL Vulnerabilities #Zero-Day#RCE#Authentication Bypass

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

3 min read Runtime Rebel Intel
Primary source: bleepingcomputer.com

This article was written by a language model from the source above and was not reviewed by a human before publication. Verify anything operational against the original. Editorial policy

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.

Advertisement

Threat actors have begun actively exploiting a critical vulnerability in self-hosted continuous integration servers, according to BleepingComputer. 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-2026-136858

The vulnerability, tracked as 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 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 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 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 plugin for supported legacy versions.
  • 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, Java4Shell CVE-2026-114938: OpenJDK RCE Vulnerability Analysis

Advertisement

Advertisement