MSHTML remote-HTML ActiveX to RCE via CAB path traversal (CVE-2021-40444)
CVE-2021-40444: an Office document loads attacker-hosted HTML through MSHTML, which instantiates an ActiveX control whose codebase points at a CAB archive. A ../ path-traversal filename inside the CAB drops an INF into a predictable temp path, and a .cpl: URL with a relative-path escape then runs it via control.exe. Used in the wild in 2021 to deliver Cobalt Strike loaders, and a recognized predecessor of the Follina MSDT bug (CVE-2022-30190).
- Product
- Microsoft MSHTML (Trident) HTML rendering engine, as reached through Microsoft Office documents
- Vendor
- Microsoft
- Affected
- MSHTML on Windows 7 SP1, 8.1, RT 8.1, Windows 10 (1507 through 21H1), and Windows Server 2008 SP2 through 2022, when a crafted Office document is opened
- Fixed in
- September 14, 2021 cumulative updates (for example KB5005565); Microsoft advisory first published 2021-09-07
- Weakness
- CWE-22
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Published
- 15 Sep 2021
Classified as
References
Related CVEs
- CVE-2022-34713high 7.82022
DogWalk: Diagnostic Tool path traversal
A diagnostic package can direct MSDT to a remote folder whose returned filename contains dot segments; simple path concatenation then writes the downloaded file outside the intended temporary directory.
- CVE-2021-42013critical 9.82021
Apache path traversal (incomplete fix of CVE-2021-41773)
The 2.4.50 fix for the 2.4.49 traversal only decoded one layer, so a double-encoded dot-segment slips past it and re-traverses.
- CVE-2021-21972critical 9.82021
vCenter vSphere Client OVA upload path traversal to RCE
An unauthenticated OVA-upload endpoint extracts a tar archive by joining each entry name onto a fixed directory with no containment, so a ../ entry writes a JSP webshell into the webroot.
- CVE-2020-14882critical 9.82020
Oracle WebLogic Console auth bypass via path normalization
The console request filter decides a request is a public static asset from its raw URL prefix, then normalizes the path afterward, so a ../ that collapses after the check walks an unauthenticated request into a privileged admin handler.