(Pwn2Own) Microsoft Exchange Server CabUtility ExtractCab Directory Traversal Remote Code Execution Vulnerability
The CAB file extraction routine in Microsoft Exchange Server did not properly validate filenames inside a CAB archive before using them in file operations, allowing a path traversal. An attacker could combine this with other flaws to run code as SYSTEM on the server.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Microsoft Exchange Server. User interaction is required to exploit this vulnerability.
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 extraction routine joined archive-supplied filenames onto a destination path without checking for traversal sequences or absolute paths.
Impact
An attacker could write files outside the intended directory and, in conjunction with other vulnerabilities, execute arbitrary code as SYSTEM; the text notes user interaction is required and describes the attacker as network-adjacent.
What the attacker needed
Network-adjacent access; user interaction required; another vulnerability to chain
The fix
Microsoft issued an update that corrects the vulnerability.
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 CAB file is a compressed archive, like a zip, that can hold many files with names. This software unpacked such archives but trusted the file names inside them, so a crafted name could point outside the intended folder and overwrite other files. Chaining that with other bugs let an attacker run their own code with the highest privileges on the server.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.