Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to TeamCity (low-privileged)
-
ExploitSupply crafted Mercurial subrepository path
-
ExecutionTrigger relative path traversal (CWE-23)
-
ImpactExecute arbitrary code on build server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
|
| Exploitation Conditions | The TeamCity instance must use Mercurial version control and process subrepository paths, and the attacker must hold a low-privileged authenticated account (CVSS PR:L) capable of supplying or influencing those subrepository paths. Exploitation is therefore limited to deployments actually configured with Mercurial VCS roots using subrepositories - instances relying solely on Git or other VCS are not exposed via this vector. Authentication is required (not remote-unauthenticated), and only versions below 2026.2.1 (in the 2026.2 branch) and below 2026.1.5 (all earlier branches) are affected; updating to those versions is the vendor-provided fix. |
| Impact | Signals are moderate and largely consistent rather than alarming. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N, C:H/I:H/A:H) describes a network-reachable, low-complexity flaw that nonetheless requires authentication (PR:L), and SSVC rates Technical Impact as 'total' but Exploitation as 'none' and Automatable as 'no'. EPSS is low at 0.59% (49th percentile), there is no CISA KEV listing, and no public exploit was identified, so this is not evidence of widespread or opportunistic attack. The vuln.today decision label is 'this_week' - a prompt-but-not-emergency priority - which aligns with the picture of a high-impact RCE that is gated behind authentication and a specific VCS configuration (Mercurial subrepositories). Net: a genuine high-severity patch-this-week item for organizations running TeamCity with Mercurial, not a drop-everything emergency; the PR:L requirement and 'Automatable: no' SSVC value argue against mass exploitation. Note a tension worth verifying: the CVSS uses PR:L, but triggering path traversal via Mercurial subrepository paths plausibly requires the ability to configure or influence VCS roots, which may demand project-level privileges higher than a generic low-privileged account - confirm the exact privilege boundary with JetBrains. |
| Exploit ScenarioDerived | A low-privileged authenticated TeamCity user who can configure or influence a Mercurial VCS root supplies a crafted subrepository path that escapes the intended directory (CWE-23 relative path traversal), causing the server to write or execute attacker-controlled content and achieve remote code execution on the build server. No public exploit code was identified at the time of analysis, and the low-complexity network vector (AC:L/AV:N) means that once a valid authenticated session and Mercurial usage exist, exploitation is straightforward. Compromise of a CI server of this kind typically exposes build secrets and artifacts. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 25, 2026
Remote code execution in JetBrains TeamCity is reachable through Mercurial subrepository path handling, allowing an authenticated low-privileged user (CVSS PR:L) to execute code on the CI server. Only instances configured with Mercurial VCS roots that process subrepository paths are exposed; deployments using Git or other VCS alone are not affected via this vector. Fixed in TeamCity 2026.2.1 and 2026.1.5; no public exploit code or active exploitation is reported (SSVC exploitation: none), and EPSS is modest at 0.59% (49th percentile).
Earlier versions of this analysis (1)
Remote code execution in JetBrains TeamCity affects versions before 2026.2.1 and 2026.1.5, requiring an authenticated low-privilege account and a deployment using Mercurial version control where crafted Mercurial subrepository paths can lead to code execution. CVSS 7.5 with AC:H and PR:L makes exploitation conditional rather than broadly reliable, and instances that do not use Mercurial repositories are not exposed through this path. No public exploit was identified at time of analysis, no CISA KEV confirmation is present in the supplied data, and JetBrains fixed the issue in 2026.2.1 and 2026.1.5.
RemediationAI
Vendor-released patch: upgrade TeamCity to 2026.2.1 (for the 2026.2 branch) or 2026.1.5 (for all earlier branches), per the JetBrains fixed-issues advisory at https://www.jetbrains.com/privacy-security/issues-fixed/. If upgrading cannot be completed immediately, restrict Mercurial VCS roots that use subrepositories: remove .hgsub-based subrepository references from build configurations or disable those Mercurial VCS roots until patched, accepting that affected pipelines cannot fetch subrepositories. Additionally, review accounts holding project or build-configuration permissions that allow supplying Mercurial URLs or subrepository paths, and reduce those grants to trusted users, with the trade-off of narrowing developer self-service. JetBrains presents updating to the fixed versions as the complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is classified CWE-23 (Relative Path Traversal) in TeamCity's handling of Mercurial subrepository paths. Mercurial's .hgsub mechanism lets a repository reference external subrepositories by path or URL; TeamCity's Mercurial VCS integration resolves those paths when checking out or collecting changes, and insufficient validation of relative path components permits traversal outside the intended working directory. Because TeamCity agents and server-side VCS processing operate under elevated service accounts, path escape can translate into code execution on the build infrastructure - the total technical impact rated by SSVC. Exploitation requires a Mercurial-based VCS root with subrepository handling and a low-privileged authenticated account able to supply or influence those paths; the CVSS vector AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H reflects network reachability with low privileges and no user interaction. The precise traversal trigger mechanics are not detailed in the available sources. Affected per the CPE cpe:2.3:a:jetbrains:teamcity is the TeamCity server product in the 2026.2 branch before 2026.2.1 and all earlier branches before 2026.1.5.
Know when Teamcity gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Network-reachable, low-complexity path traversal to RCE requiring an authenticated user able to supply Mercurial subrepository paths (PR:L), yielding full confidentiality, integrity and availability impact on an unchanged scope.
Primary rating from Vendor (JetBrains).
CVSS VectorNVD
Lifecycle Timeline
4DescriptionNVD
In JetBrains TeamCity before 2026.2.1, 2026.1.5 remote code execution was possible via Mercurial subrepository paths
Executive ViewAI
JetBrains TeamCity has a high-severity remote code execution vulnerability exploitable by low-privileged authenticated users on CI servers configured with Mercurial VCS roots. This puts build infrastructure and any credentials or code artifacts trusted by the pipeline at direct risk, and leadership should care because CI servers are high-value pivot points into development and production environments.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Path traversal in JetBrains TeamCity before 2023.11.4 enables remote attackers to perform a limited set of administrativ
Remote code execution in JetBrains TeamCity before 2026.1.3 and 2025.11.7 allows unauthenticated attackers to execute ar
In JetBrains TeamCity before 2023.11.4 authentication bypass allowing to perform admin actions was possible. Rated criti
In JetBrains TeamCity before 2023.05.4 authentication bypass leading to RCE on TeamCity Server was possible. Rated criti
In JetBrains TeamCity before 2023.11.3 authentication bypass leading to RCE was possible. Rated critical severity (CVSS
Remote code execution in JetBrains TeamCity before 2026.1.2 and 2025.11.6 allows an attacker to escape the Kotlin DSL sa
Sandbox escape in JetBrains TeamCity's Kotlin DSL configuration mechanism allows an attacker who can supply or modify ve
Remote code execution in JetBrains TeamCity server affects versions before 2026.1.3 and before 2025.11.7, where a crafte
Remote code execution in JetBrains TeamCity (versions before 2026.1.3 and before 2025.11.7) is possible through argument
Remote code execution in JetBrains TeamCity allows an authenticated user with rights to create or modify Perforce VCS ro
Remote code execution in JetBrains TeamCity before 2026.1.3 and before 2025.11.7 is reachable by an authenticated user w
Remote code execution in JetBrains TeamCity CI/CD servers affects releases before 2026.2, 2026.1.4, and 2025.11.8 when t
EUVD-2026-129794
GHSA-8g7p-m3jw-4f6p
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB