Incident sheet · Security & Risk

Filed
Read
3 min · 532 words
Severity
Routine

Attackers hijack TeamCity build agents one day after CVE-2026-136858 disclosure

watchTowr reports attempted build agent takeovers exploiting CVE-2026-136858 just one day after disclosure. JetBrains urges upgrades to 2026.1.7, 2026.2.3 or 2026.3.

Attackers hijack TeamCity build agents one day after CVE-2026-136858 disclosure
Feed — AI-generated

Event log

  1. Exploitation of CVE-2026-136858 observed one day after public disclosure, per watchTowr.
  2. JetBrains on December 2 recommended updating to 2026.1.7, 2026.2.3, or 2026.3.
  3. Build agent IDs typically start at "1", making the guessing requirement trivial.
  4. A no-restart security patch plugin covers versions 2021.2 and later.
  5. CISA warned in September 2026 of ransomware targeting CVE-2026-63077 in TeamCity On-Premises.

In-the-wild exploitation of JetBrains TeamCity On-Premises began one day after public disclosure of CVE-2026-136858, a critical authentication bypass that lets attackers hijack build agents. watchTowr, the offensive security firm tracking the activity, reported attempted takeovers across its client base within 24 hours of the vulnerability's publication.

"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. "Only one day after initial disclosure, watchTowr Intel is already observing attempted in-the-wild exploitation, trying to take over build agents."

What does the flaw actually do?

TeamCity On-Premises is the self-hosted edition of JetBrains' build and release automation platform. Developers use it to compile code, run tests and deploy software automatically. Build agents are the worker software that executes jobs assigned by the TeamCity server.

CVE-2026-136858 lets an attacker impersonate a worker the server already trusts and receive its jobs. Exploitation requires guessing a build agent ID, which sounds like a barrier but is not: the researchers note that agent IDs typically start at "1" and follow predictable sequences.

The consequences range from credential theft to supply-chain compromise. A hijacked agent can:

  • Expose credentials passed to build jobs
  • Report false build results
  • Return modified output files that execute attacker-supplied code in later builds

What should administrators do now?

JetBrains published a bulletin on December 2, "strongly recommending" that all users update to versions 2026.1.7, 2026.2.3, or 2026.3, which fix the issue. Every TeamCity On-Premises release before those versions is vulnerable.

Three patching paths exist:

  • Full upgrade to 2026.1.7, 2026.2.3, or 2026.3
  • A security patch plugin for versions 2021.2 and later, installable without a server restart
  • Unattended patch installation on 2026.2.2 and later, if automatic security patch installation is enabled

TeamCity Cloud has already received the fix. Cloud customers need to take no action.

How to check whether you were hit

JetBrains says it has observed no active exploitation of the flaw. The vendor's bulletin nonetheless lists two indicators administrators should check.

The first sign sits in teamcity-server.log: look for the line 'of the existing agent, but different authorization token

If such a token appears, JetBrains advises checking the agent's connection history, source IP, and builds around the timestamp to determine whether the attempt succeeded. The vendor also recommends restricting '/app/agents' and its subpaths to the expected source IPs of legitimate build agents.

If exploitation is suspected, preserve logs and build results, patch the server, and rotate credentials passed to potentially affected builds. Treat artifacts from those builds as untrusted until verified. A compromised agent can poison everything downstream.

Is this the first TeamCity warning this year?

No. In September 2026, CISA warned federal agencies that ransomware operators were targeting another TeamCity On-Premises flaw, CVE-2026-63077, to execute arbitrary OS commands on victims. Two critical TeamCity vulnerabilities exploited within a quarter is a pattern, not a coincidence. Build infrastructure holds the keys to everything an enterprise ships, and attackers know the ID space starts at one.

via bleepingcomputer.com (Source)

Filed under

Share this article:

More from Tom Whitfield

Tom Whitfield

Show full bio

Market editor covering people, launches and day-to-day practice in enterprise information technology and the leaders who run at CIO Monitor.

293 articles

The newsroom digest

One email a day with the stories that matter. No noise.

By subscribing you agree to the privacy policy.

Cross-references

‹ Previous articleNext article ›