CVE-2024-3248
Low · 2.9CVSS
2.9
EPSS
0.3%
Published
Apr 2, 2024
CISA due date
—
Cloudanix analysis
A specially made PDF file can crash programs that open it, briefly stopping whatever service relies on those programs.
- Exploitation
- Requires User Interaction
- 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
Malformed PDF containing circular references in attachment objects triggers unbounded recursion during parsing, exhausting the call stack and terminating the process.
Why it matters to the business
Applications or services that process untrusted PDFs can be forced offline by a single file, causing service disruption and potential loss of availability for dependent workloads.
How an attack unfolds
An attacker supplies a specially crafted PDF that embeds attachment objects forming a loop; when the parser follows these references it recurses until the stack overflows, crashing the process.
How to fix it
Upgrade to a fixed version: qemu on Debian 11/12/13 to 1:5.2+dfsg-3 or later; qemu GIT to commit 553032db17440f8de011390e5a1cfddd13751b0b or later. Apply vendor updates promptly.
How to confirm the fix worked
Confirm the installed package version matches or exceeds the listed fixed releases; re-test with known trigger PDFs to verify the recursion limit or crash no longer occurs.
Typical attack path
- Identify a target application or service that parses PDF files using the vulnerable code
- Generate or obtain a PDF containing circular attachment object references
- Deliver the PDF to the target via any accepted input channel
- Trigger parsing of the attachment structures to induce the stack overflow crash
How to detect it
Review application or system logs for unexpected crashes or stack overflow errors during PDF processing; correlate with file ingestion timestamps to identify suspicious PDFs.
What your security team should do
- Prioritize patching all listed qemu packages to the stated fixed versions
- Restrict PDF processing to trusted sources until patches are deployed
- Monitor for availability alerts on services that handle PDFs
The record
In Xpdf 4.05 (and earlier), a PDF object loop in the attachments 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-3247 In Xpdf 4.05 (and earlier), a PDF object loop in an object stream leads to infinite… Also affects ipe