TeamViewer: remote code execution via buffer overflow

Remedio researcher Omri Dar demonstrated how a malicious host can attack a TeamViewer user's computer during a remote-control session. Exploitation requires only connecting the viewer to the attacker's host; once the session is established, no additional user interaction or password theft is required. The researchers achieved execution of a selected program on a vulnerable Windows client with built-in protections enabled.
When establishing a session, the host sends the viewer a DisplayParams message containing the screen's width, height, and color depth. These values are used to create a CBitmapBuffer—a buffer into which image updates are decoded. A malicious host can refuse to negotiate the AV1/H.264 video codecs, force the viewer to use bitmap decoding, and select the lossless tile codec.
The issue is caused by an integer overflow when calculating the buffer size. The product stride × (height + 0x10) is calculated using 32-bit arithmetic and only then widened to 64 bits when passed to operator new[]. For example, for a 32768 × 32768-pixel surface at 32 bpp, approximately 4 MB is allocated instead of the more than 4 GB required. Meanwhile, the other components continue using the surface's original dimensions.
The RLE decoder checks the rectangle coordinates against the declared width and height, but not against the amount of memory actually allocated. Therefore, the update (0, 0, 32768, 32768) passes validation and results in an out-of-bounds write.
According to the researchers, a configuration with Width = 0xFFFFFFF5, Height = 1, and BPP = 8 reduces the allocation to roughly 0x440 bytes, placing the buffer in a small heap size class next to objects the attacker can groom. Using the overflow, the researchers overwrote a pointer in a live object, bypassed Control Flow Guard and DEP, redirected execution to WinExec and executed the attacker's code.
In the RCE demonstration, the researchers used a host-side hook to supply the corrupting bytes in place of the network tile payload during the heap-grooming step. They separately confirmed that attacker-controlled screen parameters could be delivered through a normal TeamViewer session.
The vulnerability, assigned the identifier CVE-2026-111585, is exploitable in the default configuration and requires an established session with a malicious or compromised host. A fix was released on October 27, 2026, in version 15.83 as part of bulletin TV-2026-1011.
Vulnerabilities
Researchers
Vendors
Products