CVE-2024-4568
Low · 2.9CVSS
2.9
EPSS
0.2%
Published
May 6, 2024
CISA due date
—
Cloudanix analysis
A specially made document can make the PDF viewer crash, interrupting anyone who needs to read or process PDFs until the program is restarted or updated.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Denial Of Service
- Component
- Application
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A crafted PDF with circular object references in its resources section triggers unbounded recursion during resource parsing, exhausting the call stack and terminating the process.
Why it matters to the business
Document viewers and any downstream workflows that rely on Xpdf become unavailable when a malicious file is processed, forcing manual intervention or fallback tools until the application is restarted.
How an attack unfolds
An attacker creates a minimal PDF containing a self-referential resource dictionary, then causes the victim to open the file with a vulnerable Xpdf binary; the parser enters infinite recursion on resource resolution and the process terminates.
How to fix it
Upgrade to the first Xpdf release after 4.05 that resolves resource-loop handling; if no newer package is yet available, replace Xpdf with an alternative PDF viewer until an update is released.
How to confirm the fix worked
Confirm the installed Xpdf version is newer than 4.05, then attempt to open a test PDF containing a resource object cycle and verify the application remains stable.
Typical attack path
- Generate a PDF containing a resource object loop
- Deliver the file via email, download link, or shared storage
- Victim opens the file using Xpdf or an application embedding it
- Parser recurses until stack exhaustion occurs
- Xpdf process terminates with a segmentation fault or similar crash
How to detect it
Review system and application logs for abrupt Xpdf terminations immediately after PDF file access; correlate crash dumps or segfault entries with recent file-open events involving untrusted PDFs.
What your security team should do
- Inventory all systems using Xpdf and prioritize upgrade to the latest available version
- Temporarily disable or replace Xpdf in automated PDF-processing pipelines until patched
- Add Xpdf crash signatures to endpoint monitoring for rapid detection of attempted exploitation
The record
In Xpdf 4.05 (and earlier), a PDF object loop in the PDF resources 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-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-3247 In Xpdf 4.05 (and earlier), a PDF object loop in an object stream leads to infinite… 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