Payments are experiencing issues due to temporary restrictions in Russia. If your payment does not go through, please submit a support request.Our support team is available 24/7 — we are always here to help with hosting and server issues.We are now accepting requests for dedicated server rental and colocation services in our data center.Reminder: we recommend enabling backups for additional data protection.A new VPS/VDS lineup with NVMe storage and improved performance is now available.Maintenance work on some servers has been completed. All services are operating normally.
Article4 min readViews0

TeamCity Under Attack via Build-Agent Spoofing: What to Check in CI/CD

JetBrains has released fixes for critical CVE-2026-136858, which affects all versions of TeamCity On-Premises, while watchTowr has already observed exploitation attempts. Verify your version, agent logs, secrets, and published artifacts.

Comments 0

A copper sleeve intercepts a graphite capsule near a blue mechanism on a guide rail
In this article

On December 4, 2026, watchTowr reported attempts to exploit critical CVE-2026-136858 in TeamCity On-Premises, first detected the previous day in its honeypot network. JetBrains disclosed the vulnerability on December 2. If your organization runs a self-hosted TeamCity server, immediately preserve logs and build results, then update the server or apply the official patch. Subsequently, verify whether secrets or published artifacts were compromised.

What JetBrains and watchTowr Confirmed

According to an official JetBrains announcement, an unauthorized attacker who can access the TeamCity server via HTTP(S) can impersonate an authorized build agent. Such an agent can retrieve the assigned build and its transmitted secrets, tamper with the result, or publish a modified artifact. If the next stage uses this artifact, malicious code may execute within it.

At the time of publication, JetBrains was unaware of active exploitation. Later, watchTowr stated that on December 3, its Attacker Eye network observed attack attempts, a finding reported by SecurityWeek on December 4 based on watchTowr's data. These observations occurred within a honeypot network; sources do not confirm successful breaches of client production servers, nor do they establish the scale of the campaign.

Who Is Affected by the Vulnerability

JetBrains considers all versions of TeamCity On-Premises affected. The attack does not require a TeamCity account, but the server must be accessible to the attacker via HTTP(S). TeamCity Cloud has already been patched; users of the cloud version do not need to take additional action regarding this vulnerability.

How to close the vulnerability

  • Update TeamCity On-Premises to 2026.1.7, 2026.2.3, or 2026.3.

  • If an immediate update is not possible, install the official security patch plugin for TeamCity 2021.2 and later. It applies without a restart but only addresses CVE-2026-136858.

  • Restrict access to /app/agents and nested paths to the addresses of expected build agents, cloud agents, and their NAT gateways. First verify the actual routes to avoid disabling legitimate builds.

Do not assume automatic installation of the security patch; verify it. For TeamCity 2026.2.2 and later, JetBrains describes an 'Install automatically' mode. In versions 2024.03–2026.2.1, the patch must be checked and applied in the Available security updates section. For other supported versions, JetBrains recommends manual installation of the plugin. Planned updates to the current version remain preferable, as the standalone plugin does not include other security fixes.

How to check build traces and results

  • Before cleaning up and restarting, save teamcity-server.log, agent connection history, build results, and details about published artifacts.

  • In teamcity-server.log, find the line containing the fragment of the existing agent, but different authorization token. Then check the value inside the following quotes: a non-empty value may indicate a substitution attempt; JetBrains considers an empty value to be expected for this check.

  • By recording time, match the agent name, hostname, the original IP address, its connection history, assigned builds, results, and artifacts. A single log entry does not prove a successful breach.

  • If suspicion persists, rotate the secrets passed to potentially affected builds and treat their artifacts as untrusted until verified. Trace where they were used or deployed.

  • After the fix, run a control build and verify the actual result in a separate environment. A green status does not replace artifact and target deployment verification.

If TeamCity is managed by a contractor, request their hosting type, full version number, CVE-2026-136858 status, log check results, and a list of secrets or artifacts that required additional action. Do not ask them to forward actual secrets or full logs via standard email.

What remains unknown

watchTowr confirmed attempts in its honeypot network, but sources do not specify the number of confirmed compromised client servers, successful agent substitutions, affected organizations, or a single campaign operator. The absence of a detected string is not proof of system cleanliness: the conclusion relies on a combination of logs, agent history, builds, artifacts, and deployments. Information verified on December 4, 2026, at 21:10 MSK based on reports from JetBrains, watchTowr, and SecurityWeek.

Discussion 0

Share your experience and ask questions. Comments without links appear after editorial review.

No comments yet. Start the discussion.