Vulnerabilities and exploitation

JetBrains patches four critical TeamCity code execution flaws in version control handling

Four CVSS 9.9 remote code execution bugs in TeamCity's Perforce and Mercurial settings and build attribute handling are fixed in 2026.1.3 and 2025.11.7. No in-the-wild exploitation has been recorded.

By Junglewise News DeskPublished 4 min read
Video: Junglewise Live

JetBrains has fixed four critical remote code execution vulnerabilities in TeamCity, its build and continuous integration server, each rated 9.9 out of 10. All four sit in the way TeamCity handles version control settings: two in the Perforce integration, one in Mercurial version control root settings, and one in build attribute processing. Three of them are described as exploitable without authentication.

The consequence is much the same in each case. Successful exploitation gives an attacker code execution on the TeamCity server, which means the source code it checks out, the artifacts it produces and the deployment credentials it holds. For the Mercurial flaw, that extends to complete compromise of the continuous integration and delivery pipeline and every project the affected server manages. No in-the-wild exploitation has been recorded for any of the four.

The fixes are in TeamCity 2026.1.3 and 2025.11.7. Versions before those are affected across all four issues, so a single upgrade closes the set.

What to do now

  1. Upgrade TeamCity to 2026.1.3 or 2025.11.7, or later. Both releases contain the fixes for all four vulnerabilities, so there is no need to pick between them beyond matching your current release line.
  2. Check your running version first. If your server reports anything below 2026.1.3 or below 2025.11.7, it is affected by all four issues.
  3. Take the server off the open internet if it is reachable there. The build attribute injection flaw needs network access to the TeamCity interface and nothing else: no credentials, no user interaction beyond submitting a build configuration. Restricting access to a VPN or an internal network removes the unauthenticated path while you schedule the upgrade.
  4. Review who holds administrative and configuration access. The two Perforce-related issues are exploitable by someone who can reach the administration or configuration interfaces, including the Perforce settings pages, so the account that can edit a version control root is effectively an account that can run code on the server.
  5. If you find evidence of compromise after upgrading, rotate deployment credentials, signing keys and any tokens stored in TeamCity, and review recent build configurations for changes you did not make.
  6. Review build configuration and version control root edits in the audit log for changes you cannot account for.

Technical details

All four vulnerabilities carry a CVSS 3.1 base score of 9.9 and affect JetBrains TeamCity versions before 2026.1.3 and before 2025.11.7. Patches are available in those versions or later.

CVE-2026-132234: argument injection in Mercurial version control root settings, allowing unauthenticated attackers to execute arbitrary code. The vector string is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H and the weakness class is CWE-88, argument injection, where attacker-controlled input is passed into a command line and read as additional options rather than as data. Exploitation could lead to complete compromise of the pipeline and all projects managed by the affected server. No in-the-wild exploitation has been recorded.

CVE-2026-132233: remote code execution via build attribute injection, with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H and classified under CWE-23, relative path traversal. This is the one with no privileges required at all: the attack needs network access to the TeamCity interface but no prior authentication and no user interaction beyond submitting a build configuration. Exploitation could allow access to source code, build artifacts and deployment credentials, compromising the entire pipeline. No in-the-wild exploitation has been recorded.

CVE-2026-132232: argument injection in Perforce integration settings, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H, also CWE-88. Exploitation requires access to TeamCity administration or configuration interfaces, specifically the Perforce settings. Fixed in 2026.1.3 and 2025.11.7 or later. No in-the-wild exploitation has been recorded.

CVE-2026-132231: remote code execution in the Perforce integration caused by improper handling of best-fit character mapping in Perforce settings, allowing unauthenticated remote code execution. It is classified under CWE-1289, improper validation of unsafe equivalence in input. Best-fit mapping is the character set conversion that quietly substitutes a similar-looking character when the target encoding has no exact match, which is how a string that passed validation can become a different string by the time it reaches a command. An attacker who exploits it could take over the server outright, along with the pipelines it runs and the code it builds. A patch is available in 2026.1.3 and 2025.11.7 or later. No in-the-wild exploitation has been recorded.

These four are distinct from other recent TeamCity issues. CVE-2026-136858, an authentication bypass in agent registration, and CVE-2026-132891, remote code execution via external pull requests, are separate vulnerabilities with different affected version ranges and are not part of this set. Help Net Security covered the agent registration bypass separately.

Given that all four are fixed by the same two releases, the practical picture is simpler than the CVE count suggests: one upgrade, four critical issues closed.

Share this article

On Junglewise Threat Intelligence

Scan your domain free: see what attackers can see from outside, in about 30 seconds.

This article as Markdown. Atom feed.