GeoVision GV-VMS V20 GV-Cloud memory corruption vulnerability
The GV-Cloud RelayProxy service in GV-VMS V20 trusts a size field in network messages and copies the payload into a fixed-size stack buffer without checking bounds. An attacker who can impersonate the relay server (via man-in-the-middle or DNS tampering) can send an oversized message to cause a stack buffer overflow, leading to denial of service and potentially remote code execution.
Originally disclosed on Cisco Talos
A memory corruption vulnerability exists in the GV-Cloud functionality of GV-VMS V20 (version(s): 20.0.2). A specially crafted network request can lead to a denial of service.
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
The message size field is used without validating that it fits within the destination stack buffer.
Impact
The overflow can cause a denial of service (crash) and, if the stack cookie is leaked or memory layout is favourable, could lead to remote code execution.
What the attacker needed
Ability to impersonate relay server; man-in-the-middle or DNS tampering
How it was found
- The attacker positions themselves to impersonate the legitimate relay server, either by man-in-the-middle or by tampering with DNS resolution.
- The GV-VMS RelayProxy service connects to the attacker-controlled server and performs the handshake.
- The attacker sends a message with a size field larger than the 4072-byte receive buffer.
- The service reads the oversized payload into the stack buffer, causing a stack 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 report has not been written yet. The Original tab links to the source.
The software reads a message from the network and uses a number inside it to decide how much data to copy into a fixed-size memory area on the stack. Because it does not check that the number is small enough, a malicious server can send too much data and overwrite nearby memory, crashing the program or possibly letting an attacker run their own 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.