Foxit · Foxit Phantompdf · CVE-2021-27270
**Name of the Vulnerable Software and Affected Versions**
Foxit PhantomPDF version 10.1.0.37527
**Description**
This issue allows remote attackers to execute arbitrary code on affected installations. User interaction is required, where the target must visit a malicious page or open a malicious file. The flaw exists within the parsing of JPEG2000 images due to the lack of proper validation of user-supplied data, resulting in a read past the end of an allocated structure. An attacker can leverage this to execute code in the context of the current process.
**Recommendations**
For Foxit PhantomPDF version 10.1.0.37527, consider disabling the parsing of JPEG2000 images until a patch is available to prevent exploitation. Restrict access to malicious pages or files to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this vulnerability.