CVE-2024-3247
Low · 2.9CVSS
2.9
EPSS
0.3%
Published
Apr 2, 2024
CISA due date
—
Cloudanix analysis
A flaw in an older PDF viewer can make the program crash when it tries to read a specially made document, interrupting work until the program is restarted or updated.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A PDF containing a circular reference loop inside an object stream triggers unbounded recursion during parsing, exhausting the call stack and causing a crash.
Why it matters to the business
Processing a crafted PDF with Xpdf can crash the viewer or any application embedding it, interrupting document workflows and requiring restarts or manual intervention.
How an attack unfolds
An attacker creates a malicious PDF with self-referential objects inside an object stream; when the file is opened or parsed by Xpdf the infinite recursion occurs and the process terminates.
How to fix it
Upgrade Xpdf to a version that properly detects and terminates object loops during stream parsing; until then, avoid opening untrusted PDFs with the affected software.
How to confirm the fix worked
Confirm the installed Xpdf version is newer than 4.05 and test that a sample PDF with intentional object loops is rejected or handled without stack exhaustion.
Typical attack path
- Craft a PDF containing an object stream with circular references
- Deliver the file via email, web download, or shared storage
- Victim or automated process opens the PDF with Xpdf or an embedding application
- Parser enters infinite recursion and crashes the process
How to detect it
Review system and application logs for Xpdf segmentation faults or stack-overflow errors immediately after PDF file access; correlate with file-creation or download events involving PDFs.
What your security team should do
- Block or sandbox untrusted PDFs from reaching Xpdf installations until patched
- Monitor for Xpdf process crashes correlated with PDF file access
- Replace Xpdf with a maintained PDF library that includes loop detection if updates are unavailable
The record
In Xpdf 4.05 (and earlier), a PDF object loop in an object stream leads to infinite recursion and a stack overflow.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| 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-2024-7868 In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an… Also affects ipe
- CVE-2024-7867 In Xpdf 4.05 (and earlier), very large coordinates in a page box can cause an integer… Also affects ipe
- CVE-2024-7866 In Xpdf 4.05 (and earlier), a PDF object loop in a pattern resource leads to infinite… Also affects ipe
- CVE-2024-4976 Out-of-bounds array write in Xpdf 4.05 and earlier, due to missing object type check in… Also affects ipe
- CVE-2024-4568 In Xpdf 4.05 (and earlier), a PDF object loop in the PDF resources leads to infinite… Also affects ipe
- CVE-2024-4141 Out-of-bounds array write in Xpdf 4.05 and earlier, triggered by an invalid character… Also affects ipe
- CVE-2024-3900 Out-of-bounds array write in Xpdf 4.05 and earlier, triggered by long Unicode sequence in… Also affects ipe
- CVE-2024-3248 In Xpdf 4.05 (and earlier), a PDF object loop in the attachments leads to infinite… Also affects ipe