Loading SecureCyberVM…
SecureCyberVM
CVE Lookup Daily Threat Briefing Exploited CVEs Ransomware Zero-day
SecureCyberVM
Get the Patch Brief

TeamCity build agent hijack flaw CVE-2026-136858 targeted a day after disclosure, watchTowr says

watchTowr says attackers began trying to exploit CVE-2026-136858, a critical TeamCity On-Premises flaw that lets an unauthenticated attacker impersonate a build agent, about a day after JetBrains disclosed it. Fixed releases and a security patch plugin are available.

TeamCity build agent hijack flaw CVE-2026-136858 targeted a day after disclosure, watchTowr says

Attackers began trying to exploit a critical authentication bypass in JetBrains TeamCity On-Premises roughly one day after the vendor disclosed it, according to threat intelligence firm watchTowr. The flaw, tracked as CVE-2026-136858 and rated 9.1 on the CVSS scale, lets an attacker with no account pose as one of a server’s existing build agents and receive the builds, and the secrets, that are sent to it.

JetBrains published fixed releases (2026.1.7, 2026.2.3 and 2026.3) and a security patch plugin when it disclosed the issue on December 2, 2026. TeamCity Cloud has already been updated. Because a CI/CD server holds deployment credentials and produces the software an organisation ships, any self-hosted TeamCity instance reachable from untrusted networks should be treated as an urgent patching priority.

What happened

The weakness sits in the way TeamCity registers and authorises build agents. According to the JetBrains advisory as quoted by The Hacker News, an unauthenticated attacker who can reach the server over HTTP or HTTPS may be able to impersonate an authorised agent, intercept the builds assigned to it, read build secrets and tamper with build results and artifacts. JetBrains warned that downstream builds consuming those artifacts could then run attacker-supplied code.

The bug was reported to JetBrains by researcher Jiawei Guo on November 24, according to The Hacker News and watchTowr. JetBrains said at disclosure that it was not aware of exploitation and shared indicators that administrators can use to check their logs, SecurityWeek reported.

That changed quickly. watchTowr’s timeline records exploitation attempts against its Attacker Eye honeypot network on December 3. Jake Knott, the company’s head of threat intelligence, told SecurityWeek the vulnerability had been reverse engineered and exploited against those honeypots around a day after disclosure. The attempts involved guessing the identifiers of existing build agents, which is a precondition for the attack.

Who is affected

All TeamCity On-Premises versions before the fixed releases are affected, according to SecurityWeek, The Hacker News and watchTowr. The fixed versions are:

  • TeamCity 2026.1.7
  • TeamCity 2026.2.3
  • TeamCity 2026.3

For servers that cannot be upgraded straight away, JetBrains offers a security patch plugin for TeamCity 2021.2 and later that addresses only this flaw. SecurityWeek reports that the plugin does not require a server restart. TeamCity Cloud customers do not need to take action. None of the sources gives a count of exposed servers.

Severity and exploitation

The flaw carries a CVSS 3.1 score of 9.1 (critical). Exploitation needs network access to the server and a valid build agent ID. watchTowr said on X that guessing the ID is not a material barrier because agent IDs start at 1 and are typically sequential. The attempts watchTowr observed are against honeypots; no confirmed compromise of a real organisation has been reported so far, and the sources do not say whether the flaw has been added to CISA’s Known Exploited Vulnerabilities catalog. According to SecurityWeek, the same attacker had earlier exploited a separate PAN-OS flaw in watchTowr’s honeypots, which Knott took as a sign that the actor targets high-impact bugs. An earlier TeamCity flaw, CVE-2026-63077, was also exploited in attacks about four months ago, The Hacker News noted.

What defenders should do now

  1. Upgrade TeamCity On-Premises to 2026.1.7, 2026.2.3 or 2026.3, starting with internet-facing servers and servers whose builds handle credentials or publish artifacts.
  2. If you cannot upgrade immediately, install the JetBrains security patch plugin (TeamCity 2021.2 and later).
  3. As an interim control, configure a reverse proxy so that /app/agents and its subpaths are reachable only from the IP addresses of real build agents, including the outbound addresses and NAT gateways used by cloud agents, as JetBrains advises.
  4. Preserve logs before making changes, then search teamcity-server.log for existing agents presenting a different authorisation token. According to watchTowr’s summary of the JetBrains guidance, an empty token is expected; a non-empty one may indicate a takeover attempt and should be compared against the agent’s connection history, hostname, source IP and build logs.
  5. If there is any sign of impersonation, rotate the credentials passed to affected builds and treat their artifacts as untrusted until they are rebuilt and verified.
  6. Keep TeamCity off the public internet where possible, require VPN access for remote users and run the server and build agents on separate hosts.

SCVM analysis

Build servers are some of the most valuable systems an organisation runs, because they combine stored secrets with the ability to sign and ship code. That is why TeamCity flaws have repeatedly drawn fast attention from both criminal and state-backed actors. CVE-2026-136858 is particularly concerning because a successful attack may leave little obvious trace: the attacker does not need to log in, only to stand in for an agent and quietly receive or alter builds. The real risk is therefore not only the server itself but every artifact it produced while exposed. Organisations that cannot rule out impersonation from their logs should assume secrets have leaked and plan rebuilds of recent releases, rather than treating the upgrade alone as the end of the incident.

Sources

About this article: produced by the SCVM Newsroom with AI assistance from the public sources linked above, enriched with NVD, FIRST EPSS and CISA KEV data, and checked by automated quality controls under our editorial policy. Spotted an error? Request a correction.

SecureCyberVM

Install SecureCyberVM

Get the Daily Threat Briefing and exploited-CVE alerts one tap away, full screen, like an app.