CVE-2021-31438 Memory corruption in Studio Photo

High 7.8 Published Updated

Remote attackers can execute arbitrary code via a malicious PSP file due to a stack-based buffer overflow in Foxit Studio Photo.

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-31438?

CVE-2021-31438 is a high-severity memory corruption vulnerability in Foxitsoftware Foxit Studio Photo, published on 29 Apr 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 Studio Photo 3.6.6.931. 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 PSP files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a fixed-length stack-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-12443.

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2021-31438?

It affects 1 product.

Products include Foxitsoftware Foxit Studio Photo.

How do I fix CVE-2021-31438?

No fix has been published for CVE-2021-31438 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-31438 being exploited?

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

All Foxitsoftware Foxit Studio Photo vulnerabilities

Sources

Also known as GHSA-gf3v-4j4p-8h22.

Is CVE-2021-31438 in your software?

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

Check your SBOMs for free