P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

TeamCity flaw lets an attacker with no account impersonate a build agent, JetBrains says

JetBrains says CVE-2026-136858 affects every TeamCity On-Premises version and can expose secrets passed to build agents. Fixes are out; at publication it knew of no exploitation (read 3 December).

By · LinkedIn · · 8 min read

Every On Premises version is affected, and the plugin starts at 2021.2

JetBrains says a critical flaw, CVE-2026-136858, affects every version of TeamCity On-Premises. Its advisory of 2 December 2026 says the fixed releases are 2026.1.7, 2026.2.3 and 2026.3, and that a security patch plugin covers "2021.2 and later" for those who cannot update. The advisory states no plugin route for anything older. The private report arrived on 24 November, 8 days before the advisory (derived).

That does not establish that anyone has used the flaw. JetBrains writes: "we are not aware of any active exploitation of this vulnerability" at the time of publishing. As read at 19:45 UTC on 3 December 2026, the CISA Known Exploited Vulnerabilities catalogue (version 2026.12.03) did not list it. Neither statement shows that no server was reached.

JetBrains sells TeamCity, both as software customers run themselves and as a hosted service.

What JetBrains says an attacker can do

TeamCity is a build server. The server queues the work and separate machines, called build agents, run it. According to the JetBrains agent documentation, agents open an HTTP(S) connection to the server and poll it for commands.

The advisory says an unauthenticated attacker who can reach the server over HTTP(S) "could impersonate an existing authorized build agent". No TeamCity user account is needed. Success could displace a real agent, intercept the builds assigned to it, expose credentials and other secrets passed to it, falsify build results or publish tampered artifacts. JetBrains adds that downstream builds consuming those artifacts could run code supplied by the attacker.

The CVE record, filed by JetBrains, places the fault more precisely: "authentication bypass during agent registration allowed takeover of authorized build agents". The record tags it CWE-639 and scores it 9.1, critical, under CVSS 3.1.

Drawn by this site from the JetBrains advisory, agent documentation and CVE record.

The conditions, as stated by JetBrains in the advisory and CVE record

QuestionStatedNot stated
Which productAll TeamCity On-Premises versionsAny unaffected On Premises build below the fixed releases
Attacker accessNetwork reach to the server over HTTP(S)Any further condition, such as a setting that must be on
AccountNone needed. No user interaction in the CVSS vectorThe request or steps used
TargetAn existing authorised build agentWhether a server with no authorised agent is exposed
TeamCity CloudCorrected by JetBrains; customers need take no actionWhat the corrective measures were

Authorised records an approval, not who is on the line now

An agent runs builds only when it is connected, authorised and enabled. The documentation describes the middle word plainly: "Authorization is your explicit confirmation that the server may work with this machine." A new agent waits for an administrator, while cloud agents are authorised automatically when they connect, if a licence is free.

That approval is the thing an impostor would inherit. The advisory is about impersonating an agent that already has it, so a tidy list of approved agents is not, on its own, evidence that the machine answering is the one that was approved.

What is at stake depends on what your builds receive. The agent documentation says data travelling over the connection from agent to server includes "build settings, repository access credentials and keys, repository sources, build artifacts, build progress messages, and build log". This is a general description of the link. The advisory does not say that an impersonator obtains every item, and its own wording is that secrets passed to the agent can be exposed.

Masking is a similar comfort. The TeamCity security notes say password parameters are masked in the interface, encrypted at rest and kept out of the build log as plain text, then warn that this "often does not provide a high enough level of security". A value that a build needs has to reach the machine that runs the build.

Which route applies to your server

JetBrains prefers the update. The plugin fixes this one vulnerability and no other, and can be installed without restarting the server. How it arrives depends on the version. From 2024.03 TeamCity can download security patches itself. On 2024.03 through 2026.2.1 an administrator reviews and applies pending patches under Administration, Updates, Available security updates. On 2026.2.2 and later, the Install automatically setting has the server fetch and install it; with Download and notify it must be applied by hand, and with Ignore it must be found and installed by hand.

That means a 2026.1 server below 2026.1.7 sits in the band where someone has to apply the patch (derived). So does any server where automatic installation is off.

Drawn by this site from the JetBrains advisory. Rows marked derived are this site's reading.

One detail argues for checking rather than assuming. The release note post for 2026.2.3 and 2026.1.7 lists "Errors on checking for new security patches" among the bugs those releases resolve. It does not say which versions had the errors or whether they affect delivery of this patch. Confirm on each server that the patch is installed.

What the record states, and what it does not

Status of CVE-2026-136858 as read at 19:45 UTC on 3 December 2026

