CVE-2024-37079
An integer underflow in VMware vCenter Server's DCERPC response header size calculation allows a remote, unauthenticated attacker to trigger a heap buffer overflow by sending a crafted DCERPC packet, potentially leading to arbitrary code execution.
Published on zerodayinitiative.com
An integer underflow vulnerability has been reported for VMware vCenter Server. The vulnerability is due to a lack of validation of the calculated response header size used in subtraction.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Impact
A remote, unauthenticated attacker could exploit this to cause a heap buffer overflow, potentially leading to arbitrary code execution in the context of the vulnerable service.
What the attacker needed
Network access to ports 2012, 2014, or 2020; no authentication required
The fix
The vulnerability was patched by the vendor in June; applying the vendor-supplied patch is recommended.
How it was found
- Send a DCERPC Bind or Alter Context request with a non-zero auth_len and exactly 169 presentation context elements.
- Include a valid authentication trailer, such as SPNEGO SRP, to pass verification checks.
- The server processes the request, calculates header_size as 4092, then adds 8 for the trailer, resulting in 4100.
- An unsigned subtraction of 4100 from 4096 underflows to 0xfffffffc, which is used as the available space for the auth_value.
- The server copies a large authentication token (e.g., SPNEGO SRP public value) into the response buffer, causing a heap overflow.
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 write-up has not been written yet. The Original tab links to the source.
This is a memory corruption bug in VMware vCenter Server, a tool for managing virtual machines. An attacker can send a specially crafted network message that causes the server to miscalculate how much space it has for a response, leading to a buffer overflow. This could let the attacker run their own code on the server.
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.