Skip to main content
Mallory
HighExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2017-8464: Windows LNK Remote Code Execution Vulnerability

Published Jun 15, 2017 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.8High · v3.1
EPSS90.0%100th percentile
CISA KEVYesAdded Feb 10, 2022
In the wildActivePer CISA KEV
Vendor
Microsoft Corporation
IdentifiersCVE-2017-8464CWE-20

CVE-2017-8464 is an arbitrary code execution vulnerability in Windows Shell caused by improper handling of crafted LNK shortcut files during icon display. Windows Explorer and other applications that parse shortcut icons can trigger execution when displaying a malicious shortcut. Malicious icon references to Control Panel components are associated with exploitation. Affected platforms include Windows Server 2008 SP2 and R2 SP1, Windows 7 SP1, Windows 8 and 8.1, Windows Server 2012 and R2, Windows RT 8.1, Windows 10 initial release and versions 1511, 1607, and 1703, and Windows Server 2016. Execution occurs with the privileges of the user displaying the shortcut.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits arbitrary code execution in the affected user's security context. Displaying the shortcut is sufficient to trigger exploitation; in some configurations, this can occur automatically when a USB device is connected. BlackSquid has exploited the vulnerability to execute malware distributed through network and removable drives. LemonDuck reporting also associates the vulnerability with privilege escalation, but the documented execution privilege is that of the affected user, and an intrinsic elevation mechanism is not established.

Mitigation

If you can’t patch tonight, do this now.

Block outbound SMB traffic at the network perimeter on TCP and UDP ports 139 and 445 to prevent connections to external SMB servers. Disable the WebClient service on clients to disable WebDAV, or block WebDAV methods at the network level. These measures reduce available attack vectors but do not eliminate the vulnerability.

Remediation

Patch, then assume compromise.

Apply the Microsoft security update for CVE-2017-8464 to all affected Windows systems.

Public exploits

Exploits

3 exploits validated by Mallory's analysis. Hidden: 2 rejected by Mallory's analysis as not a working exploit; 2 not yet analyzed, such as Exploit-DB entries.

View more in app →
cve_2017_8464_lnk_rce.rbThis repository contains a single Metasploit module that exploits CVE-2017-8464, a vulnerability in the way Windows handles shortcut (.LNK) files with dynamic icons. The exploit generates a malicious LNK file that references a DLL (typically with a .cpl extension) as its icon. When the LNK file is viewed (e.g., in Windows Explorer), Windows loads the referenced DLL, resulting in code execution. The module allows the user to specify the filenames and paths for the LNK and DLL files, and can generate multiple LNK files for different drive letters (D: through Z:), making it suitable for use with USB drives or shared folders. The payload is a DLL generated by Metasploit, allowing for customizable post-exploitation actions. The exploit targets unpatched versions of Microsoft Windows as of June 2017. The attack vector is local, typically via removable media or shared folders. The main fingerprintable endpoints are the generated LNK and DLL files.Disclosed Jun 13, 2017 · Framework: metasploit · ruby · local · removable_mediaWeaponizedcve_2017_8464_lnk_lpe.rbThis repository contains a single Metasploit module (modules/exploits/windows/local/cve_2017_8464_lnk_lpe.rb) that exploits CVE-2017-8464, a local privilege escalation vulnerability in Microsoft Windows. The exploit abuses the way Windows processes shortcut (.LNK) files with dynamic icons, allowing an attacker to load a malicious DLL by crafting a special LNK file with a Control Panel SpecialFolderDataBlock. The module generates a DLL containing the attacker's payload and a corresponding LNK file, both written to a writable directory (defaulting to %USERPROFILE% or a user-specified path). When the LNK file is indexed or previewed by Windows, the malicious DLL is loaded, resulting in code execution with elevated privileges. The module is operational, requiring a Meterpreter session on a vulnerable Windows system, and supports both x86 and x64 architectures. No network endpoints are involved; the attack vector is local file system manipulation. The code is well-structured, leverages Metasploit's EXE and FileDropper mixins, and provides options for customizing the LNK and DLL filenames and display properties.Disclosed Jun 13, 2017 · Framework: metasploit · ruby · localWeaponizedPOC-CVE-2017-8464-OpenCalculatorThis repository is a small research/PoC package for CVE-2017-8464, a Windows Shell/shortcut handling vulnerability exploitable via removable media. The repo contains mostly documentation plus one C++ DLL payload source file. The intended exploit chain is: generate a malicious .lnk shortcut that references an attacker-controlled DLL using an absolute path on a USB drive, place both on the USB device, and rely on Windows Explorer icon processing to load the DLL when the victim opens the drive. The included DLL source in `Src Build/dllmain.cpp` is the active exploit payload: on `DLL_PROCESS_ATTACH`, it pins itself in memory with `GetModuleHandleEx` and spawns a new thread that runs `WinExec("calc.exe", SW_SHOW)`, making the PoC visibly launch Calculator. The repository does not include the .lnk generator itself; instead, it points users to an external Python script from nixawk's repository and explains that the crafted shortcut must use an absolute drive-letter path such as `F:\Pwned.dll` for reliability. Structure-wise, `README.md` explains the vulnerability, root cause, debugging notes, and build/use guidance; `Exploit/README.md` gives a brief operational note about USB drive-letter assumptions; `Src Build/README.md` and `Make_PoC.txt` provide setup instructions and the external builder reference; `Src Build/dllmain.cpp` contains the only code. Overall, this is a real exploit PoC rather than a detector: it demonstrates arbitrary code execution through malicious DLL loading from a USB-hosted shortcut, with a benign demo payload that launches Calculator.PlayBoiSK8 · Disclosed Aug 9, 2026 · cpp · markdown · usb · file · localOperational
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Microsoft CorporationWindows 10 1511operating_system
Microsoft CorporationWindows 10 1607operating_system
Microsoft CorporationWindows 10 1703operating_system
Microsoft CorporationWindows 7operating_system
Microsoft CorporationWindows 8.1operating_system
Microsoft CorporationWindows Rt 8.1operating_system
Microsoft CorporationWindows Server 2008operating_system
Microsoft CorporationWindows Server 2012operating_system
Microsoft CorporationWindows Server 2016operating_system
FAQ

Frequently asked questions

Is CVE-2017-8464 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Feb 10, 2022.
Is there a public exploit for CVE-2017-8464?
Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2017-8464, the earliest disclosed Jun 13, 2017.
Is there a patch for CVE-2017-8464?
Apply the Microsoft security update for CVE-2017-8464 to all affected Windows systems.
What products are affected by CVE-2017-8464?
Microsoft Corporation Windows 7, Microsoft Corporation Windows Rt 8.1, Microsoft Corporation Windows Server 2008, Microsoft Corporation Windows Server 2012, Microsoft Corporation Windows Server 2016, and 4 more.
How severe is CVE-2017-8464?
CVE-2017-8464 has a CVSS v3.1 score of 8.8 (High) and an EPSS score of 90.0% (100th percentile) as of Oct 16, 2026.
Activity feed

Recent activity

6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+2 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware6Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.