Antenna House Office Server Document Converter vbgetfp code execution vulnerability
A crafted Microsoft Word document causes an out-of-bounds write in the vbgetfp function of the Antenna House Office Server Document Converter, leading to heap corruption. An attacker could potentially achieve remote code execution by supplying a malicious document.
Originally disclosed on Cisco Talos
An exploitable out-of-bounds write exists in the Microsoft Word document conversion functionality of the Antenna House Office Server Document Converter version V6.1 Pro MR2 for Linux64 (6,1,2018,0312). A crafted Microsoft Word (DOC) document can lead to an out-of-bounds write, resulting in remote 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 code uses a byte from the input file as a loop limit without checking that the resulting number of iterations stays within the allocated 512-byte buffer, causing an out-of-bounds write.
Impact
An attacker could corrupt memory and potentially achieve arbitrary remote code execution, though the report only demonstrates a crash under Valgrind and does not show a working exploit.
What the attacker needed
Victim opens or converts a malicious DOC file; target runs the vulnerable converter version
How it was found
- Create a malicious Microsoft Word (DOC) file that triggers the vulnerable code path.
- Run the document converter (SBCCmd) on the malicious file, for example with the command line shown.
- Observe the out-of-bounds write and heap corruption under Valgrind.
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.
This report describes a memory corruption bug in a program that converts Word documents to other formats. When the program reads a specially crafted Word file, it writes data past the end of a fixed-size memory buffer, which can crash the program or let an attacker run their own code. The bug is in a function called vbgetfp that handles part of the document parsing.
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.