CVE-2023-3044
Low · 3.3CVSS
3.3
EPSS
0.3%
Published
Jun 2, 2023
CISA due date
—
Cloudanix analysis
A PDF viewer can unexpectedly stop working when it tries to read certain unusually large files, which may interrupt normal document access.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Divide-by-zero condition triggered in Xpdf text extraction when processing a PDF with an excessively large page size, leading to a crash.
Why it matters to the business
Users opening specially crafted PDF files may experience application crashes that interrupt document viewing workflows and require restarts or alternative tools.
How an attack unfolds
An attacker creates a PDF containing an abnormally large page size, then delivers the file through email, web download, or shared storage; when a victim opens the document in Xpdf the divide-by-zero occurs and the application terminates.
How to fix it
Upgrade Xpdf to the first release containing the correction for this divide-by-zero condition; if no patched version is available, replace Xpdf with an alternative PDF viewer that safely handles large page sizes.
How to confirm the fix worked
Test the application against the original fuzz-generated PDF that reproduces the divide-by-zero; confirm the process no longer crashes and review release notes for the fix.
Typical attack path
- Craft a PDF with an excessively large page size that triggers the divide-by-zero path
- Distribute the malicious PDF to the target via email, download link, or file share
- Victim opens the PDF using Xpdf for text extraction or rendering
- Application crashes due to unhandled divide-by-zero
How to detect it
Review system and application logs for Xpdf process crashes or segmentation faults that occur immediately after PDF file access; correlate with file creation or download events involving PDF documents.
What your security team should do
- Prioritize replacement of Xpdf with a maintained viewer that handles malformed input
- Block or sandbox PDF processing workflows that rely on Xpdf until a safe version is deployed
- Monitor vendor announcements for a corrected release and schedule immediate rollout
The record
An excessively large PDF page size (found in fuzz testing, unlikely in normal PDF files) can result in a divide-by-zero in Xpdf's text extraction code. This is related to CVE-2022-30524, but the problem here is caused by a very large page size, rather than by a very large character coordinate.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Mageia:9 | xpdf | 0 | 4.05-1.mga9 |
| Ubuntu:16.04:LTS | ipe | 0 | No fix |
| Ubuntu:16.04:LTS | xpdf | 0 | No fix |
| Ubuntu:18.04:LTS | ipe | 0 | No fix |
| Ubuntu:18.04:LTS | xpdf | 0 | No fix |
| Ubuntu:20.04:LTS | ipe | 0 | No fix |
| Ubuntu:22.04:LTS | ipe | 0 | No fix |
| Ubuntu:22.04:LTS | xpdf | 0 | No fix |
| Ubuntu:24.04:LTS | ipe | 0 | No fix |
| Ubuntu:24.04:LTS | xpdf | 0 | No fix |
| Ubuntu:24.10 | ipe | 0 | No fix |
| Ubuntu:24.10 | xpdf | 0 | No fix |
| Ubuntu:25.04 | ipe | 0 | No fix |
| Ubuntu:25.04 | xpdf | 0 | No fix |
| Ubuntu:25.10 | ipe | 0 | No fix |
| Ubuntu:25.10 | xpdf | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ipe | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | xpdf | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ipe | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | xpdf | 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-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
- CVE-2022-43295 XPDF v4.04 was discovered to contain a stack overflow via the function FileStream::copy()… Also affects xpdf