WPS Office HtmTableAlt use-after-free vulnerability
A use-after-free vulnerability in WPS Spreadsheets (ET) version 11.2.0.10351 can be triggered by a specially crafted XLS file containing HTML/XML tags. An attacker could exploit this to achieve remote code execution by providing a malformed file to the victim.
Originally disclosed on Cisco Talos
An exploitable use-after-free vulnerability exists in WPS Spreadsheets ( ET ) as part of WPS Office, version 11.2.0.10351. A specially-crafted XLS file can cause a use-after-free condition, resulting in remote code execution.
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 HTML parser in WPS Spreadsheets frees an object (a table) but later calls a virtual function on it, leading to execution of attacker-controlled data.
Impact
An attacker could achieve remote code execution by exploiting this use-after-free, potentially taking full control of the affected system.
What the attacker needed
Victim opens a malicious XLS file; WPS Office 11.2.0.10351
The fix
The vendor patched the vulnerability.
How it was found
- Open the malformed XLS file in WPS Spreadsheets (ET.exe).
- The HTML parser processes the file and triggers a use-after-free.
- The freed object's virtual function pointer is overwritten, redirecting execution to non-executable memory.
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.
A use-after-free happens when a program frees memory but then keeps using it, like deleting a file but still trying to open it. Here, a malicious spreadsheet file tricks the program into using freed memory, which can let an attacker run their own code on the victim's computer.
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.