Skip to content
Info disclosure Advisory Advanced CVE-2018-1037

Microsoft Visual Studio Information Disclosure Vulnerability (CVE-2018-1037)

Visual Studio wrote limited contents of uninitialised memory into program database (PDB) files when compiling projects. Anyone with access to an affected PDB file could view that leaked memory from the machine used to build it.

Mateusz Jurczyk Follow

Originally disclosed on Microsoft

Description

An information disclosure vulnerability exists when Visual Studio improperly discloses limited contents of uninitialized memory while compiling program database (PDB) files. An attacker who took advantage of this information disclosure could view uninitialized memory from the Visual Studio instance used to compile the PDB file. To take advantage of the vulnerability, an attacker would require access to an affected PDB file created using a vulnerable version of Visual Studio. An attacker would have no way to force a developer to produce this information disclosure. The security update addresses the vulnerability by correcting how PDB files are generated when a project is compiled.

FAQ

In addition to installing this update, are there any further steps I need to carry out to be protected from the vulnerability discussed in this CVE? Visual Studio users who have installed the update for CVE-2018-1037 may also need to rebuild any PDB files that were updated after their initial creation, as they may contain memory leaked from the source computer used to compile Visual Studio projects. This can be done through Visual Studio after installing the applicable update or by running the standalone PDBCopy tool provided by Microsoft (see links in the table below). This tool has been updated to identify and remediate affected PDB files. Note that any projects compiled and then updated through a Visual Studio installation that has not been updated will be susceptible to memory leaks in PDB files. How will I know which PDB files are affected by this vulnerability? The PDBCopy tool has been updated to assist developers in scanning for and updating affected PDB files. The tool and instructions for use can be found in KB4131751 with direct download links here: Architecture Link X64 PDBCopy.exe X86 PDBCopy.exe What information is leaked in PDB files compiled with a vulnerable instance of Visual Studio? The memory leaked is limited to typically low-risk variables used in the application build environment, and only information that the Visual Studio executable uses when compiling projects. If your PDB/symbol files are shared publicly, this information could be extracted.

Visual Studio

Visual Studio

The original report as published on the Microsoft Security Response Center, by Mateusz Jurczyk of Google Project Zero. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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

Impact

An attacker with access to an affected PDB file could view limited, typically low-risk build-environment memory; the text notes this matters most when PDB files are shared publicly.

What the attacker needed

Access to an affected PDB file; PDB built with a vulnerable Visual Studio

The fix

The update was fixed by correcting how PDB files are generated, and existing PDB files should be rebuilt or cleaned with the updated PDBCopy tool.

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.

When a program is built, the compiler can leave small pieces of leftover computer memory in a debug file called a PDB. That memory may hold bits of data from the build machine. If the PDB is shared, someone else can read those leftovers, though the vendor says the leaked values are usually low risk.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Mateusz Jurczyk

View all

207 more disclosed reports, best first.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.