Skip to content
Memory corruption Write-up Advanced

(CVE-2020-0889) Microsoft Jet Database Format Record Length Memory Corruption

A crafted Excel file can corrupt a pointer used by the Microsoft Jet Excel driver, leading to an out-of-bounds write when the file is closed. An attacker could potentially execute arbitrary code or cause a denial of service by convincing a user to open a malicious file.

starlabs.sg

Published on starlabs.sg

msexcl40.dll is a part of Microsoft Jet Excel. It is responsible for processing Excel files.

The author, on starlabs.sg

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a missing or incorrect bounds check when handling a record length in the Excel file format, causing a pointer (pExcelRecordBuffer) to be overwritten and later used in an out-of-bounds write.

Impact

An attacker could potentially achieve arbitrary code execution or cause a denial of service by getting a victim to open a malicious .xls file.

What the attacker needed

Victim opens a crafted .xls file

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 write-up has not been written yet. The Original tab links to the source.

This report describes a memory corruption bug in a Microsoft component that reads Excel files. When a specially crafted file is opened, a pointer that should point to a buffer gets corrupted, and later the program writes to the wrong memory address. This could let an attacker run their own code or crash the program.

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.

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.