CVE-2022-41844
Medium · 5.5CVSS
5.5
EPSS
0.4%
Published
Sep 30, 2022
CISA due date
—
Cloudanix analysis
Opening certain PDF files in an older version of this document viewer can make the program stop working suddenly.
- 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
Memory corruption during PDF cross-reference table parsing causes an immediate process crash in XRef::fetch when a malformed PDF is opened locally.
Why it matters to the business
Users who open crafted PDF files with the affected reader experience an abrupt application crash, interrupting document workflows and potentially requiring restarts or alternative tools.
How an attack unfolds
An attacker prepares a specially malformed PDF that triggers the crash path in XRef::fetch. The victim opens the file locally with user interaction; the reader parses the cross-reference table, hits the corruption, and terminates without further code execution or data access.
How to fix it
Migrate to a maintained PDF reader or a newer version of Xpdf if one becomes available; disable or sandbox the affected reader in environments that must process untrusted PDFs.
How to confirm the fix worked
Attempt to open known-malformed test PDFs that previously triggered the crash and confirm the reader no longer terminates unexpectedly; monitor vendor announcements for any future patched releases.
Typical attack path
- Craft malicious PDF targeting XRef parsing logic
- Deliver file via email, download link, or shared storage
- Victim opens file in vulnerable Xpdf reader
- Parser encounters malformed cross-reference data
- Process crashes due to memory corruption
How to detect it
Review system or application logs for unexpected terminations of the xpdf process when handling PDF files; look for crash dumps or segmentation faults originating from xpdf/XRef.cc around the fetch function.
- xpdf process crash with signal 11 or segmentation fault
- xpdf/XRef.cc in stack trace of core dump
What your security team should do
- Replace Xpdf with a supported PDF viewer across the organization
- Block or sandbox execution of the xpdf binary for untrusted files
- Add the reader to application allow-lists only where strictly required
The record
An issue was discovered in Xpdf 4.04. There is a crash in XRef::fetch(int, int, Object*, int) in xpdf/XRef.cc, a different vulnerability than CVE-2018-16369 and CVE-2019-16088.
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