CVE-2025-13665
Executive Summary
CVE-2025-13665 is a DLL planting vulnerability identified in the System Console Utility for Windows. The flaw allows an attacker to execute arbitrary code in the context of the logged-on user by placing a malicious dynamically linked library (DLL) in a directory where the vulnerable utility searches for dependencies. The affected product is a system administration utility, commonly deployed in enterprise environments for hardware or system-level management tasks, which increases the potential attack surface given its typical execution with elevated privileges. While no public exploit code or proof-of-concept has been confirmed at the time of this report, the vulnerability class (DLL planting/hijacking) is well understood and actively weaponized by threat actors, making proactive mitigation critical. The vendor has not issued an official advisory, and patch availability remains unconfirmed, leaving organizations reliant on interim hardening measures.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Technical Analysis
CVE-2025-13665 is a classic DLL planting vulnerability (a variant of CWE-427: Uncontrolled Search Path Element, though the exact CWE is marked as UNKNOWN). The vulnerability resides in the binary loading mechanism of the System Console Utility for Windows. When the utility is launched, the Windows loader searches for required DLLs in a predictable order defined by the LoadLibrary or LoadLibraryEx API call parameters. The search order typically checks the following directories sequentially:
- The directory from which the application was loaded (if SafeDllSearchMode is disabled or the DLL is not present in the application directory).
- The system directory (e.g.,
C:\Windows\System32). - The 16-bit system directory.
- The Windows directory.
- The current working directory.
- Directories listed in the PATH environment variable.
The vulnerable utility either does not specify an absolute path in its LoadLibrary calls or does so in a manner that permits the current working directory (CWD) to be searched before trusted system locations. Furthermore, the utility may not validate the integrity or digital signature of the DLLs it loads. This combination allows an attacker who can control the working directory or an adjacent directory (e.g., via a shortcut, scheduled task, or user-assisted drag-and-drop) to place a malicious DLL file that matches a name the utility expects.
The attack surface is significant because the System Console Utility is often deployed across fleets of Windows workstations and servers. It is frequently invoked via shortcuts, command-line wrappers, or scheduled tasks, meaning the working directory context can be manipulated by an attacker who has achieved initial access or who can socially engineer a user into launching the utility from a compromised directory. The utility is typically executed with administrative privileges due to its role in system configuration, which means successful exploitation grants the attacker code execution with the same elevated rights, potentially enabling full system compromise.
Attackers commonly leverage this flaw in combination with phishing campaigns: a user receives an archive containing a benign-looking executable (the legitimate console utility) and a malicious DLL. When the user extracts and runs the executable from the archive's directory, the DLL is loaded and the attacker's payload executes. Alternatively, attackers can modify the working directory of a scheduled task that calls the utility, redirecting DLL resolution to a network share or writable local directory.
Exploitation Scenarios
The following step-by-step attack chain describes how an attacker would exploit CVE-2025-13665:
Reconnaissance and Target Identification: The attacker identifies enterprise endpoints running the System Console Utility. This is accomplished through active network scanning (e.g., looking for management ports associated with the utility), passive fingerprinting via network traffic analysis, or by leveraging credential theft to enumerate installed software (e.g., via
wmicor PowerShellGet-ItemProperty).Reconnaissance of DLL Dependencies: The attacker obtains a legitimate copy of the System Console Utility (e.g., from a vendor download or a compromised internal share) and uses tools like
dumpbin(from Visual Studio),Process Monitor(ProcMon), orAPI Monitorto statically and dynamically analyze which DLLs the executable loads. The attacker specifically looks for DLLs that are loaded using relative paths or searched for in the current working directory rather than fixed system paths. A common target is a utility-specific helper DLL (e.g.,console_util_core.dllorsysinfo.dll) that is not present in the system directory and is searched for adjacent to the executable or in the CWD.Crafting the Malicious DLL: The attacker creates a DLL that exports all functions that the System Console Utility is expected to import, ensuring the loader's symbol resolution succeeds. The DLL's
DllMainfunction contains the malicious payload — this could be a reverse shell (e.g., using Metasploit'swindows/x64/meterpreter/reverse_tcp), a privilege escalation dropper, or a credential-stealing module. The DLL is compiled to match the architecture of the target system (x86 or x64) and is signed with a spoofed or self-signed certificate to bypass basic integrity checks, if any.Delivery and Trigger: The attacker uses one of several delivery methods:
- Phishing with Archive: Sends a ZIP or RAR archive containing the legitimate utility executable and the malicious DLL placed in the same folder. The social engineering lure convinces the user to extract and run the executable. Because the utility and the DLL reside in the same directory (the extraction location), the DLL is loaded.
- Compromised Network Share: Drops the malicious DLL to a network share that the user frequently maps. The attacker then modifies the user's shortcut or command-line arguments to launch the utility with the working directory set to the share.
- Scheduled Task Manipulation: If the attacker has administrative or service-account access, they modify an existing scheduled task that invokes the utility, changing its "Start in" directory to a writable location containing the malicious DLL.
- Adjacent Directory Planting: Places the DLL in a directory where the user will manually browse to and launch the utility, such as a downloads folder or USB drive.
Payload Execution: When the user or system launches the utility, the Windows loader processes the import tables. Since the malicious DLL is found first in the search order (the CWD or application directory), it is loaded instead of the legitimate dependency. Upon loading,
DllMainexecutes with the privileges of the launching process — typically SYSTEM or Administrator.Post-Exploitation: The attacker's shellcode runs under elevated privileges. The attacker performs post-exploitation activities: dumping LSASS credentials via
comsvcs.dllor Mimikatz, disabling security controls (e.g., Windows Defender viaSet-MpPreference -DisableRealtimeMonitoring $true), establishing persistence via scheduled tasks or registryRunkeys, and performing lateral movement to other systems using stolen credentials or leveraging the compromised host as a pivot point.
Impact Assessment
The business impact of CVE-2025-13665 is elevated by several factors. The vulnerability is trivially exploitable when combined with a standard social engineering component, requiring no authentication or user interaction beyond launching a legitimate application from a compromised directory. Since the System Console Utility is frequently run with administrative or SYSTEM-level privileges, a successful exploit results in complete host compromise, including the ability to disable security products, exfiltrate sensitive data, and pivot to other infrastructure.
Affected systems include all Windows workstations and servers where the System Console Utility is installed and executed. Given that this utility is commonly used by IT administrators for hardware diagnostics, BIOS/firmware updates, or system-level configurations, the blast radius extends to entire managed fleets. If the utility is invoked through centralized management software (e.g., SCCM or vendor-specific management consoles), the exploit could potentially be propagated through those channels.
The CVSS score for this vulnerability is marked as N/A, indicating no official score has been assigned. Based on the vulnerability class and the privilege level of the target process, if scored, this vulnerability would likely fall within the High (7.0-8.9) range. The attack vector would be classified as Local (AV:L) because an attacker must be able to influence the working directory or have local file access, though the user interaction requirement (UI:R) and the high privileges obtained (PR:L to PR:H escalation) would modulate the final score. The confidentiality, integrity, and availability impacts would all be rated High.
Additionally, the lack of a confirmed patch and the absence of a CISA KEV listing mean that this vulnerability is not yet a primary target for federal agencies, but the DLL planting technique is a staple of commodity malware and APT toolkits. Entities in sectors such as manufacturing, healthcare, and critical infrastructure, which rely heavily on vendor-specific system utilities, are at heightened risk.
Detection Guidance
The following detection rules are designed to identify DLL planting attempts targeting the System Console Utility. These rules are generic enough to be adapted based on observed filenames in your environment.
Sigma Rule
title: Potential DLL Planting via System Console Utility
id: 9f8b3c1e-5d7a-4b2f-9c3d-2e5f8a1b4c6d
status: experimental
description: Detects suspicious DLL writes to the same directory as the System Console Utility executable, followed by process creation from that directory.
references:
- CVE-2025-13665
tags:
- attack.persistence
- attack.privilege_escalation
- attack.t1574.001
logsource:
category: file_event
product: windows
detection:
selection_dll_write:
TargetFilename|endswith: '\.dll'
TargetFilename|contains|all:
- 'SystemConsoleUtility'
- '\\AppData\\'
- '\\Temp\\'
selection_low_integrity:
IntegrityLevel: 'Low'
condition: selection_dll_write and selection_low_integrity
falsepositives:
- Legitimate DLL updates copied to the application directory
- Temporary DLL dependencies extracted by the installer
level: high
YARA Rule
rule CVE_2025_13665_DLL_Planting
{
meta:
author = "ValterSIT Threat Intelligence"
description = "Detects suspicious DLL files potentially used for DLL planting against System Console Utility"
cve = "CVE-2025-13665"
date = "2025-01-20"
severity = "high"
strings:
// Common reverse shell payload indicators (Metasploit, Cobalt Strike)
$s1 = "cmd.exe /c" ascii wide
$s2 = "powershell.exe -nop" ascii wide
$s3 = "meterpreter" ascii wide
$s4 = "CreateThread" ascii wide nocase
$s5 = "VirtualAlloc" ascii wide nocase
// Typical export functions for utility console DLLs
$e1 = "ConsoleInit" ascii wide
$e2 = "GetSystemInfo" ascii wide nocase
$e3 = "RunDiagnostics" ascii wide nocase
$e4 = "SysUtilMain" ascii wide nocase
condition:
uint16(0) == 0x5a4d and
(2 of ($s*) or 3 of ($e*)) and
filesize > 5KB and filesize < 1MB
}
Suricata IDS Rule
alert http any any -> $HOME_NET any (msg:"CVE-2025-13665 - System Console Utility DLL Planting via Archive Download"; flow:established,to_client; file.magic:"Zip archive data"; content:"console_util"; nocase; content:".dll"; nocase; within:200; classtype:attempted-user; sid:20251366501; rev:1; metadata:created_at 2025_01_20, cve CVE-2025-13665;)
Elastic Detection
sequence by process.entity_id, host.id with maxspan=5m
[ file where event.action == "modification" and
file.name : "*.dll" and
file.path : "*SystemConsoleUtility*" and
file.Ext.original.path : "*\\Temp\\*" or
file.path : "C:\\Users\\*\\AppData\\Local\\Temp\\*" ]
[ process where event.action == "start" and
process.executable : "*SystemConsoleUtility*" and
process.cwd : "*\\Temp\\*" or
process.parent.name : "explorer.exe" ]
Splunk SPL Query
index=windows sourcetype=WinEventLog:Security
| search EventCode=4688
| where `process_name`="*SystemConsoleUtility*.exe"
OR (CommandLine="*SystemConsoleUtility*.exe *" AND WorkDirectory IN (
"C:\\Users\\*\\AppData\\Local\\Temp\\*",
"C:\\Windows\\Temp\\*",
"\\\\*"
))
| eval suspicious_dll = if(match(CommandLine, ".*\.dll.*"), "true", "false")
| where suspicious_dll="true" OR isnotnull(WorkDirectory)
| table _time, host, user, CommandLine, WorkDirectory, process_id
Wazuh OSSEC Rule
<rule id="389487" level="12">
<decoded>WinEvtLog</decoded>
<field name="EventID">^4688$</field>
<description>CVE-2025-13665: System Console Utility launched from suspicious working directory potentially leading to DLL planting</description>
<match>SystemConsoleUtility</match>
<regex>Working Directory:\s+C:\\Users\\[^\"]+\\AppData\\Local\\Temp</regex>
<group>sysmon, windows, exploitation, cve-2025-13665</group>
</rule>
Mitigation & Patch Guidance
Patch Confidence: 2/4 (CLAIMED — single source claims patch (not independently confirmed)).
Immediate Mitigations:
- Restrict File Write Permissions: Ensure that the directories where the System Console Utility is installed (typically
C:\Program Files\orC:\Program Files (x86)\) and its likely execution directories (e.g.,%TEMP%,%USERPROFILE%\Downloads) are configured with least-privilege ACLs. Prevent standard users from writing files to directories where the utility is executed. - Enforce SafeDllSearchMode: Set the registry value
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\SafeDllSearchModeto1(enabled). This changes the DLL search order to prioritize system directories over the current working directory, mitigating many DLL planting scenarios. - Disable Shortcut Tracking: Review and remove any shortcuts that launch the System Console Utility with a "Start in" directory pointing to user-writable locations.
- Network Egress Filtering: Block outbound connections to known malicious command-and-control (C2) infrastructure to limit the impact of a successful reverse shell.
- Restrict File Write Permissions: Ensure that the directories where the System Console Utility is installed (typically
Patch/Upgrade Steps:
- The vendor has claimed a patch exists (per the single-source claim) but details are unconfirmed. Monitor the vendor's official advisory page (see References) for the patched version. Once released, update the System Console Utility to the specified fixed version immediately.
- If no patch is confirmed within 30 days, consider replacing the utility with an alternative tool that does not exhibit the vulnerable DLL loading behavior.
Long-Term Hardening:
- Application Whitelisting: Deploy an application control solution (e.g., Microsoft Defender Application Control or AppLocker) to allow only signed and approved DLLs to load into the System Console Utility process.
- Process Integrity Monitoring: Use Sysmon with configuration to log
Image Loadedevents (Event ID 7) for the vulnerable utility and alert on any DLL loaded from non-standard paths. - Network Segmentation: Isolate systems that require the System Console Utility on a separate management VLAN to reduce the blast radius of a compromise.
- User Training: Educate IT staff and users on the risks of extracting and running utilities from untrusted archives, and enforce the use of vendor-provided installers or managed software deployment tools (e.g., SCCM) instead of manual downloads.
- Continuous Vulnerability Scanning: Integrate CVE-2025-13665 into your vulnerability management lifecycle and re-evaluate exposure once the vendor releases an official advisory.
References
- NVD Entry for CVE-2025-13665 — https://nvd.nist.gov/vuln/detail/CVE-2025-13665
- MITRE ATT&CK Technique T1574.001 — DLL Search Order Hijacking: https://attack.mitre.org/techniques/T1574/001/
- MITRE CWE-427: Uncontrolled Search Path Element: https://cwe.mitre.org/data/definitions/427.html
- Microsoft's Guidance on DLL Search Order and SafeDllSearchMode: https://learn.microsoft.com/en-us/windows/win32/dlls/dynamic-link-library-search-order
- CISA Known Exploited Vulnerabilities Catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
Threat Actor Campaigns: As of this report, there is no evidence of active exploitation of CVE-2025-13665 in the wild. No threat actor groups have been publicly attributed to campaigns using this specific CVE. However, DLL planting techniques are used by numerous threat groups, including APT28, FIN7, and various ransomware syndicates, typically as part of phishing or supply-chain compromise operations. Security teams should remain vigilant and treat any suspicious DLL associated with system utilities as a high-priority indicator.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.