# CVE-2021-34971: Foxit PDF Reader JPG2000 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability

- Severity: High 7.8 (CVSS:3.0, scored by zdi) `CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 24% of CVEs (2026-11-30)
- Published: 2024-05-07T22:54:43.902Z
- Modified: 2026-06-17T03:56:54.463Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: zdi

## Description

Foxit PDF Reader JPG2000 File Parsing Heap-based Buffer Overflow Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of Foxit PDF Reader. 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 parsing of PDF files. The issue results from the lack of proper validation of the length of user-supplied data prior to copying it to a heap-based buffer. An attacker can leverage this vulnerability to execute code in the context of the current process. Was ZDI-CAN-14812.

(As written by CVE List.)

## Affected

- Foxit PDF Reader: 11.0.1.49938
- foxit pdf_editor: up to 11.0.1.4938; up to 11.0.0.49983; up to 10.1.5.37672; 11.0.0.49893; 11.0.1.49938
- foxit pdf_reader: up to 11.0.1.49983; up to 11.0.1.49938
- foxit phantompdf: up to 10.1.5.37672

## References

- <https://www.zerodayinitiative.com/advisories/ZDI-21-1202/> (third-party-advisory)
- <https://www.foxit.com/support/security-bulletins.html> (vendor-advisory)

## Sources

- CVE List: [CVE-2021-34971](https://www.cve.org/CVERecord?id=CVE-2021-34971), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-34971](https://nvd.nist.gov/vuln/detail/CVE-2021-34971), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-34971 · Whole record: https://cve.day/CVE-2021-34971.json · Rebuilt by cve.day 2026-11-25T22:58:08.734Z
