Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-42793: Authentication Bypass Leading to RCE in JetBrains TeamCity

Published Sep 19, 2023 · Updated 3 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days11 mentions · peak 7 in a dayToday
CVSS9.8Critical · v3.1
EPSS100.0%100th percentile
CISA KEVYesAdded Oct 4, 2023
In the wildActivePer CISA KEV
Vendor
Jetbrains
IdentifiersCVE-2023-42793CWE-288 · Authentication Bypass Using an…

CVE-2023-42793 is an authentication bypass vulnerability affecting JetBrains TeamCity Server versions before 2023.05.4. Insecure handling of specific request paths allows a remote, unauthenticated attacker to bypass access controls and achieve arbitrary code execution, potentially gaining administrative control of the server. Russian SVR actors tracked as APT29 exploited the vulnerability at scale beginning in September 2023; Diamond Sleet and Onyx Sleet also exploited it in October 2023.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can compromise the TeamCity server and expose source code, signing certificates, and other sensitive resources accessible to the CI/CD environment. Administrative control and arbitrary code execution can enable data theft, manipulation of build and deployment processes, service disruption, and follow-on compromise of connected systems. Access to software delivery infrastructure creates potential downstream software supply-chain risk.

Mitigation

If you can’t patch tonight, do this now.

Avoid exposing TeamCity services directly to the internet unless strictly necessary. Restrict network access to trusted users and systems to reduce exploitation opportunities. Exposure restrictions do not replace upgrading.

Remediation

Patch, then assume compromise.

Upgrade JetBrains TeamCity Server to version 2023.05.4 or later. Continue applying subsequent JetBrains security updates.

Public exploits

Exploits

