A build agent can receive source code, credentials, and assignments from a TeamCity server, which is why the latest On-Premises advisory matters beyond the login page.
JetBrains has released fixed versions and a separate patch plugin, but an update does not establish whether earlier build output can be trusted.

Overview
JetBrains confirmed a weakness in TeamCity On-Premises
The JetBrains advisory for CVE-2026-136858 says a reachable, unpatched TeamCity server could let an unauthorized party impersonate an existing authorized build agent without a TeamCity account.
JetBrains introduced fixes in 2026.1.7, 2026.2.3, and 2026.3, and it provides a security patch plugin for installations running 2021.2 or later.
The company says TeamCity Cloud has already received the corrective measures, so customers of that managed service do not need to install an On-Premises patch.
A disrupted build is only one possible consequence
JetBrains explains that an impersonated agent may receive build work that was intended for a legitimate worker and could have access to secrets assigned to it.
If an incident actually occurred, teams would also need to ask whether build results, published artifacts, or downstream pipelines were affected.
The vendor said it was not aware of active exploitation when it published the advisory, which is not a finding about any customer’s own environment.
Fixing the server and trusting an earlier release are separate jobs
An update can address the vulnerability without answering whether someone interfered with a particular build before the correction took effect.
The right post-update record separates the server version or patch, the build agents that are authorized, and the evidence behind any affected artifacts.
- Identify every TeamCity On-Premises server that receives agent traffic and record its actual version rather than using an inventory label alone.
- Verify that the supported server update or compatible patch plugin is in effect, then check whether authorized build agents can still perform ordinary work.
- Preserve relevant history for suspicious builds and releases, including approved credential access records, before making changes that might remove evidence.
What a TeamCity Build Agent Does
A TeamCity server schedules jobs and coordinates results, while an agent performs the work assigned to it in a build environment.
That work can include fetching a repository, compiling software, running tests, and preparing files for distribution, depending on how the team has configured the project.
It may also need temporary access to a package registry or another service, so an incident affecting a worker can cross into systems outside TeamCity.
The flaw described in this advisory concerns the trust placed in an existing agent identity, not a requirement that someone guess an administrator’s password.
This is why changing a password alone does not replace the recommended server correction, even if it is appropriate during a separate account incident.
Check who owns each build environment and whether a deployment service trusts artifacts generated there, particularly if your organization operates several TeamCity installations.
A server managed by your company in a cloud virtual machine can still be TeamCity On-Premises, while TeamCity Cloud is the vendor-operated service.
If it is unclear which arrangement you have, ask the person responsible for software updates and hosting rather than relying on the address or server name.
Why the Original Build Record May Matter After Patching
A repair to server behavior affects future requests, but does not rewrite an artifact that was already published or account for where a file was copied.
The first useful record for a suspicious build includes its project, build identifier, branch or source revision, agent, start and finish times, and produced files.
Check those values against the organization’s approved deployment records, because the visible build label alone may not identify which artifact was promoted.
An apparently clean new build does not make an older package safe if another pipeline already downloaded that older package and reused it.
Security teams can trace downstream use with existing logs, release records, and artifact inventories rather than running a suspicious artifact to see what it does.
If the organization has short retention on build logs, alert the responsible people quickly so useful records are preserved during investigation.
Where possible, identify the account or token scopes connected to the questioned jobs rather than guessing that every credential in TeamCity was exposed.
Do not place tokens, recovered secrets, or private repository material in an ordinary ticket when the responsible team has a secure channel for that evidence.

