Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-35265 Overview
CVE-2024-35265 is an elevation of privilege vulnerability in the Windows Perception Service. The flaw stems from a time-of-check time-of-use (TOCTOU) race condition [CWE-367] in a Windows system service shipped with Windows 10, Windows 11, and Windows Server 2019. A local, authenticated attacker who successfully wins the race can elevate privileges on the affected host, impacting confidentiality, integrity, and availability. Microsoft published the advisory as part of its June 2024 Patch Tuesday release. Exploitation requires local access and high attack complexity due to the timing requirement, which reduces opportunistic abuse but does not eliminate the risk in multi-user or shared systems.
Critical Impact
Successful exploitation grants an authenticated local user elevated privileges on the host, enabling full compromise of the affected Windows system.
Affected Products
- Microsoft Windows 10 (versions 1809, 21H2, 22H2)
- Microsoft Windows 11 (versions 21H2, 22H2, 23H2)
- Microsoft Windows Server 2019
Discovery Timeline
- 2024-06-11 - CVE-2024-35265 published to NVD by Microsoft
- 2024-06-11 - Microsoft releases security update via Patch Tuesday
- 2026-07-20 - Last updated in NVD database
Technical Details for CVE-2024-35265
Vulnerability Analysis
The Windows Perception Service exposes functionality used by spatial and sensor-aware features on Windows. The vulnerability is categorized as a time-of-check time-of-use (TOCTOU) race condition [CWE-367]. The service validates a resource or state and then operates on it, but an attacker running concurrently can modify that resource between the check and the subsequent use. Exploitation requires local code execution with low privileges and no user interaction. The resulting access impacts confidentiality, integrity, and availability of the targeted system. No public proof-of-concept is listed in the enriched data, and the vulnerability is not present on the CISA Known Exploited Vulnerabilities list.
Root Cause
The root cause is a race condition in which the Perception Service performs a security-relevant check on an object or path and then acts on it in a non-atomic way. Because the check and use are separated in time, a concurrent local process can substitute the object (for example, by swapping a file, handle, or registry value) after validation but before the privileged operation completes. This allows attacker-controlled input to flow into a code path that assumes a trusted state.
Attack Vector
Exploitation requires local access with low privileges on the target system. The attacker executes a process that races the Perception Service, repeatedly triggering the vulnerable operation while swapping the target resource. On success, the service performs a privileged action against attacker-controlled input, leading to privilege escalation. The high attack complexity reflects the timing precision required to win the race reliably. Technical details are not published by Microsoft beyond the advisory; see the Microsoft Security Update Guide CVE-2024-35265 for vendor information.
Detection Methods for CVE-2024-35265
Indicators of Compromise
- Unexpected child processes spawned by the Windows Perception Service (spectrum.exe or related service host processes) running under elevated contexts.
- Creation or modification of files in locations accessed by the Perception Service immediately followed by service activity, suggesting a TOCTOU race attempt.
- New local accounts, group membership changes, or scheduled tasks created shortly after Perception Service activity on an endpoint.
Detection Strategies
- Monitor process lineage for anomalous parent-child relationships originating from Windows Perception Service components.
- Alert on local processes that rapidly create, delete, or rename files in paths touched by the Perception Service, which is characteristic of race-condition exploitation.
- Correlate privilege-escalation telemetry (token elevation, new SYSTEM-level processes) with recent low-privileged user activity on the same host.
Monitoring Recommendations
- Enable Windows Security event auditing for process creation (Event ID 4688) and object access on sensitive paths used by Perception Service.
- Ingest endpoint process and file telemetry into a centralized data lake to support retrospective hunting for TOCTOU patterns.
- Track installation state of the June 2024 cumulative update across the Windows fleet and alert on hosts that remain unpatched.
How to Mitigate CVE-2024-35265
Immediate Actions Required
- Apply the Microsoft security update referenced in the Microsoft Security Update Guide CVE-2024-35265 to all affected Windows 10, Windows 11, and Windows Server 2019 systems.
- Prioritize patching on multi-user hosts, Remote Desktop Session Hosts, Virtual Desktop Infrastructure (VDI), and shared workstations where local attackers are more likely.
- Audit local user accounts and remove unnecessary interactive logon rights to reduce the pool of principals that can trigger the flaw.
Patch Information
Microsoft addressed CVE-2024-35265 in the June 2024 Patch Tuesday cumulative updates for Windows 10, Windows 11, and Windows Server 2019. Install the relevant monthly rollup or security-only update for each affected build. Full package identifiers and KB numbers are listed in the Microsoft Security Update Guide CVE-2024-35265.
Workarounds
- No official vendor workaround is documented; patching is the required remediation path.
- As a compensating control, restrict local logon rights and enforce application allowlisting to limit untrusted code execution on affected hosts.
- Where feasible on systems that do not require spatial or perception features, review whether the Windows Perception Service is needed and reduce its exposure through least-privilege configuration.
# Verify patch status on a Windows host (PowerShell)
Get-HotFix | Sort-Object -Property InstalledOn -Descending | Select-Object -First 20
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

