Skip to content
Memory corruption Advisory Advanced CVE-2016-0277

IBM Domino KeyView PDF Filter Encrypted Stream Code Execution Vulnerability

A stack buffer overflow exists in the KeyView PDF filter used by IBM Domino when parsing an encrypted PDF stream whose Length value exceeds the 16 bytes the code reserves. An attacker could crash the process and possibly execute arbitrary code by sending a crafted PDF, for example as an email attachment.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A stack overflow vulnerability present in the PDF filter of KeyView as used by Domino can lead to process crash and possible arbitrary code execution.

Aleksandar Nikolic, on Cisco Talos

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 code trusts the PDF's Length field to size a copy loop but writes into a fixed 16-byte stack buffer, so a larger Length overflows adjacent stack memory.

Impact

The crafted file crashes the process and may allow arbitrary code execution, though a stack cookie and the constant overflow bytes make reliable exploitation difficult.

What the attacker needed

Crafted PDF file; revision 3 encryption in the file; victim opens file or email attachment

How it was found

  1. Craft a PDF whose trailer marks an object as encrypted with the standard filter and revision 3.
  2. Set the encryption dictionary's Length value far above the legal maximum.
  3. Open the file in the KeyView filter binary or send it as an email attachment to a Domino mail server.
  4. The decryption key derivation loop copies more bytes than the buffer holds, overwriting the stack cookie and return address and crashing the process.

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.

A PDF can mark part of itself as encrypted and state how long the encryption key is. The program reserves a small fixed space for that key but trusts the stated length, so a too-large number makes it write past the space and damage nearby memory, including the address it returns to. That can crash the program and, in principle, let an attacker 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.

More by Aleksandar Nikolic

View all

147 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

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.