Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

The JetBrains advisory card reading "Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858)" in white type on a black background with purple, blue and green shapes and the JetBrains logo.
Image: JetBrains (fair use), advisory social card for CVE-2026-136858, December 2, 2026.

Response

A Critical TeamCity Flaw Lets an Attacker With No Account Pose as a Trusted Build Agent and Collect the Secrets Sent to It, and JetBrains Says One Line in the Server Log Can Show an Attempt

JetBrains patched CVE-2026-136858, rated 9.1, in TeamCity On-Premises versions 2026.1.7, 2026.2.3 and 2026.3 and shipped a hot patch plugin for 2021.2 and later. It knows of no attacks yet, but published a log string to search for and told customers to lock down the agent endpoint at the proxy.

Noah Park, ResponseNew York4 min read

NEW YORK - JetBrains has fixed a critical flaw in its TeamCity build server that lets an attacker who can reach the server over HTTP or HTTPS impersonate one of its existing, authorized build agents without logging in, putting the credentials and other secrets that builds hand to those agents within reach.

The flaw, CVE-2026-136858, affects every version of TeamCity On-Premises, JetBrains said in an advisory published Wednesday. "The attacker does not need a TeamCity user account," the company wrote. JetBrains' own score for the bug is 9.1 out of 10, and the National Vulnerability Database entry describes it as an authentication bypass during agent registration that allowed takeover of authorized build agents.

Why a build agent matters

Build agents are the machines that actually run a company's builds, and they often receive whatever the build needs, from source code to signing keys, cloud and registry credentials and deployment tokens. JetBrains said a successful attack could displace a legitimate agent and intercept the builds assigned to it, exposing credentials and other secrets passed to the agent, and could also falsify build results or publish tampered artifacts. "Downstream builds that consume those artifacts could execute attacker-supplied code," the advisory said.

A screenshot of the JetBrains TeamCity blog advisory "Critical Security Issue Affecting TeamCity On-Premises (CVE-2026-136858): Update to 2026.1.7, 2026.2.3, or 2026.3 Now" by Daniel Gallo, dated December 2, 2026, showing the summary bullets: an unauthenticated attacker who can reach a TeamCity server over HTTP(S) can impersonate an existing authorized build agent, intercept builds, access build secrets and tamper with results and artifacts, all On-Premises versions are affected, and fixes are in 2026.1.7, 2026.2.3 and 2026.3.
Image: JetBrains (screenshot, fair use), TeamCity blog, December 2, 2026. The advisory summary.

A security researcher, Jiawei Guo, reported the issue privately on November 24. "At the time of publishing this advisory, we are not aware of any active exploitation of this vulnerability," JetBrains wrote. It said it had already fixed TeamCity Cloud and found no evidence that any cloud environment was exploited through the flaw. TeamCity servers have drawn attackers before: an earlier TeamCity flaw, CVE-2026-63077, has been flagged by CISA as used in ransomware campaigns.

Fixing it

The fix is in TeamCity 2026.1.7, 2026.2.3 and 2026.3. For servers that cannot be upgraded right away, JetBrains released a security patch plugin for 2021.2 and later that can be installed without restarting the server. Servers on 2026.2.2 or later with automatic security patch installation turned on should fetch it on their own, and from 2024.03 onward administrators can find pending patches under Administration, Updates.

As an added control, JetBrains recommends configuring the reverse proxy, or another path-aware access control, to allow requests to /app/agents and everything beneath it only from the IP addresses where legitimate build agents connect from, including the outbound addresses of cloud agents and any NAT gateways they use.

A screenshot of the JetBrains advisory section "Additional mitigation," advising customers to configure a reverse proxy or other path-aware access control to allow requests to /app/agents and its subpaths only from IP addresses where legitimate build agents originate, including cloud agents' outbound addresses and NAT gateways.
Image: JetBrains (screenshot, fair use), December 2, 2026. The /app/agents allowlist JetBrains recommends.

Checking for an attempt

JetBrains gave defenders a specific string to search for. Entries in teamcity-server.log containing the text "of the existing agent, but different authorization token" followed by a quoted token value point to someone presenting a new token for an agent the server already knows. "A non-empty token may indicate an attempt to take over an existing build agent," the advisory said. Entries where the token is empty are expected and can be ignored.

A screenshot of the JetBrains advisory section "How to check for possible exploitation," telling administrators to search teamcity-server.log for entries containing "of the existing agent, but different authorization token" with a token value, noting that non-empty tokens may indicate an attempted takeover, and describing how to review the agent's connection history, builds and artifacts.
Image: JetBrains (screenshot, fair use), December 2, 2026. The log check JetBrains published.

For a hit with a non-empty token, JetBrains advises using its timestamp to review that agent's connection history and the builds assigned to it at the time, confirming that the hostname and source IP address match the real agent, and comparing build logs, results and published artifacts to judge whether the attempt worked. If exploitation is suspected, preserve logs and build results, patch the server and rotate every credential passed to builds that may have been affected. "Treat artifacts from those builds as untrusted until verified, and trace where they were used or deployed," the company wrote.

What to do now

  • Upgrade TeamCity On-Premises to 2026.1.7, 2026.2.3 or 2026.3, or install the security patch plugin.
  • Restrict /app/agents at the reverse proxy to known agent addresses, and keep the server off the open internet where possible, as JetBrains' best-practice guidance advises.
  • Search teamcity-server.log for "of the existing agent, but different authorization token" with a non-empty value, and forward that string to the SIEM as a standing alert.
  • Treat any confirmed hit as a secrets exposure: rotate the credentials those builds received and trace the artifacts they produced.

About the Author

Noah Park

Noah Park covers incident response, containment, and blue-team operations for SOCtember from New York.

Related stories

Response desk