CVE-2024-7867
NoneCVSS
—
EPSS
0.2%
Published
Aug 15, 2024
CISA due date
—
Cloudanix analysis
Certain PDF files with unusual numbers inside them can make the program crash instead of displaying the document.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Denial Of Service
- Component
- Application
- Class
- Other
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow when parsing very large page box coordinates triggers a divide-by-zero, resulting in a crash of the PDF processing application.
Why it matters to the business
Processing of crafted PDF files can cause the application to crash, interrupting document handling or automated workflows that rely on the library.
How an attack unfolds
An attacker creates a PDF containing extremely large coordinate values inside page boxes. When the vulnerable code parses these values an integer overflow occurs, followed by division by zero that terminates the process.
How to fix it
Upgrade Xpdf to a version newer than 4.05. For the listed AlmaLinux packages apply the provided fixed versions: sqlite 3.34.1-6.el9_1, sqlite-devel 3.34.1-6.el9_1, sqlite-libs 3.34.1-6.el9_1.
How to confirm the fix worked
Confirm the installed Xpdf or sqlite package versions match or exceed the fixed releases and test with known-large-coordinate PDFs to verify absence of crash.
Typical attack path
- Generate a malicious PDF embedding oversized page-box coordinates
- Deliver the file to a target system via email, download, or file share
- Victim or automated process opens or renders the PDF using the affected library
- Integer overflow and divide-by-zero crash the application
How to detect it
Review application crash logs and PDF processing error entries for sudden terminations when handling PDF files; no specific post-exploitation artifacts are known.
What your security team should do
- Prioritize patching systems that process untrusted PDFs
- Apply the exact fixed package versions supplied for AlmaLinux 9
- Monitor EPSS and KEV updates given the 787 days since publication
The record
In Xpdf 4.05 (and earlier), very large coordinates in a page box can cause an integer overflow and divide-by-zero.
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-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
- CVE-2024-3248 In Xpdf 4.05 (and earlier), a PDF object loop in the attachments leads to infinite… Also affects ipe