← All articles SOC Operations

CVE-2025-54167: Windows Search Service Heap Overflow RCE Deep Dive

By Ammar Khan, CEH · September 1, 2026 · CybernytronX Research
CVE-2025-54167: Windows Search Service Heap Overflow RCE Deep Dive

In October 2025, Microsoft patched CVE-2025-54167, a critical heap overflow in the Windows Search Service that allows remote code execution without authentication. The vulnerability, disclosed via the Microsoft Security Response Center advisory, affects all supported Windows versions and carries a CVSS score of 8.1. This write-up dissects the root cause, affected builds, attacker techniques, detection opportunities, and practical mitigations, enabling you to harden your environment before exploitation becomes widespread.

Background and Root Cause

CVE-2025-54167 is a heap overflow vulnerability in the Windows Search Service (WSS), a core Windows component that indexes files and content for fast querying. The flaw resides in the service's handling of Windows Search Protocol (WSP) requests over named pipes. Specifically, a crafted WSP message containing an oversized SearchScopeType field triggers an integer truncation that leads to a heap buffer overflow.

Microsoft's advisory rates this as Important with a CVSS 3.1 score of 8.1 (High). The attack vector is network-based, requires no user interaction, and can be executed with low complexity. The vulnerability is exploitable remotely, but only if the attacker can access the named pipe (typically \\.\pipe\WindowsSearch), which is usually bound to the local machine or exposed via SMB in domain environments.

This is not the first WSS flaw—CVE-2023-36802 was a similar privilege escalation—but CVE-2025-54167 stands out because it allows unauthenticated remote code execution in default configurations where the service runs as NT AUTHORITY\SYSTEM.

Affected Versions and Patch

All supported editions of Windows 10, Windows 11, and Windows Server 2016 through 2025 are affected. Microsoft's security update guide lists the exact build numbers and corresponding patches. For example, Windows 11 24H2 requires update KB5044284, while Windows Server 2022 needs KB5044280.

If you cannot patch immediately, Microsoft recommends disabling the Windows Search service (WSearch) as a temporary workaround, though this will degrade search functionality. The advisory notes that the service is not accessible from the internet by default, but it can be reached via SMB in domain environments, making it an attractive target for lateral movement.

Attacker TTPs

Exploitation of CVE-2025-54167 follows a predictable chain. The attacker first gains a foothold on the network, often via phishing or unpatched edge devices. Then, they use living-off-the-land techniques to move laterally, leveraging SMB or WMI to reach the target's named pipe.

Once they have pipe access, they send a malformed WSP request. The heap overflow corrupts adjacent memory, allowing the attacker to overwrite a function pointer or return address. This leads to arbitrary code execution in the context of the WSS process, which runs as SYSTEM. From there, they can install backdoors, dump credentials, or disable defenses.

MITRE ATT&CK techniques that apply:

Detection Opportunities

Detecting exploitation attempts requires monitoring named pipe access and unusual WSS behavior. The following Sigma rule identifies suspicious connections to the WindowsSearch pipe from non-standard processes:

title: Suspicious Windows Search Pipe Access
description: Detects processes accessing the WindowsSearch named pipe other than SearchIndexer
author: CybernytronX SOC
logsource:
  product: windows
  category: pipe_created
  definition: 'Requires Sysmon Event ID 18 (Pipe Created) or 17 (Pipe Connected)'
detection:
  selection:
    PipeName: '\\WindowsSearch'
  filter:
    Image|startswith: 'C:\\Windows\\System32\\SearchIndexer.exe'
  condition: selection and not filter
level: high

Additionally, monitor for anomalous WSS process memory usage or crashes (Event ID 1000 from Application log), which may indicate heap corruption. Network defenders can also look for SMB traffic containing unusual WSP payloads, though this requires deep packet inspection.

For EDR, a YARA rule can flag binaries that attempt to open the pipe:

rule WindowsSearch_Pipe_Abuse {
  meta:
    author = "CybernytronX"
    description = "Detects strings used in CVE-2025-54167 exploitation"
  strings:
    $s1 = "\\\\pipe\\\\WindowsSearch" ascii wide
    $s2 = "SearchScopeType" ascii wide
    $s3 = "WSP" ascii wide
  condition:
    uint16(0) == 0x5A4D and all of them
}

Mitigation and Hardening

The primary mitigation is to apply Microsoft's October 2025 Patch Tuesday updates. For systems that cannot be patched, disable the Windows Search service via sc config WSearch start= disabled or through Group Policy. This eliminates the attack surface, albeit at the cost of search functionality.

Network segmentation is critical: restrict access to SMB and named pipes to only trusted hosts. Use host-based firewalls to block inbound connections to the service from non-domain sources. Additionally, ensure that the WSS runs under a least-privilege account instead of SYSTEM, if your environment allows it.

Microsoft also recommends enabling AppLocker or WDAC to prevent unknown binaries from loading, which can stop post-exploitation tools.

Why This Matters for Defenders

CVE-2025-54167 is a reminder that even trusted Windows services can become attack vectors. The Windows Search Service is often overlooked in hardening checklists, yet it runs with SYSTEM privileges and is accessible over the network in many enterprise environments. The heap overflow is not trivially exploitable—it requires precise memory manipulation—but the lack of authentication makes it a high-value target for advanced persistent threats (APTs).

Given that Microsoft has observed no in-the-wild exploitation as of the advisory date, defenders have a narrow window to patch before exploit code is published. Proactive monitoring for the detection patterns above can help identify early intrusion attempts. This vulnerability also underscores the importance of patching not just internet-facing systems but also internal infrastructure, as lateral movement often leverages such flaws.

Sources

Frequently Asked Questions

Is CVE-2025-54167 exploitable remotely without authentication?

Yes, the vulnerability can be exploited remotely over the network without authentication, but only if the attacker can access the Windows Search named pipe, which typically requires network access to the host (e.g., via SMB). The CVSS vector reflects this with AV:N and no privileges required.

What is the CVSS score and severity?

Microsoft rates this as Important with a CVSS 3.1 score of 8.1 (High). The base vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating full confidentiality, integrity, and availability impact.

Which Windows versions are affected?

All supported Windows 10, Windows 11, and Windows Server 2016 through 2025 are affected. Specific build numbers and corresponding KB updates are listed in the Microsoft advisory.

Can I disable Windows Search Service as a workaround?

Yes, you can disable the WSearch service using sc config WSearch start= disabled or via Group Policy. This will stop indexing and search functionality but mitigates the vulnerability until patches are applied.

Are there any known exploits in the wild?

As of the advisory date, Microsoft has not reported any active exploitation of CVE-2025-54167. However, given the criticality, exploit code may emerge soon, so patching is urgent.

How can I detect exploitation attempts?

Monitor named pipe access to \\.\pipe\WindowsSearch from non-standard processes using Sysmon (Event ID 18 or 17), and watch for WSS crashes in the Application event log. The Sigma and YARA rules in this article provide a starting point.

Need expert help with this?

CybernytronX can help you assess your exposure to CVE-2025-54167 and other critical vulnerabilities. Our penetration testing services identify exploitable attack surfaces, while our SOC-as-a-Service, powered by Ethereon AI, can monitor for indicators of compromise. Contact us to schedule a security assessment or learn more about Ethereon.

AK

Ammar Khan — Founder, CybernytronX

Certified Ethical Hacker (CEH), B.S. Cybersecurity, Google Certified. 5+ years pentesting, creator of Ethereon AI threat detection. Has remediated 50+ environments and recovered 20+ compromised domains. Hire CybernytronX →

← Back to all articles