CVE-2024-4976
NoneCVSS
—
EPSS
0.2%
Published
May 15, 2024
CISA due date
—
Cloudanix analysis
A problem in a PDF viewing program can make it stop working when someone opens a specially crafted document on their computer.
- 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
Missing object type validation in AcroForm field handling allows an out-of-bounds array write in memory during PDF parsing.
Why it matters to the business
Opening a crafted PDF document locally can crash the PDF viewer, interrupting document review workflows and requiring restarts or alternative tools.
How an attack unfolds
An attacker creates a malformed PDF containing an AcroForm field reference with an unexpected object type. When the victim opens the file with Xpdf on their local system, the missing type check triggers the out-of-bounds write, leading to a crash.
How to fix it
Upgrade Xpdf to the latest version that resolves the missing type check. Until a fix is available, avoid opening untrusted PDF files with affected versions and consider alternative PDF readers with stricter parsing.
How to confirm the fix worked
Confirm the installed Xpdf version exceeds 4.05 and test that sample PDFs containing invalid AcroForm references no longer cause crashes.
Typical attack path
- Craft malicious PDF with invalid AcroForm object reference
- Deliver the PDF to the target via email, download, or removable media
- Victim opens the PDF using Xpdf 4.05 or earlier
- Parser encounters malformed field reference and performs out-of-bounds write
- Application crashes, causing denial of service
How to detect it
Monitor application crash logs and system event logs for unexpected terminations of the Xpdf process when PDF files are accessed; correlate with file access timestamps of recently received documents.
What your security team should do
- Prioritize patching Xpdf installations as soon as an update is released
- Configure systems to open PDFs with alternative hardened viewers by default
- Educate users on risks of opening PDFs from untrusted sources
The record
Out-of-bounds array write in Xpdf 4.05 and earlier, due to missing object type check in AcroForm field reference.
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-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
- CVE-2024-3248 In Xpdf 4.05 (and earlier), a PDF object loop in the attachments leads to infinite… Also affects ipe