Critical TeamCity flaw exploited in attempts to hijack build agents
Original title: Critical JetBrains TeamCity flaw exploited to hijack build agents
watchTowr saw takeover attempts one day after disclosure; JetBrains says it has seen no active exploitation.
watchTowr said attackers are trying to exploit CVE-2026-136858, an authentication bypass in JetBrains TeamCity On-Premises, to impersonate trusted build agents. Exploitation needs a guessable agent ID, which often starts at 1. JetBrains fixed the issue in 2026.1.7, 2026.2.3, and 2026.3, offers a patch plugin for 2021.2 and later, and says TeamCity Cloud is already fixed. JetBrains reports no active exploitation of its own.
Unconfirmed: watchTowr reports attempted exploitation; JetBrains says its bulletin observed none.
- All TeamCity On-Premises versions before those three releases are affected.
- The plugin can be installed without restarting the server.
- On 2026.2.2 and later, unattended patching works if that option is enabled.
- A log line about a different authorization token is one suspicious sign.
- A non-empty token may indicate a takeover attempt.
Impact: Impersonate a trusted build agent and receive its jobs
| Product | Affected | Fixed in |
|---|---|---|
| JetBrains TeamCity On-Premises | all versions before 2026.1.7, 2026.2.3, and 2026.3 | 2026.1.7, 2026.2.3, and 2026.3 |
- 1.Update to 2026.1.7, 2026.2.3, or 2026.3, or install the security patch plugin.
- 2.Restrict /app/agents and its subpaths to expected build-agent source IPs.
- 3.If takeover is suspected, preserve logs, patch, rotate build credentials, and treat artifacts as untrusted.
- CVEs
- CVE-2026-136858
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-136858 | Authentication bypass in JetBrains TeamCity agent registration | 9.1 | — |
From the original article
2 min read at bleepingcomputer.com
Hackers are targeting JetBrains TeamCity On-Premises in attacks that exploit a critical vulnerability tracked as CVE-2026-136858 to hijack build agents. [...]
By Bill Toulas · bleepingcomputer.com
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.