Description
This module exploits an unsafe XStream deserialization vulnerability in the JetBrains TeamCity agent polling protocol. An unauthenticated attacker can register a build agent, then submit a crafted error response that causes TeamCity to deserialize an attacker-controlled object graph.
The object graph uses FreeMarker and Commons Collections to invoke BasicDataSource.getConnection(). HSQLDB initialization statements then write a one-shot JSPWS file to the TeamCity webroot. Requesting the JSPWS file executes the payload with the privileges of the TeamCity server process, deletes the JSPWS source file, and removes the build agent registered by the module.
This vulnerability was patched in TeamCity version 2025.11.7, and version 2026.1.3.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/jetbrains/teamcity_rce_cve_2026_63077msf undefined(teamcity_rce_cve_2026_63077) > show actions ...actions...msf undefined(teamcity_rce_cve_2026_63077) > set ACTION < action-name >msf undefined(teamcity_rce_cve_2026_63077) > show options ...show and set options...msf undefined(teamcity_rce_cve_2026_63077) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub