CVE-2025-68164
JetBrains TeamCity vulnerability analysis and mitigation

Overview

CVE-2025-68164 is a port enumeration vulnerability in JetBrains TeamCity affecting all versions before 2025.11. The flaw allows high-privileged (administrative) users to enumerate open ports on internal network hosts via the Perforce version control connection test functionality. It was published on December 16, 2025, with a patch released in TeamCity 2025.11. The vulnerability carries a CVSS v3.1 base score of 2.7 (Low), reflecting its requirement for high privileges and limited confidentiality impact (JetBrains Advisory, Red Hat CVE).

Technical details

The root cause is classified as CWE-203 (Observable Discrepancy), where differences in server responses to the Perforce connection test can be observed to infer whether a given port is open or closed on a target host. An authenticated administrator can craft connection test requests targeting arbitrary host/port combinations and use the discrepancy in responses to enumerate network services. This constitutes a Server-Side Request Forgery (SSRF)-adjacent information disclosure, as the TeamCity server acts as a proxy for network probing. No public proof-of-concept or detailed technical write-up has been identified beyond the vendor advisory (JetBrains Advisory, Red Hat CVE).

Impact

Successful exploitation allows an attacker with administrative access to TeamCity to conduct internal network port enumeration, potentially mapping open services and infrastructure behind the TeamCity server's network perimeter. The impact is limited to low confidentiality disclosure — no integrity or availability impact is present. While the direct damage is minimal, the reconnaissance capability could assist a malicious insider or compromised admin account in identifying targets for further lateral movement (JetBrains Advisory, Red Hat CVE).

Exploitability

There is no evidence of active in-the-wild exploitation or a publicly available proof-of-concept for CVE-2025-68164. The vulnerability requires high privileges (administrative access to TeamCity), significantly limiting the attacker pool. The EPSS score is extremely low at 0.000020, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (JetBrains Advisory, Red Hat CVE).

Exploitation steps

  1. Authenticate as Administrator: Log in to the TeamCity web interface using an account with administrative privileges.
  2. Navigate to VCS Root Configuration: Access the administration panel and create or edit a VCS Root configured to use Perforce as the version control system.
  3. Craft Connection Test Request: In the Perforce connection settings, specify an arbitrary internal host IP and a target port to probe (e.g., an internal database server or other network service).
  4. Observe Response Discrepancy: Trigger the "Test Connection" function and observe the server's response. Differences in error messages, response times, or status codes between open and closed ports reveal port state (CWE-203 observable discrepancy).
  5. Iterate to Enumerate Ports: Repeat the process with different host/port combinations to systematically map open services on the internal network, using the TeamCity server as an unwitting network probe (JetBrains Advisory).

Indicators of compromise

  • Logs: TeamCity server logs showing repeated Perforce connection test attempts to diverse internal IP addresses and port numbers in rapid succession, particularly from a single admin account.
  • Network: Outbound TCP connection attempts from the TeamCity server process to multiple internal hosts on non-standard or varied ports, consistent with port scanning behavior.
  • Behavioral: An administrative user account performing an unusually high volume of VCS Root connection tests without corresponding VCS Root creation or modification activity.

Mitigation and workarounds

JetBrains has addressed this vulnerability in TeamCity version 2025.11; upgrading to this version or later is the recommended remediation (JetBrains Advisory). As interim mitigations, organizations should restrict administrative access to TeamCity to only trusted personnel, implement network segmentation to limit the TeamCity server's outbound connectivity to only required VCS hosts, and audit administrative actions within the TeamCity environment. No configuration-based workaround that fully eliminates the vulnerability without upgrading has been published.

Additional resources


SourceThis report was generated using AI

Related JetBrains TeamCity vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-65906CRITICAL10
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesJul 23, 2026
CVE-2026-63077CRITICAL9.8
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
YesYesJul 27, 2026
CVE-2026-59796HIGH8.1
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesJul 10, 2026
CVE-2026-59795MEDIUM6.1
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesJul 10, 2026
CVE-2026-59794MEDIUM5.4
  • JetBrains TeamCity logoJetBrains TeamCity
  • cpe:2.3:a:jetbrains:teamcity
NoYesJul 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management