CVE-2022-38928
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Sep 21, 2022
CISA due date
—
Cloudanix analysis
A bug in a common PDF viewer can let someone take over your computer if you open a specially made document file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Null pointer dereference in FoFiType1C.cc:2393 during parsing of Type1C font data in a PDF document, resulting in memory corruption that can be leveraged for arbitrary code execution.
Why it matters to the business
Attackers can fully compromise systems used to view PDF files with the affected software, leading to data theft, ransomware deployment, or persistent access; the absence of listed fixed versions increases exposure for organizations relying on this viewer.
How an attack unfolds
An attacker crafts a PDF containing malformed Type1C font data that triggers the null dereference when opened locally in the vulnerable viewer; with an exploit already public, the flaw can be used to execute arbitrary code under the privileges of the user who opens the document.
How to fix it
Replace the affected XPDF installation with a version that resolves the null dereference; if no patched release is available, migrate to an alternative PDF viewer and restrict use of the vulnerable binary until a fix is confirmed.
How to confirm the fix worked
Confirm the installed XPDF binary version is newer than 4.04 and test opening of known trigger PDFs in a controlled environment; monitor vendor release notes for explicit mention of the FoFiType1C.cc fix.
Typical attack path
- Attacker creates a malicious PDF embedding specially malformed Type1C font structures.
- Victim receives the PDF via email, download, or shared storage.
- Victim opens the file using the vulnerable XPDF viewer on a local system.
- The parser reaches the defective code path and dereferences a null pointer.
- Memory corruption is exploited to achieve code execution or system control.
How to detect it
Review file-access and process-creation logs for XPDF executions immediately preceding crashes or unexpected child processes; look for PDF files that cause segmentation faults or abnormal memory behavior when parsed.
What your security team should do
- Immediately inventory all systems running XPDF 4.04 or earlier and block execution where possible.
- Replace the viewer with a maintained alternative and update organizational policy to prohibit use of unpatched PDF tools.
- Hunt for any historical PDF files that match the malformed Type1C pattern using available forensic tools.
The record
XPDF 4.04 is vulnerable to Null Pointer Dereference in FoFiType1C.cc:2393.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Mageia:9 | xpdf | 0 | 4.05-1.mga9 |
| Ubuntu:16.04:LTS | ipe | 0 | No fix |
| Ubuntu:18.04:LTS | ipe | 0 | No fix |
| Ubuntu:20.04:LTS | ipe | 0 | No fix |
| Ubuntu:22.04:LTS | ipe | 0 | No fix |
| Ubuntu:24.04:LTS | ipe | 0 | No fix |
| Ubuntu:24.10 | ipe | 0 | No fix |
| Ubuntu:25.04 | ipe | 0 | No fix |
| Ubuntu:25.10 | ipe | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ipe | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ipe | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | ipe | 0 | No fix |
Related vulnerabilities
- CVE-2023-3436 Xpdf 4.04 will deadlock on a PDF object stream whose "Length" field is itself in another… Also affects xpdf
- CVE-2023-3044 An excessively large PDF page size (found in fuzz testing, unlikely in normal PDF files)… Also affects xpdf
- CVE-2023-2664 In Xpdf 4.04 (and earlier), a PDF object loop in the embedded file tree leads to infinite… Also affects xpdf
- CVE-2023-2663 In Xpdf 4.04 (and earlier), a PDF object loop in the page label tree leads to infinite… Also affects xpdf
- CVE-2023-2662 In Xpdf 4.04 (and earlier), a bad color space object in the input PDF file can cause a… Also affects xpdf
- CVE-2022-45587 Stack overflow vulnerability in function gmalloc in goo/gmem.cc in xpdf 4.04, allows… Also affects xpdf
- CVE-2022-45586 Stack overflow vulnerability in function Dict::find in xpdf/Dict.cc in xpdf 4.04, allows… Also affects xpdf
- CVE-2022-43071 A stack overflow in the Catalog::readPageLabelTree2(Object*) function of XPDF v4.04… Also affects xpdf