Subscribe
0%
Illustration for: TeamCity flaw CVE-2026-136858 lets attackers pose as build agents, and attempts began a day after the fix. What to do

TeamCity flaw CVE-2026-136858 lets attackers pose as build agents, and attempts began a day after the fix. What to do

JetBrains fixed an authentication bypass in TeamCity On-Premises on December 2 that lets an unauthenticated attacker impersonate a build agent and receive its jobs, secrets included. watchTowr says its honeypots saw exploitation attempts about a day later. Update to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin, then check your server log.

Listen to this article0:00 / 4:19

JetBrains has fixed CVE-2026-136858, a critical authentication bypass in TeamCity On-Premises that lets an attacker with no account impersonate an already-authorized build agent and take over the jobs sent to it. The fixed releases are 2026.1.7, 2026.2.3 and 2026.3, published with JetBrains' bulletin on December 2. Security firm watchTowr says attackers were trying the flaw against its honeypot network about a day later, according to BleepingComputer and SecurityWeek.

Why it matters: a build server sees deployment keys, cloud tokens and registry passwords, and it produces the software other systems install. Anyone who can reach a vulnerable TeamCity server over HTTP(S) can, in principle, receive builds meant for a real agent, read the secrets passed to them, and send back falsified results or tampered artifacts, which could then run attacker code in later builds, the reports say.

What the flaw does

CVE CVE-2026-136858
Product TeamCity On-Premises (TeamCity Cloud already fixed by JetBrains, no action needed)
Severity Critical; CVSS 9.1 per SecurityWeek and SOCRadar
Access needed Network access to the server over HTTP(S); no TeamCity account
Fixed in 2026.1.7, 2026.2.3, 2026.3
Patch plugin For TeamCity 2021.2 and later; fixes only this CVE (Help Net Security), no restart needed (SecurityWeek)
Reported November 24 by researcher Jiawei Guo (Help Net, SOCRadar)
Disclosed December 2

To pull it off, an attacker has to guess the ID of an existing build agent. Those IDs typically start at 1, so guessing is not much of a barrier, BleepingComputer and SecurityWeek note. JetBrains has not described the root cause, Help Net Security reports. SOCRadar points out that the bug does not by itself run code on the TeamCity server; the damage comes through the builds the fake agent receives and returns.

How "exploited" is it?

The picture is honeypot activity, not confirmed victims:

  • JetBrains' bulletin said it was not aware of active exploitation and found no evidence of it in TeamCity Cloud, according to Help Net Security and BleepingComputer.
  • watchTowr told SecurityWeek the bug was reverse-engineered and tried against its Attacker Eye honeypots around a day after disclosure, with attackers guessing agent IDs. It said the same attacker had earlier used PHP2Shell against a PAN-OS device in its network.
  • SOCRadar said that, as of December 4, no successful attacks or victims had been publicly reported and it had not found a verified public proof of concept.

TeamCity has been targeted before: Help Net Security notes that CVE-2026-63077, an earlier critical unauthenticated flaw patched in late July, was added to CISA's Known Exploited Vulnerabilities catalog about a week after disclosure.

What to do

  1. Update TeamCity On-Premises to 2026.1.7, 2026.2.3 or 2026.3. Start with internet-facing servers, then servers whose builds handle credentials, SecurityWeek advises.
  2. If you can't upgrade yet, install JetBrains' security patch plugin (2021.2 and later). BleepingComputer says that on 2026.2.2 and later the patch can install itself if automatic security patch installation is turned on.
  3. Restrict /app/agents and its subpaths to the IP addresses your agents actually connect from, including cloud-agent egress and NAT addresses (JetBrains' advice as relayed by Help Net Security and BleepingComputer).
  4. Check the log. Search teamcity-server.log for:
of the existing agent, but different authorization token

An entry with an empty token is expected; a non-empty token may indicate a takeover attempt, per JetBrains' guidance as reported by Help Net Security and SOCRadar.

  1. If you find a hit, look at the agent's connection history, source IP and the builds around that time; preserve logs and build results; rotate any credentials passed to affected builds (deployment keys, cloud tokens, registry credentials); and treat the artifacts as untrusted. SOCRadar adds that a clean log is not proof of safety if logs have already rotated.

Who should care

Any team running its own TeamCity server reachable from the internet, and anyone downstream who consumes its artifacts. JetBrains' own advisory was not reachable from our systems when we checked; the guidance above is as relayed by the outlets listed below.

Sources

  1. Help Net Security — Critical TeamCity flaw lets unauthenticated attackers pose as build agents, grab secrets (CVE-2026-136858) helpnetsecurity.com
  2. BleepingComputer — Critical JetBrains TeamCity flaw exploited to hijack build agents bleepingcomputer.com
  3. SecurityWeek — JetBrains TeamCity vulnerability exploited one day after disclosure securityweek.com
  4. SOCRadar — TeamCity CVE-2026-136858: build agent hijacking socradar.io

#JetBrains#TeamCity#CVE-2026-136858#watchTowr#CI/CD#supply chain#patch now