Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

JetBrains TeamCity Unauthenticated Remote Code Execution

Disclosed
Sep 19, 2023
Created
Sep 28, 2023

Description

This module exploits an authentication bypass vulnerability to achieve unauthenticated remote code execution
against a vulnerable JetBrains TeamCity server. All versions of TeamCity prior to version 2023.05.4 are
vulnerable to this issue. The vulnerability was originally discovered by SonarSource.

Author

sfewer-r7

Platform

Linux,Windows

Architectures

cmd

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_2023_42793
msf exploit(jetbrains_teamcity_rce_cve_2023_42793) > show targets
...targets...
msf exploit(jetbrains_teamcity_rce_cve_2023_42793) > set TARGET < target-id >
msf exploit(jetbrains_teamcity_rce_cve_2023_42793) > show options
...show and set options...
msf exploit(jetbrains_teamcity_rce_cve_2023_42793) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.