Hackers Target Critical TeamCity Flaw Just One Day After Disclosure

Attackers are targeting a critical TeamCity vulnerability that could expose build credentials, compromise software artifacts and threaten downstream systems.

Dec 3, 2026
3 minute read
eSecurity Planet content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More

Attackers began targeting a critical JetBrains TeamCity vulnerability within a day of its disclosure. Successful exploitation could expose sensitive build credentials and compromise enterprise software.

Cybersecurity firm watchTowr reported on Dec. 4 that it detected exploitation attempts against its honeypot network on Dec. 3. The vulnerability, CVE-2026-136858, carries a critical CVSS score of 9.1 and allows unauthenticated attackers to impersonate trusted build agents.

JetBrains released security fixes on Dec. 2. Although watchTowr's exploitation findings do not establish a customer breach, affected organizations should investigate whether their software builds or credentials were compromised before remediation.

Build agent hijacking threatens software supply chains

TeamCity automates continuous integration and continuous delivery (CI/CD) workflows through build agents that execute assigned jobs. These agents may handle cloud access tokens, deployment keys and package registry credentials, making software development toolchains attractive targets for credential theft.

Advertisement

According to JetBrains' security advisory, the flaw bypasses authentication during build agent registration. Exploitation requires HTTP or HTTPS access to a vulnerable server and a valid existing build agent identifier, but no TeamCity account. Researcher Jiawei Guo privately reported the flaw on Nov. 24.

Successful exploitation could intercept assigned build jobs, expose credentials, falsify build results and alter software artifacts. A separate October breach at Railway exposed customer credentials after attackers compromised its build infrastructure.

Subsequent builds processing manipulated artifacts could execute malicious code. The Shai-Hulud supply chain attack demonstrated that malicious packages can carry valid provenance when trusted publishing workflows are compromised.

Unpatched TeamCity On-Premises deployments remain vulnerable. JetBrains has applied fixes to TeamCity Cloud and reported no evidence of exploitation there in its Dec. 2 advisory. Managed cloud customers do not need to apply this security update.

Advertisement

TeamCity security fixes and compromise assessment

Security teams should prioritize internet-accessible servers and installations handling sensitive build credentials. JetBrains' remediation guidance and TeamCity security best practices support the following vulnerability-specific and defense-in-depth measures:

  • Apply and verify security updates: Upgrade to TeamCity 2026.1.7, 2026.2.3 or 2026.3. Administrators unable to upgrade can install a CVE-specific patch plugin for versions 2021.2 and later without restarting the server. Verify automatic patch installation where enabled on version 2026.2.2 or later.
  • Restrict and segment network access: Limit access to /app/agents and its subpaths to authorized agent IP addresses, accounting for cloud agents and network address translation (NAT) gateways. Isolate build infrastructure from sensitive production systems.
  • Investigate suspicious agent activity: Check teamcity-server.log for authorization token mismatches involving existing agents. Nonempty tokens in these specific entries may indicate attempted hijacking; empty tokens are expected. Preserve evidence and correlate suspicious events with agent connections and build records.
  • Secure build credentials: Rotate potentially exposed secrets and investigate unauthorized access. Enforce least-privilege permissions and use short-lived credentials where supported.
  • Harden build environments: Use isolated, disposable build agents and dedicated agent pools for sensitive workloads. Run TeamCity servers and agents on separate hosts.
  • Verify artifact integrity: Quarantine suspicious outputs, trace downstream use and rebuild affected software in trusted environments. Validate signatures, provenance and build integrity while protecting signing keys independently of build agents.
  • Test incident response plans: Exercise procedures for CI/CD compromise, evidence preservation, credential revocation, artifact containment and downstream impact assessment.
Advertisement

Patching addresses the authentication bypass but cannot establish whether previous builds were compromised. Security teams should verify affected software before releasing it to production systems or customers.

Read more: The FBI's Countershift campaign outlines measures for faster incident response, machine credential protection and software supply chain monitoring.

eSecurity Planet Logo

eSecurity Planet is a leading resource for IT professionals at large enterprises who are actively researching cybersecurity vendors and latest trends. eSecurity Planet focuses on providing instruction for how to approach common security challenges, as well as informational deep-dives about advanced cybersecurity topics.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.