12 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
jetbrains_teamcity_rce_cve_2023_42793.rbThis repository contains a single Metasploit module implementing an unauthenticated remote code execution (RCE) exploit for JetBrains TeamCity servers vulnerable to CVE-2023-42793. The exploit targets TeamCity versions prior to 2023.05.4 and leverages an authentication bypass to create an admin token, modify internal configuration, and execute arbitrary OS commands via the TeamCity REST API. The module is weaponized, supporting both Windows and Linux targets, and allows the attacker to run arbitrary commands as the TeamCity process user. The exploit interacts with several HTTP endpoints on the target server, including /login.html for detection, /app/rest/users/id:<TEAMCITY_ADMIN_ID>/tokens/RPC2 for token management, /admin/dataDir.html for configuration changes, and /app/rest/debug/processes for command execution. The code is structured as a standard Metasploit module and is ready for operational use within the Metasploit framework.Disclosed Sep 19, 2023 · Framework: metasploit · ruby · networkWeaponizedCVE-2023-42793This repository provides two Bash scripts exploiting CVE-2023-42793, a critical vulnerability in JetBrains TeamCity. The first script (CVE-2023-42793_admin.sh) creates a new SYSTEM_ADMIN user with known credentials by abusing the REST API, allowing an attacker to gain administrative access. The second script (CVE-2023-42793_rce.sh) enables a debug setting and then executes arbitrary commands on the target server, returning the output. Both scripts automate the process of obtaining a bearer token via a vulnerable endpoint, performing the exploit action, and cleaning up by deleting the token. The repository is structured simply, with two exploit scripts and a README providing usage instructions and proof-of-concept images. The main attack vector is network-based, targeting exposed TeamCity REST API endpoints. No hardcoded IPs or domains are present; the scripts require the attacker to supply the target's base URL and port.Zenmovie · Disclosed Oct 5, 2023 · bash · networkOperationalCVE-2023-42793This repository contains a working exploit for CVE-2023-42793, targeting JetBrains TeamCity servers prior to version 2023.05.4. The exploit is implemented in Python (exploit.py) and is designed to achieve unauthenticated remote code execution (RCE) by chaining several HTTP requests to the TeamCity REST API. The script first creates an authentication token, modifies a configuration file to enable debug processes, and then triggers a reverse shell payload using the debug process execution endpoint. The payload is a bash reverse shell that connects back to an attacker-controlled listener. The README provides usage instructions and references. The exploit is operational and provides a real shell if successful, requiring only the target URL and listener details as input. The main attack vector is network-based, exploiting exposed TeamCity HTTP endpoints. The code is self-contained and does not rely on any external frameworks.hotplugin0x01 · Disclosed Apr 21, 2024 · python · networkOperationalCVE-2023-42793This repository provides a two-stage exploit for CVE-2023-42793, a critical vulnerability in JetBrains TeamCity. The structure consists of two main Python scripts: 1. 'exploit.py': This script exploits the vulnerability to create a new administrator account on a vulnerable TeamCity server. It interacts with the TeamCity REST API to obtain or reset an admin token and then uses it to create a new admin user with either random or user-specified credentials. The script prints and optionally saves the token and credentials for later use. 2. 'rce.py': This script leverages the newly created admin account (using the token from the previous step) to enable debug processes on the TeamCity server and then execute arbitrary OS commands via the TeamCity REST API. It supports executing any command, including reverse shell payloads, by sending crafted HTTP requests. The script requires the token file generated by 'exploit.py'. The repository also includes a 'requirements.txt' for dependencies and a detailed README.md with usage instructions, examples, and references. The exploit is operational, providing full admin access and remote code execution on vulnerable TeamCity instances. The main attack vector is network-based, targeting accessible TeamCity REST API endpoints. The scripts are intended for use against systems the tester is authorized to assess.B4l3rI0n · Disclosed Apr 24, 2024 · python · networkOperationalCVE-2023-42793This repository is a Rust-based exploit for CVE-2023-42793, a vulnerability in JetBrains TeamCity. The exploit consists of a single main Rust source file (src/main.rs), a Cargo.toml manifest, and a README.md with usage instructions. The exploit takes three arguments: the TeamCity server URL, a username, and a password. It interacts with the TeamCity REST API by first deleting a specific token endpoint, then retrieving a new token, and finally using that token to create a new user with SYSTEM_ADMIN privileges. The exploit demonstrates the ability to programmatically create an administrative user on a vulnerable TeamCity instance, effectively granting the attacker full control. The code uses the reqwest library for HTTP requests, serde_json for JSON handling, and roxmltree for XML parsing. No hardcoded endpoints are present except for the REST API paths, and the exploit is operational, requiring only the target URL and desired credentials.junnythemarksman · Disclosed May 27, 2024 · rust · networkOperationalCVE-2023-42793This repository contains a Python exploit script (main.py) targeting JetBrains TeamCity servers vulnerable to CVE-2023-42793. The exploit requires a valid TeamCity Bearer token (which must be obtained separately) and the target TeamCity server's URL and port. The script first enables debug mode on the TeamCity server by sending a crafted HTTP POST request. It then sends another POST request to trigger remote code execution by instructing the server to execute a reverse shell command, which connects back to the attacker's netcat listener. The payload is a standard bash reverse shell, encoded for URL transmission. The repository consists of the exploit script and a README file with usage instructions. The exploit is operational and provides remote shell access to the attacker if the prerequisites are met.HusenjanDev · Disclosed Jul 5, 2024 · python · networkOperationalcve-2023-42793This repository is a proof-of-concept exploit for CVE-2023-42793, targeting JetBrains TeamCity servers. The main exploit logic is implemented in 'main.go', written in Go. The exploit takes three command-line arguments: the target TeamCity server's URL, a username, and a password for the new user to be created. It first retrieves an authentication token for the admin user (id:1) by sending a GET request to the TeamCity REST API endpoint '/app/rest/users/id:1/token/RPC2'. Using this token, it then sends a POST request to '/app/rest/users' to create a new user with SYSTEM_ADMIN privileges. The exploit leverages insecure TLS (skipping certificate verification) and hardcodes the email and role for the new user. The repository contains only one code file (main.go) and several IDE configuration files. No detection scripts or fake code are present; the exploit is operational and provides administrative access to the attacker if the target is vulnerable.jakehomb · Disclosed Apr 14, 2025 · go · networkOperationalNuclei-Template-CVE-2023-42793.yamlThis repository contains a single Nuclei template YAML file targeting CVE-2023-42793, a critical authentication bypass and remote code execution vulnerability in JetBrains TeamCity servers prior to version 2023.05.4. The template automates the exploitation process by sending a sequence of HTTP requests: it first manipulates user tokens to bypass authentication, then enables debug process execution by editing internal configuration, and finally executes arbitrary system commands via the TeamCity REST API. The exploit supports both Windows and Linux/Unix targets by issuing appropriate commands. The file is structured for use with the Nuclei vulnerability scanner, and includes metadata, references, and search queries for identifying TeamCity instances. The main attack vector is network-based, exploiting exposed TeamCity HTTP endpoints. The endpoints used are fingerprintable and directly relate to the exploitation chain. The exploit is operational and can be used to achieve RCE if the target is vulnerable.syaifulandy · Disclosed May 11, 2025 · Framework: nuclei · yaml · networkOperationalCVE-2023-42793This repository is a Go-based exploit targeting JetBrains TeamCity servers. The main logic is implemented in 'exploiter.go' and orchestrated by 'main.go'. The exploit works by authenticating to the TeamCity server, enabling debug mode (which allows arbitrary process execution), and then using the debug process API to download a Python reverse shell script from a remote URL and execute it on the server. The endpoints targeted are specific TeamCity REST API endpoints for user token management, enabling debug mode, and executing processes. The exploit requires the attacker to provide the TeamCity server URL and the URL of the reverse shell script. If successful, it grants the attacker remote shell access to the TeamCity server. The code is operational and provides a working exploit chain, but the payload (reverse shell) must be hosted by the attacker. The repository contains 5 files, with the main exploit logic in 'exploiter.go' and the entry point in 'main.go'.syorik · Disclosed Oct 9, 2025 · go · networkOperationalCVE-2023-42793This repository contains two Python exploit scripts targeting JetBrains TeamCity servers vulnerable to CVE-2023-42793. The first script, 'exploit-rce.py', automates the process of obtaining a user token, enabling debug process execution, and then allows the attacker to execute arbitrary commands on the target server via the TeamCity REST API. The second script, 'user_add_administrator.py', creates a new administrator user on the target TeamCity instance by sending a crafted POST request with the appropriate role assignment. Both scripts interact with specific REST API endpoints exposed by TeamCity, and require the target to be accessible over HTTP. The README provides usage examples and legal disclaimers. The repository is operational and provides working exploit code for RCE and privilege escalation on vulnerable TeamCity servers.cxdxnt · Disclosed Nov 27, 2025 · python · networkOperationalCVE-2023-42793This repository contains a Python exploit for CVE-2023-42793, a critical authentication bypass vulnerability in JetBrains TeamCity. The main file, CVE-2023-42793.py, is a standalone script that can scan single or multiple TeamCity instances for the vulnerability. It works by interacting with the TeamCity REST API to delete and create tokens for the admin user, then uses the obtained token to create a new administrator account with a known password. The exploit then verifies the new account by attempting a login. Results, including the new credentials and login URL, are saved to an output file. The script supports both single-target and batch scanning modes, with configurable threading and timeout options. The README provides usage instructions and expected output formats. No hardcoded IPs or domains are present; targets are supplied by the user. The exploit is operational and provides full admin access to vulnerable TeamCity servers.DDestinys · Disclosed Jan 6, 2026 · python · networkOperationalCVE-2023-42793This repository contains a Python exploit script (CVE-2023-42793.py) targeting JetBrains TeamCity servers vulnerable to CVE-2023-42793. The exploit leverages TeamCity's REST API to first delete and then create a user token for the default user (id:1), and subsequently uses this token to create a new user with SYSTEM_ADMIN privileges and a known password. The script can target a single URL or a list of URLs, and successful exploitation is logged to a file. The README provides clear usage instructions, dorking tips for finding vulnerable servers, and a detailed explanation of the exploit's workflow. The main attack vector is network-based, exploiting unauthenticated access to TeamCity's REST API endpoints. The repository is operational, providing a working exploit that results in full administrative compromise of the target TeamCity instance.H454NSec · Disclosed Sep 29, 2023 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
JetbrainsTeamcityapplication
FAQ

