CVE-2022-33108
High · 7.8CVSS
7.8
EPSS
1.1%
Published
Jun 28, 2022
CISA due date
—
Cloudanix analysis
A flaw in an older PDF viewer can let attackers take over a computer when someone opens a specially made document file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in Object::Copy within object.cc allows memory corruption when processing specially crafted PDF content.
Why it matters to the business
Attackers can execute arbitrary code on systems that open malicious PDFs with the affected viewer, leading to potential malware deployment, data theft, or system compromise; the vulnerability remains unpatched in listed versions with public exploit code available for over four years.
How an attack unfolds
An attacker creates a malicious PDF that triggers the Object::Copy copy routine during parsing; the victim opens the file locally with the vulnerable XPDF binary, causing the overflow to corrupt the stack and allow code execution without authentication.
How to fix it
Upgrade xpdfreader xpdf to the latest available release that resolves the stack overflow; if no fixed version exists for the deployed branch, replace the viewer with an alternative PDF reader that is actively maintained.
How to confirm the fix worked
Confirm the installed xpdf version is newer than 4.04 and test parsing of known trigger PDFs in a sandbox to verify absence of crashes or unexpected behavior.
Typical attack path
- Craft a PDF file containing oversized or malformed object structures that exercise Object::Copy
- Deliver the PDF via email, download link, or shared storage
- Victim opens the file using the vulnerable xpdf binary
- Overflow occurs during object processing, hijacking control flow for code execution
How to detect it
Review system logs and process crash dumps for xpdf segmentation faults or stack overflow signals when handling PDF files; correlate file open events with subsequent suspicious process creation or network activity.
What your security team should do
- Immediately replace or upgrade all instances of xpdfreader xpdf to a supported version
- Block or sandbox execution of xpdf on endpoints where possible
- Hunt for historical PDF files that match known malicious patterns associated with this exploit
- Add xpdf to the list of disallowed or monitored applications in endpoint policy
The record
XPDF v4.04 was discovered to contain a stack overflow vulnerability via the Object::Copy class of object.cc files.
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