How to Apply the Supported TeamCity Correction
Step 1: Identify the deployment and its actual version
In your authorized TeamCity instance, compare the version shown in the server interface with deployment records or with a confirmation from the team that maintains it.
List standby installations and other nodes separately if they can take traffic, and check whether your organization controls the application update process.
Record whether you have a version that includes the fix or an earlier release still waiting for a maintenance decision.
If the product is TeamCity Cloud, use the vendor’s current guidance and keep unrelated alert checks separate from the On-Premises remediation.
Step 2: Choose a fixed server version or the supported plugin
For an ordinary server upgrade, JetBrains identifies 2026.1.7, 2026.2.3, and 2026.3 as releases with the fix, in addition to supported releases that inherit it.
Use the official TeamCity upgrade instructions to check backup and installation requirements before you change the server or its database.
Plan the update through your normal maintenance process and have a recoverable backup and access to the operating environment before changing the server.
If the server cannot be upgraded immediately, confirm that it is at least 2021.2 and use JetBrains’ official security patch plugin for this specific CVE.
If neither path is available on an older deployment, involve the service owner immediately and plan a supported upgrade or restriction rather than leaving exposure unresolved.
Step 3: Confirm the patch in the administration interface
On TeamCity 2024.03 through 2026.2.1, open Administration, choose Updates, and review Available security updates for the applicable JetBrains patch.
On TeamCity 2026.2.2 or later, the Security patches setting distinguishes automatic installation from downloading and notifying an administrator.
If your setting only downloads the patch, review and apply it on the Updates page; a notification that it was downloaded does not mean it is installed.
For a supported older manual installation, obtain the plugin only through the vendor advisory and follow the documented plugin procedure for that version.
Step 4: Validate an ordinary build from a trusted worker
Once the server is corrected, verify the installed version or active patch before using TeamCity to produce files that other systems depend on.
Check that authorized agents reconnect and run an ordinary approved workflow without passing sensitive production credentials to a build used only for validation.
Match the completed result to the expected source revision and build worker instead of using an exit status as the only evidence.
If records disagree, pause release promotion for the questioned builds and let the platform and response teams determine which artifacts need further review.
What to Do If an Existing Build or Release Looks Wrong
- Preserve the affected builds’ records, agent identifiers, access logs, and artifact hashes through approved incident procedures instead of rerunning unexplained output.
- Pause promotion of questioned releases and inform the owner of the release channel, especially if downstream systems already depend on those artifacts.
- Patch all affected On-Premises servers and confirm the correction, keeping that operation separate from the investigation of what happened before it.
- Ask responders to scope secrets exposed to affected jobs and to coordinate narrowly targeted credential actions with the services that manage access.
- Where a package needs replacement, use the approved clean build and release process and verify which downstream consumers actually moved to its replacement.
Do not publish an artifact just because it has the same file name as yesterday’s release, and do not quietly overwrite evidence of what was distributed.
A rebuild can supply a replacement, but it does not retract a file already cached in a registry or fetched by an integration.
Keep both distribution and replacement records so the organization can tell which consumers, environments, or customers may still be using an earlier copy.
What to Review With the Network and Release Teams
JetBrains recommends restricting TeamCity access to trusted networks where possible, and using protected access when legitimate workers cannot operate inside them.
Teams with externally hosted workers should identify which connections are genuinely needed before the network owner makes a change that could disrupt build operations.
Separate the workers and the server where supported, and assign named responsibility for verifying that important release jobs still run after the change.
If service access is temporarily narrowed, keep that record distinct from the version check, because the network change does not install missing fixes.
The team responsible for publishing a release should also confirm where the current supported build output is stored and which workflow is allowed to promote it.
That gives responders a way to suspend one release path when needed rather than interrupt every project because their artifact destinations are unclear.
Use the records teams already have, such as a package inventory, deployment approvals, and build identifiers, to decide which paths need different treatment.
Do not broaden access to work around a failed test agent without checking whether the previous restriction was deliberately imposed for this incident.
What an Orderly Recovery Looks Like in Practice
Suppose an application build fails intermittently after a CI maintenance window, and somebody notices that two workers have reported different results for the same revision.
First confirm whether the workers were expected and compare each result with the approved execution record, rather than assuming intermittent failures show exploitation.
If one build produced a package already accepted by a downstream service, preserve that build’s record and identify where the exact package was used.
A new build from the expected source and worker may provide a replacement, but the release owner must still confirm which consumers switch to it.
If the old package never left the build environment, the release team may have a narrower decision, even though responders still have to investigate access.
That distinction makes it easier to explain which systems can resume normal activity and which ones remain in review without making a blanket compromise claim.
Track the Point at Which a Build Can Reach Customers
List the points between a completed build and a public release, including any human approval, signing service, artifact store, or separate deployment system.
A team that signs artifacts away from its build workers has different evidence to review than a team whose build automatically publishes after a successful run.
Ask whether the release record identifies both the source revision and the artifact that was actually shipped, so you can compare them without guessing.
Preserve the approvals and release records before replacing a suspect artifact, because they help the response team explain which customers may have received it.
If no affected artifact reached a release channel, record the basis for that conclusion rather than treating an empty download log as complete proof.
If an earlier build reached customers and cannot be verified, coordinate instructions for checking the replacement with the team responsible for distribution and support.
When only some jobs were exposed, leave unrelated work running only if the response lead confirms that it does not depend on the affected workers.
Identify the records that will expire first, then ask whoever controls their retention to preserve the relevant time window before the normal rotation.
Frequently Asked Questions
Is a TeamCity account required for this vulnerability?
JetBrains says a reachable, vulnerable server could allow an unauthorized party to impersonate an existing authorized agent without a TeamCity user account.
Update the server and review which networks can reach it rather than relying on account passwords as the primary correction.
What versions include the immediate fix?
JetBrains names 2026.1.7, 2026.2.3, and 2026.3, and says customers who cannot update can use the separate plugin on eligible versions.
Check the precise running version or active official patch and follow the vendor’s guidance for later releases and unsupported installations.
Does the plugin replace a normal TeamCity upgrade?
The plugin addresses CVE-2026-136858, while a supported server upgrade can include other corrections that the individual plugin does not supply.
Treat it as a specific mitigation and keep regular maintenance on the schedule even after confirming the plugin is active.
Does TeamCity Cloud need the On-Premises patch?
No, JetBrains says that the managed TeamCity Cloud service has already received the corrective measures and does not require that customer action.
Confirm which product your team operates, because a self-managed installation running on a cloud server is not the same service.
Does applying the fix prove an earlier build was trustworthy?
No, it changes the software going forward but cannot establish who ran a previous build or which artifact reached a separate distribution channel.
Use saved job records, package hashes, and the destination’s deployment history to answer that earlier question.
Should I rotate every secret used by the build system?
A responder should identify which projects, jobs, environments, and credentials were involved rather than assuming all tokens need an identical response.
Coordinate rotation and revocation with the systems that issue the credentials, and verify normal service access afterward.
The Bottom Line
For TeamCity On-Premises, install and verify the vendor’s server fix or compatible security patch plugin, then confirm normal operation with approved build agents.
If an earlier build looks suspicious, preserve the record and hold release promotion until the people responsible know what was produced and where it went.
Join the discussion
0 commentsShare your experience or ask a question about this article.
Discussion
Start the conversation
Have a question or something useful to share? Add the first comment.