Critical JetBrains TeamCity Flaw CVE-2026-136858 Exploited in the Wild to Hijack Build Agents

Hackers began exploiting a critical authentication bypass vulnerability in JetBrains TeamCity On-Premises just one day after its public disclosure. Tracked as CVE-2026-136858, the flaw allows attackers to impersonate trusted build agents by guessing predictable agent IDs that often start at 1. Successful exploitation can expose credentials, inject false build results, or deliver modified artifacts that execute attacker code in subsequent builds. JetBrains released patches in versions 2026.1.7, 2026.2.3, and 2026.3, along with a security patch plugin for older releases. The company also documented log-based indicators of compromise and recommended restricting access to the /app/agents endpoint. This marks the second TeamCity On-Premises vulnerability actively targeted by ransomware operators within months, following CVE-2026-63077.

BleepingComputerTranslated from English

Read at source

Hackers are actively targeting JetBrains TeamCity On-Premises installations by exploiting a critical authentication bypass vulnerability tracked as CVE-2026-136858. The attacks aim to hijack build agents and were observed just one day after the flaw was publicly disclosed, according to data from offensive security firm watchTowr.

“The watchTowr team is rapidly reacting to CVE-2026-136858 across our client base, a recently disclosed Authentication Bypass vulnerability affecting JetBrains TeamCity,” the company warned. Exploitation requires guessing a build agent ID, but this presents little difficulty because IDs typically begin at “1” and follow predictable sequences.

TeamCity On-Premises is the self-hosted version of JetBrains’ platform used for software build and release automation. A build agent is the worker component that executes jobs assigned by the TeamCity server. CVE-2026-136858 lets an attacker impersonate a trusted worker, receive assigned jobs, and potentially capture credentials or return tampered build outputs that could execute malicious code in later pipelines.

Fixes and Mitigations

JetBrains published a security bulletin on December 2 strongly recommending immediate updates to versions 2026.1.7, 2026.2.3, and 2026.3. The flaw affects all earlier TeamCity On-Premises releases. A security patch plugin is available for versions 2021.2 and later and can be installed without a server restart. On 2026.2.2 and newer, the patch can be applied automatically when the unattended installation option is enabled. TeamCity Cloud customers are already protected.

Administrators should monitor teamcity-server.log for entries containing the phrase “of the existing agent, but different authorization token”. A non-empty token in such logs may indicate a takeover attempt. If suspicious activity is found, JetBrains advises preserving logs and build artifacts, applying patches, rotating credentials, and treating affected outputs as untrusted. Additional hardening includes restricting access to the /app/agents path and its subpaths to expected source IP addresses of legitimate agents.

In September 2026, CISA warned federal agencies about ransomware operators exploiting another TeamCity On-Premises flaw, CVE-2026-63077, to execute arbitrary commands on target systems.

Meridian digestThe week's most consequential security stories, distilled into one briefing.See the digest

More in Vulns & Exploits

CISA Adds Three Critical PingIDM and Azure API Management Flaws to KEV Catalog Amid Active Exploitation
CISA Adds Three Actively Exploited Vulnerabilities to KEV Catalog
Exploited Veeam Bugs, PLC2Shell Flaws, and AI-Assisted Linux Intrusions Dominate Weekly Threat Roundup