VMware VNC Dynamic Resolution Request Code Execution Vulnerability
The VNC server in VMware products does not validate the rectangle count in a custom dynamic-resolution message, so a crafted packet stream can make the server treat heap metadata as rectangle data and corrupt the heap. An attacker able to open a VNC session could corrupt the heap, which the report says could lead to code execution.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the remote management functionality of VMware . A specially crafted set of VNC packets can cause a heap overflow resulting in heap corruption.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server trusts the client-supplied rectangle count and processes more rectangles than the received data contains, without validating the count or the coordinates before byte-swapping and using them.
Impact
Heap corruption that could lead to code execution; the report notes the bug requires a successful VNC authentication first, though VMware does not require credentials by default.
What the attacker needed
Network access to the VNC service; VNC authentication if enabled (off by default)
The fix
The rectangle count and coordinates should be validated against the data actually received before any processing; the text does not say a fix was released.
How it was found
- Open a VNC session to the VMware VNC server.
- Send a VMWDynResolution message whose rectangle count is larger than the rectangle data supplied.
- The server reads heap memory beyond the received data as further rectangles and corrupts heap metadata.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
VNC is a way to view and control another computer's screen remotely. VMware added its own extra messages to VNC, and one of them lets the client say how many screen rectangles it is sending. The server trusts that number without checking it, so it reads past the data it actually received and damages its own memory bookkeeping, which can crash it or let an attacker run code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.