Frequently asked questions

Is CVE-2023-42793 exploited in the wild?
Yes. As of Nov 20, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Oct 4, 2023.
Is there a public exploit for CVE-2023-42793?
Yes. Mallory tracks 12 public exploits or proofs of concept for CVE-2023-42793, the earliest disclosed Sep 19, 2023.
Is there a patch for CVE-2023-42793?
Upgrade JetBrains TeamCity Server to version 2023.05.4 or later. Continue applying subsequent JetBrains security updates.
What products are affected by CVE-2023-42793?
Jetbrains Teamcity.
How severe is CVE-2023-42793?
CVE-2023-42793 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 100.0% (100th percentile) as of Nov 20, 2026.
Activity feed

Recent activity

62 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
zeropath blogNews · Nov 19, 2026Brief Summary: JetBrains TeamCity CVE-2026-132891, Critical Remote Code Execution via External Pull Requests - ZeroPath Blog | ZeroPathEarlier TeamCity vulnerability exploited globally by SVR/APT29 beginning in September 2023. Mentioned as historical context for patch prioritization, with no established connection to CVE-2026-132891.Read more ↗zeropath blogNews · Nov 19, 2026Brief Summary: JetBrains TeamCity CVE-2026-133015, Remote Code Execution via Boot Classpath Libraries in the Kotlin DSL Sandbox - ZeroPath Blog | ZeroPathA TeamCity authorization bypass involving insecure handling of specific paths that permits arbitrary code execution. CISA reports exploitation beginning in September 2023 by SVR, also identified as APT29 and NOBELIUM/Midnight Blizzard. Included as historical context, not evidence of exploitation of CVE-2026-133015.Read more ↗zeropath blogNews · Nov 19, 2026Brief Summary: JetBrains TeamCity CVE-2026-133089, Unauthenticated Command Server in the TFS Helper Process - ZeroPath Blog | ZeroPathA historical TeamCity vulnerability exploited by Russia's SVR/APT29 against internet-connected servers. CISA described subsequent privilege escalation, lateral movement and additional backdoors. JetBrains patched it in September 2023. It appears as background; its exploitation history does not establish exploitation of CVE-2026-133089.Read more ↗zeropath blogNews · Nov 19, 2026Brief Summary: JetBrains TeamCity CVE-2026-133018, Remote Code Execution via the Kotlin DSL Sandbox UI Patches Callback - ZeroPath Blog | ZeroPathA historical TeamCity vulnerability cited to illustrate the consequences of delayed patching. The article reports exploitation by Russian SVR actors beginning in September 2023, affecting dozens of companies and more than one hundred devices, with subsequent privilege escalation, lateral movement, backdoors and persistence. JetBrains had released a patch that September. This history is explicitly not evidence of exploitation of CVE-2026-133018.Read more ↗
+52 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence45Every report linking this CVE to a named adversary.
Associated malware13Malware families linked to this CVE, with evidence and IOCs.
Detection signatures5YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity2Community discussion across Reddit, Mastodon, and other social sources.