IBM Domino KeyView PDF Filter BaseFont Code Execution Vulnerability
A heap buffer overflow exists in the PDF filter of KeyView when parsing a malformed BaseFont object, caused by an unchecked string copy. An attacker could exploit this to execute arbitrary code remotely by sending a crafted PDF as an email attachment.
Originally disclosed on Cisco Talos
A heap buffer overflow vulnerability present in the PDF filter of KeyView as used by Domino can lead to 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
Likely the use of strcpy without bounds checking when copying BaseFont data into a fixed-size heap buffer.
Impact
An attacker could execute arbitrary code remotely in the context of the process handling the PDF.
What the attacker needed
Victim opens a crafted PDF; or sends it as email attachment
How it was found
- Create a PDF with a Font object that references another object for BaseFont data.
- Make the BaseFont object contain an overly long string (at least 229 bytes).
- Open the PDF with the KeyView filter or send it as an email attachment to a Domino mail server.
- The parser processes the font and triggers the overflow, causing a crash or potential 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 heap buffer overflow happens when a program copies more data into a memory area than it can hold, overwriting nearby data. Here, a PDF file with a specially crafted font name causes the program to copy too much data, which can crash it or 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.