CVE-2022-43071
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Nov 15, 2022
CISA due date
—
Cloudanix analysis
A specially made PDF file can crash the program used to read PDFs, stopping people from opening documents until the software is fixed or replaced.
- 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
Stack-based buffer overflow in Catalog::readPageLabelTree2 allows an attacker-supplied PDF page label tree to overwrite the stack and crash the process.
Why it matters to the business
Users cannot open or view affected PDF documents without the application terminating, interrupting document workflows and review processes.
How an attack unfolds
An attacker crafts a PDF containing an oversized or malformed page label tree, then delivers the file to a victim who opens it with the vulnerable XPDF binary; the overflow occurs during parsing and immediately terminates the viewer.
How to fix it
Upgrade to the latest XPDF release that resolves the stack overflow in page label tree parsing; if an update is unavailable, switch to an alternative PDF viewer until a fix is released.
How to confirm the fix worked
Confirm the installed XPDF binary version is newer than 4.04 and test that the previously crashing crafted PDF no longer terminates the process.
Typical attack path
- Create malicious PDF with oversized page label tree
- Deliver file via email, web download, or shared storage
- Victim opens the file with vulnerable XPDF binary
- readPageLabelTree2 processes the tree and overflows the stack
- Process crashes, producing denial of service
How to detect it
Monitor process crash logs and application fault reports for XPDF terminations that occur immediately after a PDF is opened; correlate with recent receipt of PDF files from untrusted sources.
What your security team should do
- Block or sandbox untrusted PDFs until XPDF is updated
- Replace XPDF with a maintained viewer that has received security patches
- Add PDF file type to application allow-list only after verifying the fix
The record
A stack overflow in the Catalog::readPageLabelTree2(Object*) function of XPDF v4.04 allows attackers to cause a Denial of Service (DoS) via a crafted PDF file.
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-43295 XPDF v4.04 was discovered to contain a stack overflow via the function FileStream::copy()… Also affects xpdf