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

IBM Domino KeyView PDF Filter Trailer ID Code Execution Vulnerability

A heap-based buffer overflow in the KeyView PDF filter's parsing of the trailer ID field allows an attacker to overwrite heap memory and potentially execute arbitrary code. The report demonstrates a crash and states that further control could lead to code execution.

Aleksandar Nikolic Follow

Originally disclosed on Cisco Talos

High 8.8 View original

A heap based buffer overflow vulnerability present in KeyView PDF filter as used by Domino can lead to remote 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 PDF trailer ID string is converted to bytes and written to a fixed-size heap buffer without any length check.

Impact

The overflow can crash the process and may allow arbitrary code execution, though the report only demonstrates a crash from an invalid free.

What the attacker needed

Victim opens a crafted PDF; PDF is processed by KeyView filter

How it was found

  1. Craft a PDF file with a trailer containing an ID field with an excessively long hexadecimal string.
  2. Deliver the PDF to a victim, for example as an email attachment to a Domino mail server.
  3. The KeyView PDF filter parses the trailer and writes the decoded ID bytes past the end of the allocated buffer.
  4. The overflow corrupts heap memory, causing a crash or potentially enabling 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 report has not been written yet. The Original tab links to the source.

A PDF file has a trailer section that can contain an ID field. The software does not check how long this ID is, so a very long ID can overflow a memory buffer and corrupt other data. This can crash the program and, in some cases, allow an attacker to 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.