CVE-2022-45586
Medium · 5.5CVSS
5.5
EPSS
0.3%
Published
Feb 15, 2023
CISA due date
—
Cloudanix analysis
A bug in the way certain PDF files are read can make the program crash when it tries to open a specially made document, stopping whatever task depends on that file.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer overflow in xpdf Dict::find allows an attacker-supplied PDF dictionary to overwrite the call stack, resulting in a crash and denial of service.
Why it matters to the business
Local users or automated processes that parse untrusted PDFs can trigger application or service crashes, causing operational disruption and potential loss of availability for PDF-dependent workflows; the affected Centreon codebase requires an update to the listed commit to eliminate the exposure.
How an attack unfolds
An attacker crafts a malicious PDF containing an oversized or malformed dictionary entry that triggers the vulnerable Dict::find code path; the file is then opened locally (via UI interaction or automated processing) causing the stack overflow and immediate crash with no further code execution or persistence.
How to fix it
Update the Centreon codebase to the commit 2dd129a167398b1c65a62f4e4e2ef7717bffe41b or later; rebuild and redeploy any affected packages; replace any bundled xpdf 4.04 binaries with patched versions.
How to confirm the fix worked
Confirm the presence of commit 2dd129a167398b1c65a62f4e4e2ef7717bffe41b in the source tree; recompile and test that the Dict::find function no longer exhibits stack overflow on crafted inputs; verify runtime behavior with known-bad PDF test cases.
Typical attack path
- Identify or obtain access to a system running the vulnerable xpdf-based PDF parser
- Prepare a specially crafted PDF that exercises the Dict::find stack overflow
- Cause the target application or service to open or process the PDF (local file open or automated ingestion)
- Trigger the overflow resulting in denial of service
How to detect it
Review application and system logs for unexpected crashes or segmentation faults occurring during PDF processing; correlate timestamps of crashes with file ingestion or user-initiated PDF opens; examine core dumps or stack traces referencing Dict::find or xpdf code.
What your security team should do
- Apply the listed commit immediately on all development, build, and production Centreon instances
- Inventory all systems that embed or call xpdf 4.04 and schedule upgrades
- Add PDF parsing to the list of components scanned by software composition analysis
- Monitor for new xpdf releases and re-evaluate EPSS and exploit availability
The record
Stack overflow vulnerability in function Dict::find in xpdf/Dict.cc in xpdf 4.04, allows local attackers to cause a denial of service.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Mageia:9 | xpdf | 0 | 4.05-1.mga9 |
| Ubuntu:16.04:LTS | ipe | 0 | No fix |
| Ubuntu:18.04:LTS | ipe | 0 | No fix |
| Ubuntu:20.04:LTS | ipe | 0 | No fix |
| Ubuntu:22.04:LTS | ipe | 0 | No fix |
| Ubuntu:24.04:LTS | ipe | 0 | No fix |
| Ubuntu:24.10 | ipe | 0 | No fix |
| Ubuntu:25.04 | ipe | 0 | No fix |
| Ubuntu:25.10 | ipe | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | ipe | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | ipe | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | ipe | 0 | No fix |
Related vulnerabilities
- CVE-2023-3436 Xpdf 4.04 will deadlock on a PDF object stream whose "Length" field is itself in another… Also affects xpdf
- CVE-2023-3044 An excessively large PDF page size (found in fuzz testing, unlikely in normal PDF files)… Also affects xpdf
- CVE-2023-2664 In Xpdf 4.04 (and earlier), a PDF object loop in the embedded file tree leads to infinite… Also affects xpdf
- CVE-2023-2663 In Xpdf 4.04 (and earlier), a PDF object loop in the page label tree leads to infinite… Also affects xpdf
- CVE-2023-2662 In Xpdf 4.04 (and earlier), a bad color space object in the input PDF file can cause a… Also affects xpdf
- CVE-2022-45587 Stack overflow vulnerability in function gmalloc in goo/gmem.cc in xpdf 4.04, allows… Also affects xpdf
- CVE-2022-43071 A stack overflow in the Catalog::readPageLabelTree2(Object*) function of XPDF v4.04… Also affects xpdf
- CVE-2022-43295 XPDF v4.04 was discovered to contain a stack overflow via the function FileStream::copy()… Also affects xpdf