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)
Exploitation signals
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
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-3992
- https://github.com/ceciliaaii/CVE_2020_3992
- https://www.vmware.com/security/advisories/VMSA-2020-0023.html
- https://www.zerodayinitiative.com/advisories/ZDI-20-1377/
- https://www.zerodayinitiative.com/advisories/ZDI-20-1385/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-3992
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2024-01-07 |
| Author / Researcher | ceciliaaii (PoC repository author); vulnerability reported to VMware through Trend Micro ZDI (ZDI-20-1377 / ZDI-20-1385) |
| CVE / Advisory | CVE-2020-3992 |
| Category | network |
| Severity | Critical |
| CVSS Score | 9.8 (CVSSv3.1, NVD and VMware VMSA-2020-0023); 10.0 (CVSSv2, NVD) |
| Status | PoC (heap-grooming trigger for the vulnerable TCP/427 message path; crash/DoS demonstrated, full RCE chain not included) |
| Tags | VMware ESXi, OpenSLP, SLP, use-after-free, port 427, heap grooming, unauthenticated, CWE-416, CISA KEV |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | VMware ESXi, OpenSLP service (slpd), and VMware Cloud Foundation |
| Versions Affected | 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) |
| Language / Platform | Python 3 socket script; target is the ESXi host on its management network, TCP port 427 |
| Authentication Required | No |
| Network Access Required | Yes, 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
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 reviewSetup 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.
| |
Keep the lab off any production network: an unpatched ESXi build is a critical, remotely exploitable hypervisor.
Proof of Concept
Step-by-Step Reproduction
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.
Start the script — Run it with Python 3 and enter the ESXi address when prompted (the prompt text is Chinese).
Shell script1python3 CVE_2020_3992.pySend the trigger — The script connects once and calls send four times with the same 73-byte SLPv2 DAAdvert, then closes the socket.
Python1 2 3 4 5 6 7tcpClientSocket = 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)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.pyin this folder.
| |
Expected 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
#SIEM / IDS Rule (example):
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
| Action | Detail |
|---|---|
| Patch | Upgrade 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. |
| Workaround | Restrict 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 Hardening | Remove 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.
| |