CVE-2021-31454 Memory corruption in Reader

High 7.8 Published Updated

Remote attackers can execute arbitrary code by tricking users into opening a malicious PDF file containing a crafted Decimal element.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-31454?

CVE-2021-31454 is a high-severity memory corruption vulnerability in Foxitsoftware Foxit Reader, published on 7 May 2021. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Foxit Reader 10.1.1.37576. 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 handling of the Decimal element. A crafted leadDigits value in a Decimal element can trigger an overflow of a fixed-length heap-based buffer. An attacker can leverage this vulnerability to execute arbitrary code in the context of the current process. Was ZDI-CAN-13095.

Weakness: CWE-122

Which versions are affected by CVE-2021-31454?

It affects 2 products.

Products include Foxitsoftware Foxit Reader, Foxitsoftware Phantompdf.

How do I fix CVE-2021-31454?

No fix has been published for CVE-2021-31454 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-31454 being exploited?

There is no known exploitation of CVE-2021-31454 in the wild and no public exploit code.

All Foxitsoftware Foxit Reader vulnerabilities

Sources

Also known as GHSA-rjm8-2c58-4cf4.

Is CVE-2021-31454 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free