Poppler PDF Image Display DCTStream::readProgressiveSOF() Code Execution Vulnerability
A heap overflow exists in Poppler's DCTStream::readProgressiveSOF() because it does not validate the number of colour components in a JPEG stream. A crafted PDF can cause heap corruption, potentially leading to code execution.
Originally disclosed on Cisco Talos
An exploitable heap overflow vulnerability exists in the image rendering functionality of Poppler-0.53.0. A specifically crafted PDF can cause an overly large number of color components during image rendering, resulting in heap corruption.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
The readProgressiveSOF function lacks a bounds check on the number of colour components, unlike the already-patched readBaselineSOF function.
Impact
A crafted PDF could cause heap corruption and potentially code execution, though the CVSS vector indicates high attack complexity and user interaction.
What the attacker needed
Victim opens a crafted PDF
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Poppler is a library that reads PDF files. When it processes an image inside a PDF, it reads a header that says how many colour components the image has. The code does not check if that number is too large, so it writes past the end of a small array, corrupting memory. An attacker can make a PDF that triggers this and possibly run their own code.
What is Memory corruption?
Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.