JetBrains TeamCity Authentication Bypass Vulnerability (CVE-2023-42793)
Published In CISA KEV since Sources: SingCERT, pwn.watch, CVE.org
- Actively exploited
- Source: CSA/SingCERT How we classify
- Ransomware
- Public exploit
What is affected, what to do
In JetBrains TeamCity before 2023.05.4 authentication bypass leading to RCE on TeamCity Server was possible
The vulnerability is being actively exploited; treat it as a priority. CISA lists it as used in ransomware campaigns. Update JetBrains TeamCity to version 2023.05.4. Immediate actions, mitigation and detection rules are in the runbook below.
- Affected
- JetBrains TeamCity
lt *..2023.05.4
- JetBrains TeamCity
- Fixed in
- JetBrains TeamCity
2023.05.4
- JetBrains TeamCity
Not sure whether and how you are affected? Ask a question about this vulnerability
Metrics
9.8
Priority
XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.
Source: NVD, CVSS v3
9.8
CVSS v3
Severity Critical on the scale from 0 to 10.
Source: SingCERT, pwn.watch, CVE.org
99.99 %
EPSS score
High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
Source: FIRST EPSS, percentile 99.98
Show all metrics
- Severity
- Critical
Priority (0–325)
The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?
Read in glossary- 257.44 Methodology
Exploit maturity
An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.
Read in glossary- actively exploitedSource: CSA/SingCERT How we classify
XIEM Effective CVSS
XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.
Read in glossary- 9.8 Methodology
CVSS v3
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 9.8
EPSS score
The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.
Read in glossary- 99.99 %
- High — model estimates ≥ 50% chance of real-world exploitation within 30 days.
EPSS percentile
The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.
Read in glossary- 99.98
- Critical — this CVE ranks in the top fifth of all CVEs scored today (rank ≥ 80%).
KEV status
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- Actively exploited
- Published
In CISA KEV since
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossaryCWE
CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.
Read in glossary- CWE-288
Response and mitigation
Why act now?
Prioritisation rationale
This CVE sits on KEV for a reason: unauthenticated network access is enough for full takeover of the TeamCity server, and CISA explicitly flags it as used in ransomware campaigns — exploitation likelihood is among the highest tracked anywhere. Observed operators (including state-aligned supply-chain intrusions targeting software vendors) use the bypass to tamper with build pipelines, steal signing keys and plant backdoors in downstream products, so the blast radius goes well beyond the TeamCity host itself. Treat any internet-reachable or broadly developer-reachable TeamCity instance below 2023.05.4 as P1; internal instances holding production credentials or code-signing material also warrant P1 — prioritise by the value of the secrets inside, not just by network exposure.
Runbook step 1
Immediate response (0-24 h)
- Upgrade TeamCity Server to 2023.05.4 or later immediately. JetBrains additionally ships a Security Patch Plugin for older branches that cannot be upgraded quickly — download from the official JetBrains advisory and install via the admin console.
- Until patched, remove the TeamCity web UI (default 8111/tcp, or 443/tcp on a fronting reverse proxy) from the internet; restrict access to a CI developer VLAN or VPN with an IP allowlist.
- Run compromise triage: inspect
<TeamCity Data Directory>/system/pluginDataand<TeamCity Home>/webapps/ROOT/plugins/for unknown JAR/ZIP plugins, review the admin user list for newly created accounts, and audit activity logs for suspicious calls against/app/rest/users. - Treat every secret stored in TeamCity as compromised and rotate it: SSH keys, service account tokens, Docker registry credentials, signing keys, cloud deployment credentials, connected-VCS tokens (GitHub/GitLab/Bitbucket PATs).
- Isolate build agents and check for persistent payloads; if in doubt, reprovision agents from clean images rather than cleaning them in place — artifacts they produced are supply-chain-tainted.
- Open an incident ticket with explicit supply-chain scope: flag every build artifact produced since at least September 2023 as potentially tampered and verify signatures/hashes against trusted references.
Runbook step 2
Mitigation layers
- Network segmentation: place TeamCity Server in a dedicated management VLAN, allow inbound only from the CI developer subnet and build agents, and terminate any direct internet exposure at the WAF/reverse proxy.
- WAF rule: block requests to
/app/rest/users/id:1/tokens/RPC2and more generally POSTs to/app/rest/users/*/tokens/*unless they carry a valid authenticated admin session cookie — this is the path abused by the public PoC to mint an admin token. - IAM hardening: run the TeamCity service account with minimal host privileges (no local admin, no domain admin, no production access) under a dedicated low-privilege user.
- Egress filtering: restrict outbound traffic from the TeamCity server to an allowlist (internal artifact store, VCS, package registries); drop arbitrary outbound 443/tcp to unknown hosts and typical reverse-shell ports.
- Secrets management: migrate TeamCity "password" parameters into an external vault (HashiCorp Vault, Azure Key Vault) with short-lived credentials, so a future server compromise yields less leverage.
- Backup integrity: snapshot TeamCity configuration and project definitions before patching, so a confirmed compromise has a defined pre-breach baseline for forensics and rollback.
Runbook step 3
Detection rules
- Web access logs (reverse proxy or TeamCity
logs/catalina.out): POST requests to/app/rest/users/id:1/tokens/*returning HTTP 200 without a preceding authenticated session — strongest single indicator of the auth bypass. KQL shape:WebLogs | where UriPath matches regex @"/app/rest/users/id:\d+/tokens/" and HttpMethod == "POST". - Short-interval creation of admin accounts or access tokens: parse TeamCity audit log (
logs/teamcity-activities.log) forUSER_CREATE,USER_ROLE_ADDwith roleSYSTEM_ADMIN, andTOKEN_CREATEoutside approved change windows. - Sysmon EID 1 on the TeamCity host: parent
java.exe/java(TeamCity JVM) spawningcmd.exe,powershell.exe,/bin/sh,bash,curl,wget,nc— the JVM should not spawn shell children. - File-system monitoring (auditd
-w <TeamCity>/webapps/ROOT/plugins -p wa, or Sysmon EID 11): new JAR/ZIP files landing in plugin directories without a matching change ticket. - Network telemetry (Zeek/Suricata): outbound connections from the TeamCity host to IPs outside the allowlist, especially on 443/tcp, 4444/tcp, 8080/tcp, or DNS lookups against dynamic DNS providers. Sigma shape:
category: proxywithsrc_ip: <teamcity>anddst_ip not in allowlist.
- Web access logs (reverse proxy or TeamCity
Detection rules
No NEOSEC detection rule is available for this vulnerability yet.
Classification under NIS2 and CRA
Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.
NIS2
NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.
Read in glossary- Actively exploited: treat the vulnerability as a priority in vulnerability handling under Art. 21(2)(e) NIS2. If it is exploited in your environment, check the reporting obligation under Art. 23 (early warning within 24 hours).
CRA
The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.
Read in glossary- Since 11.09.2026, manufacturers of affected products with digital elements must report actively exploited vulnerabilities under Art. 14 CRA, with an early warning within 24 hours via ENISA's single reporting platform.
ISO/IEC 27001
ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.
Read in glossary- Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.
Description
In JetBrains TeamCity before 2023.05.4 authentication bypass leading to RCE on TeamCity Server was possible
Source: CSA/SingCERT, pwn.watch, NVD (NIST), cvelistv5, CISA KEV Catalog, CVE.org (MITRE)
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
| Affected versions | Fixed in | ||
|---|---|---|---|
| JetBrains | TeamCity |
|
|
| jetbrains | teamcity |
|
|
Vendors and products
Weakness classes (CWE)
CWE-288Authentication Bypass Using an Alternate Path or Channel
Base
The product requires authentication, but the product has an alternate path or channel that does not require authentication.
Entry at MITRE CWE-288
Public exploit references
Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.
| CISA KEV Catalog | CISA Known Exploited Vulnerability (opens in a new tab)cisa.gov | actively exploited | |
| CSA/SingCERT | Active Exploitation of Critical Vulnerability in JetBrains TeamCity On-Premises (opens in a new tab)CSA/SingCERT | actively exploited | |
| Packet Storm | JetBrains TeamCity Unauthenticated Remote Code Execution (opens in a new tab)packetstormsecurity.com | PoC (publicly reported)reported, not verified | — |
| PoC-in-GitHub (nomi-sec) | CVE-2023-42793-TeamCity-Unauthenticated-RCE (opens in a new tab)github.com | PoC (publicly reported)reported, not verified |
References & sources
- jetbrains.comprivacy-security/issues-fixedVendor advisory
- blog.jetbrains.comteamcity/2023/09/cve-2023-42793-vulnerability-post-mortemVendor advisory
- packetstormsecurity.comfiles/174860/JetBrains-TeamCity-Unauthenticated-Remote-Code-Exe…Exploit, Third-party advisory, Vulnerability database
- attackerkb.comtopics/1XEEEkGHzt/cve-2023-42793Third-party advisory
- securityweek.comrecently-patched-teamcity-vulnerability-exploited-to-hack-serve…Press coverage
- rapid7.comblog/post/2023/09/25/etr-cve-2023-42793-critical-authentication…Broken link, Third-party advisory
- sonarsource.comblog/teamcity-vulnerabilityExploit, Third-party advisory
- cisa.govknown-exploited-vulnerabilities-catalog?field_cve=CVE-2023-42793government-resource, US government resource
- pwn.watchpwn.watch: TeamCity On-Premises auth bypass to RCE, exploited by North Korea and Russia (CVE-2023-42793)pwn-watch
- blog.jetbrains.comCritical Security Issue Affecting TeamCity On-Premises – Update to 2023.05.4 Nowpwn-watch
- microsoft.comMultiple North Korean threat actors exploiting the TeamCity CVE-2023-42793 vulnerabilitypwn-watch
- cisa.govRussian Foreign Intelligence Service (SVR) Exploiting JetBrains TeamCity CVE Globally (AA23-347A)pwn-watch
- NVD (NIST)NVD: CVE-2023-42793pwn-watch
- cisa.govCISA Known Exploited Vulnerabilities Catalogpwn-watch
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<a href="https://intel.neosec.eu/en/cve/CVE-2023-42793"><img src="https://intel.neosec.eu/badge/cve/CVE-2023-42793.svg?lang=en" alt="CVE-2023-42793 – NEOSEC Intel" height="20"></a>