CVE-2021-40399 Use after free in WPS Office
A use-after-free vulnerability in WPS Spreadsheets allows remote code execution via a specially crafted XLS file.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2021-40399?
CVE-2021-40399 is a high-severity use after free vulnerability in WPS Office, published on 12 May 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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. An attacker needs to provide a malformed file to the victim to trigger the vulnerability.
Weakness: CWE-416
Which versions are affected by CVE-2021-40399?
It affects 1 product.
Products include Wps Wps Office.
How do I fix CVE-2021-40399?
No fix has been published for CVE-2021-40399 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2021-40399 being exploited?
There is no known exploitation of CVE-2021-40399 in the wild and no public exploit code.
Other vulnerabilities in WPS Office
Sources
Also known as GHSA-gggr-phrh-226m.