CVE-2017-9865
Medium · 5.5CVSS
5.5
EPSS
1.7%
Published
Jun 25, 2017
CISA due date
—
Cloudanix analysis
A flaw in popular PDF software can cause programs to crash when they open certain specially crafted documents, interrupting normal work that depends on reading or converting PDFs.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Stack-based buffer over-read in GfxImageColorMap::getGray triggered by missing color-map validation when processing image data in crafted PDF files, resulting in application crash.
Why it matters to the business
Disruption of PDF viewing and processing workflows, potential loss of unsaved work, and reduced availability of document-handling services across desktop and server environments.
How an attack unfolds
An attacker creates a PDF containing an image with invalid color-map metadata, then delivers the file through common channels; when the document is opened in an affected Poppler-based application the missing validation causes an immediate crash.
How to fix it
Upgrade Poppler to a release containing the color-map validation fixes; apply current distribution packages for Debian and other affected systems; rebuild any locally compiled applications against the patched library.
How to confirm the fix worked
Confirm the installed Poppler version is newer than 0.54.0, then attempt to open the original proof-of-concept PDF to verify the application no longer crashes.
Typical attack path
- Generate PDF with malformed color-map structures
- Distribute file via email, web download, or shared storage
- Victim opens the document in a vulnerable viewer or converter
- Application encounters unvalidated image data and crashes
How to detect it
Review system and application logs for segmentation faults or crashes occurring immediately after PDF file access; correlate with file-access events involving PDF documents.
What your security team should do
- Prioritize Poppler updates on all systems that render or convert PDFs
- Restrict PDF processing to sandboxed or isolated environments where feasible
- Add crash monitoring for PDF-handling processes to detect anomalous terminations
The record
The function GfxImageColorMap::getGray in GfxState.cc in Poppler 0.54.0 allows remote attackers to cause a denial of service (stack-based buffer over-read and application crash) via a crafted PDF document, related to missing color-map validation in ImageOutputDev.cc.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | poppler | 0 | 0.57.0-2 |
| Debian:12 | poppler | 0 | 0.57.0-2 |
| Debian:13 | poppler | 0 | 0.57.0-2 |
| Debian:7 | poppler | 0 | 0.18.4-6+deb7u2 |
| Debian:8 | poppler | 0 | 0.26.5-2+deb8u2 |
| Debian:9 | poppler | 0 | 0.48.0-2+deb9u1 |
| Mageia:5 | poppler | 0 | 0.26.5-2.3.mga5 |
| Mageia:6 | poppler | 0 | 0.52.0-3.1.mga6 |
| SUSE:Linux Enterprise Desktop 12 SP3 | poppler | 0 | 0.43.0-16.15.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | poppler-qt | 0 | 0.43.0-16.15.1 |
| SUSE:Linux Enterprise Server 12 SP3 | poppler | 0 | 0.43.0-16.15.1 |
| SUSE:Linux Enterprise Server 12 SP3 | poppler-qt | 0 | 0.43.0-16.15.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | poppler | 0 | 0.43.0-16.15.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | poppler-qt | 0 | 0.43.0-16.15.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | poppler | 0 | 0.43.0-16.15.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | poppler-qt | 0 | 0.43.0-16.15.1 |
| Ubuntu:16.04:LTS | poppler | 0 | 0.41.0-0ubuntu1.14 |
| Ubuntu:18.04:LTS | poppler | 0 | 0.62.0-2ubuntu2.9 |
Related vulnerabilities
- CVE-2024-56378 libpoppler.so in Poppler through 24.12.0 has an out-of-bounds read vulnerability within… Also affects poppler
- CVE-2017-15565 In Poppler 0.59.0, a NULL Pointer Dereference exists in the… Also affects poppler
- CVE-2017-14518 In Poppler 0.59.0, a floating point exception exists in the… Also affects poppler
- CVE-2017-14517 In Poppler 0.59.0, a NULL Pointer Dereference exists in the XRef::parseEntry() function… Also affects poppler
- CVE-2017-2820 An exploitable integer overflow vulnerability exists in the JPEG 2000 image parsing… Also affects poppler
- CVE-2013-4474 Format string vulnerability in the extractPages function in utils/pdfseparate.cc in… Also affects poppler
- CVE-2013-4473 Stack-based buffer overflow in the extractPages function in utils/pdfseparate.cc in… Also affects poppler
- CVE-2009-3608 Integer overflow in the ObjectStream::ObjectStream function in XRef.cc in Xpdf 3.x before… Also affects poppler