Tencent WeChat WXAM Decoder Heap-based Buffer Overflow Remote Code Execution Vulnerability

December 14th, 2021

Vulnerability Details

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Tencent WeChat. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

The specific flaw exists within the WXAM decoder. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process.

Additional Details

Fixed in version 8.0.14


Disclosure Timeline

  • 2021-05-12 - Vulnerability reported to vendor
  • 2021-12-14 - Coordinated public release of advisory

Credit

Lucas Leong (@_wmliang_) of Trend Micro Zero Day Initiative

Back to Advisories