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.
Originally disclosed on Cisco Talos
A heap based buffer overflow vulnerability present in KeyView PDF filter as used by Domino can lead to remote arbitrary code execution.
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
- Craft a PDF file with a trailer containing an ID field with an excessively long hexadecimal string.
- Deliver the PDF to a victim, for example as an email attachment to a Domino mail server.
- The KeyView PDF filter parses the trailer and writes the decoded ID bytes past the end of the allocated buffer.
- 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.