CVE-2024-7868
NoneCVSS
—
EPSS
0.4%
Published
Aug 15, 2024
CISA due date
—
Cloudanix analysis
A flaw in PDF viewing software can make it crash when opening certain files, but the issue is difficult to exploit and has not been seen used in attacks.
- 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
Invalid DCT header information in a JPEG stream within a PDF causes an uninitialized variable in the decoder, resulting in a segmentation fault on an invalid memory read.
Why it matters to the business
Applications handling PDFs may crash when opening crafted files, interrupting document workflows with minimal operational disruption given the local attack requirements and absence of known exploitation.
How an attack unfolds
An attacker creates a PDF containing a JPEG stream with malformed DCT headers. When processed by a vulnerable decoder the uninitialized variable leads to a read from an invalid address and a crash.
How to fix it
Upgrade affected packages to the fixed versions libksba 1.5.1-6.el9_1 (and libksba-devel 1.5.1-6.el9_1) on AlmaLinux 9; apply equivalent updates for any Xpdf installations beyond version 4.05.
How to confirm the fix worked
Re-test with the published proof-of-concept PDF after patching to confirm absence of the segmentation fault; verify package versions match the listed fixed releases.
Typical attack path
- Craft a PDF containing a JPEG stream with invalid DCT header data
- Deliver the file to a target system
- Induce the victim to open the PDF in an affected viewer or library
- Trigger the decoder path that reads the uninitialized variable, causing a segfault
How to detect it
Inspect system and application logs for segmentation faults or crashes occurring during PDF or JPEG stream processing; correlate with file open events involving untrusted documents.
What your security team should do
- Apply the specified package updates on all AlmaLinux 9 systems
- Prioritize patching in environments that routinely process untrusted PDFs
- Review logging for unexpected crashes during PDF handling as a temporary detection measure
The record
In Xpdf 4.05 (and earlier), invalid header info in a DCT (JPEG) stream can lead to an uninitialized variable in the DCT decoder. The proof-of-concept PDF file causes a segfault attempting to read from an invalid address.
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-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
- CVE-2024-3248 In Xpdf 4.05 (and earlier), a PDF object loop in the attachments leads to infinite… Also affects ipe