Skip to content
Memory corruption Write-up Advanced

CVE-2019-8014: The Vulnerability Ignored 6 Years Ago

A heap-based buffer overflow in Adobe Acrobat Reader's parsing of RLE-compressed BMP images allows an attacker to execute arbitrary code. The flaw is a patch bypass of CVE-2013-2729, as Adobe only fixed one of four integer overflow spots six years earlier.

xlab.tencent.com

Published on xlab.tencent.com

Adobe released security updates for Adobe Acrobat and Reader in APSB19-41 in August. As usual, lots of vulnerabilities were fixed in the updates.

The author, on xlab.tencent.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an integer overflow in the calculation of the destination offset when decoding RLE-compressed bitmap data, leading to an out-of-bounds write.

Impact

An attacker could execute arbitrary code in the context of the current process, but the exploit requires bypassing ASLR, DEP, and CFG, which are not detailed in the post.

What the attacker needed

Victim opens a malicious PDF; Adobe Acrobat Reader DC version 2019.012.20035 or earlier; JavaScript enabled in Adobe Reader

The fix

The vulnerability was fixed in Adobe Acrobat Reader DC 2019.012.20036 by adding integer overflow checks.

How it was found

  1. Create a PDF containing a malicious RLE-compressed BMP image.
  2. Open the PDF in a vulnerable version of Adobe Acrobat Reader.
  3. The BMP parsing triggers an integer overflow and out-of-bounds write.
  4. Use JavaScript in the PDF to manipulate memory and achieve code execution.

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 write-up has not been written yet. The Original tab links to the source.

This report describes a memory corruption bug in Adobe Acrobat Reader when it opens a specially crafted BMP image inside a PDF. An attacker can use this to run their own code on the victim's computer. The bug is a repeat of an old issue that was only partially fixed years ago.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.