ItemOn the recordNot on the record
ExploitationJetBrains: not aware of any at publicationA search result across customers' own servers
KEVNot listed in catalogue version 2026.12.03Any later addition after the read time
CISA-ADP assessment, 2 DecemberExploitation none, automatable yes, technical impact totalA CISA statement that the flaw is safe to defer
Severity9.1 from JetBrains: confidentiality and integrity high, availability noneA score of NVD's own: status Awaiting Analysis
TeamCity CloudNo evidence any Cloud environment was exploitedHow that was checked
CleanupRotate credentials if exploitation is suspectedWhether the fix resets agent authorisation tokens

The history is a reason for pace, not evidence about this flaw. The CISA catalogue holds four earlier TeamCity entries (derived count), and it marks all four as known to have been used in ransomware campaigns. The most recent of them, CVE-2026-63077, was added on 5 August 2026. None of those entries is CVE-2026-136858.

Where the wording differs

A Help Net Security report of 3 December headlines that attackers can "grab secrets". The advisory's wording is narrower: a successful attack can expose credentials and other secrets passed to the agent. The same report says JetBrains did not detail the root cause. That holds for the advisory, although the CVE record does name the stage, agent registration, and a weakness class.

There is also a point for anyone who matches versions by machine. The CVE record gives the upper bound as a single string, 2026.3, 2026.2.3, 2026.1.7, in a field it types as semantic versioning. This site's inference is that some scanners may not read three releases from one string, so check the installed version against the advisory directly. NVD showed only the JetBrains score when read.

The log message and the path to restrict

JetBrains gives one check. Search teamcity-server.log for entries containing the text below. In the placeholder position, a value that is not empty may indicate an attempt to take over an existing agent. An empty value is expected and can be disregarded. A match shows a possible attempt, not a success.

Text
of the existing agent, but different authorization token "<token>"
Log text as printed in the JetBrains advisory of 2 December 2026, read on 3 December 2026.

If you find one, JetBrains says to use its timestamp to review that agent's connection history and the builds assigned to it, verify hostname and source address, and compare build logs, results and published artifacts. The advisory does not say that finding no entry rules out an attempt, or how far back to search.

The second item is a path. JetBrains advises allowing requests to the path below, and everything under it, only from addresses where real agents originate, including the outbound addresses of cloud agents and any NAT gateways they pass through.

Text
/app/agents
Server path named in the JetBrains advisory, read on 3 December 2026.

What to do, in order

Take this with you

Order is this site's suggestion; items marked JetBrains are its advice

  • List every TeamCity On-Premises server, including test and forgotten ones, with its exact version.
  • JetBrains: update to 2026.1.7, 2026.2.3 or 2026.3. If you cannot, install the security patch plugin on 2021.2 or later.
  • This site's suggestion: confirm on each server that the update or patch is actually installed.
  • JetBrains: limit server access to trusted networks, with a VPN or similar for outside users and agents, and restrict /app/agents by source address.
  • JetBrains: search teamcity-server.log for the takeover message. This site's suggestion: include every rotated log you still hold.
  • This site's suggestion: the matching line prints a token field, so redact it before pasting into tickets or chat.
  • JetBrains, if you suspect exploitation: preserve logs and build results, update or patch, rotate credentials passed to potentially affected builds, treat their artifacts as untrusted and trace where they went.
  • This site's suggestion: record which keys, cloud tokens and registry passwords each agent pool receives, so that rotation does not start from guesswork.
  • JetBrains: run the server and build agents on separate hosts.

The question the advisory leaves open

The advisory tells administrators how to spot one trace of a takeover and what to rotate if they suspect one. It does not say how long the flaw could have been reached, beyond saying that all versions are affected. So the question for each team is this: if an agent had been replaced for one build last month, which record would show it, and which secrets would that build have carried?

Key facts

Sources

  1. PrimaryAdvisory of 2 December 2026: impact, versions, plugin, log check, mitigationJetBrainsaccessed 2026-12-03
  2. PrimaryCVE-2026-136858 record: JetBrains description, versions, CVSS, CISA-ADP assessmentCVE Programaccessed 2026-12-03
  3. PrimaryNVD entry: analysis status and which score it showsNIST NVDaccessed 2026-12-03
  4. PrimaryKnown Exploited Vulnerabilities catalogue, version 2026.12.03CISAaccessed 2026-12-03
  5. PrimaryAgent documentation: authorisation, polling and data carriedJetBrainsaccessed 2026-12-03
  6. PrimaryTeamCity security notes: handling of password parametersJetBrainsaccessed 2026-12-03
  7. PrimaryBug fix releases 2026.2.3 and 2026.1.7JetBrainsaccessed 2026-12-03
  8. Reported byNews report of 3 December 2026Help Net Securityaccessed 2026-12-03

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

How often

Every new briefing in one email, at 7am, or at 7am, 12:30pm and 6pm. Nothing is sent when nothing is new. Unsubscribe any time.