Technology

Hackers exploit critical JetBrains TeamCity flaw one day after disclosure

Hackers exploit critical JetBrains TeamCity flaw one day after disclosure
Image: Security Affairs

Hackers exploited a critical JetBrains TeamCity flaw one day after disclosure, impersonating build agents to steal secrets and tamper with software builds.

JetBrains disclosed CVE-2026-136858 (CVSS score of 9.1), a critical authentication bypass in TeamCity On-Premises, on December 2. The vulnerability affects all TeamCity On-Premises versions, according to the JetBrains advisory. Attackers can impersonate an existing build agent, the machine that runs software build jobs. This allows them to intercept builds, steal secrets, and change build results and software artifacts.“A critical security vulnerability has been identified in TeamCity On-Premises and assigned the Common Vulnerabilities and Exposures (CVE) identifier CVE-2026-136858. If exploited, this vulnerability may allow an unauthenticated attacker who can reach a TeamCity server over HTTP(S) to impersonate an existing authorized build agent.” reads the advisory. “An attacker could intercept builds, access build secrets, and tamper with build results and artifacts.”This creates a serious supply chain risk. A fake build agent can steal credentials used during build jobs, report false results, or add malicious code to software before it is released. As a result, organizations can no longer trust software produced by a compromised TeamCity server.

Attackers started exploiting the flaw the very next day, WatchTowr researchers warned.“December 3, 2026: watchTowr observed exploitation attempts via Attacker Eye” WatchTowr said.

Attackers reverse-engineered the patch, then reproduced and exploited it against WatchTowr’s honeypot network. The attackers tried to guess the ID numbers of established build agents, a step the exploit needs. According to SecurityWeek, WatchTowr also tied the same actor to an earlier successful attack with PHP2Shell on a Palo Alto PAN-OS device. That suggests the attackers go after high-impact bugs and move fast on them. It’s not the first time TeamCity has drawn this crowd either: in September 2026, CISA warned federal agencies that ransomware operators were targeting a different TeamCity flaw, CVE-2026-63077.

The fixed versions are 2026.1.7, 2026.2.3 and 2026.3, and JetBrains already updated TeamCity Cloud. Organizations that cannot upgrade have another option. JetBrains has released a security patch plugin for customers using TeamCity 2021.2 or later who cannot install an update. “If you are unable to update your server to version 2026.1.7, 2026.2.3, or 2026.3, you can install the security patch plugin we have released for TeamCity 2021.2 or later.” continues the advisory. “The security patch plugin addresses the specific vulnerability described above and can be installed without restarting the TeamCity server.” The plugin does not require a server restart, making it easier to deploy without interrupting build operations.

If you suspect an attack, installing the patch is not enough. JetBrains recommends checking teamcity-server.log for messages about mismatched authorization tokens and looking for tokens that are not empty. Preserve logs and build results before making changes. Then install the patch, rotate exposed credentials and treat all build artifacts as potentially compromised. WatchTowr recommends checking internet-facing servers first, especially those running builds that use sensitive credentials.

As an additional security measure while preparing to install the patch, JetBrains advised organizations to limit access to the /app/agents endpoint and its subpaths, allowing requests only from trusted IP addresses. This restriction can help prevent unauthorized access to the affected functionality.

hackersjetbrainsteamcityvulnerabilityexploit

This summary is from Security Affairs, published Dec 5, 2026. NewsFusion links to the original reporting and groups related coverage.

Cyber Security News app icon

Find more in the app

Keep reading in Cyber Security News

Get every Cyber Security News story as it breaks, follow the topics you care about, and get alerts the moment something big happens. Free on iPhone and Android.

  • Breaking-news alerts
  • Follow topics & teams
  • Related coverage grouped by AI