← Vulnerability feed

Vulnerability record · CVE-2023-21768 · published 10 January 2023

CVE-2023-21768: Windows Ancillary Function Driver for WinSock elevation of privilege

Microsoft · Windows 11

The Windows Ancillary Function Driver for WinSock (afd.sys) contains an elevation of privilege flaw. A local attacker with low privileges can exploit it to gain full control of the affected system. The record gives no root-cause detail beyond a CWE-822 (untrusted pointer dereference) mapping and an NVD no-info entry, so the exact defect is not described.

7.8 CVSS 3.1 High EPSS 65% · top 0.7% CWE-822 · CWE-822
7.8CVSS 3.1 base score
65%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
2References
17 Jun 2026Last modified by NVD

Description

Windows Ancillary Function Driver for WinSock Elevation of Privilege Vulnerability

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

high priorityLocal privilege escalation to SYSTEM with a 7.8 CVSS and very high EPSS, though not in KEV and requiring existing local access.

What it is

The Windows Ancillary Function Driver for WinSock (afd.sys) contains an elevation of privilege flaw. A local attacker with low privileges can exploit it to gain full control of the affected system. The record gives no root-cause detail beyond a CWE-822 (untrusted pointer dereference) mapping and an NVD no-info entry, so the exact defect is not described.

Impact

An attacker gains high confidentiality, integrity and availability impact, effectively SYSTEM-level control over the host. This enables credential theft, disabling of security controls and lateral movement from an already-compromised account.

Attack surface

Reached locally (AV:L) with low privileges required (PR:L) and no user interaction (UI:N). The attacker must already have code execution on the target Windows 11 or Windows Server 2022 host.

Exploitation

Not listed in CISA KEV and no ransomware association is recorded, but EPSS is very high at 0.654 (99.2nd percentile), indicating strong likelihood of exploitation activity. The two references are both the Microsoft update guide with no exploit tags.

What to do

  • Apply the Microsoft January 2023 security update for CVE-2023-21768 on Windows 11 and Windows Server 2022.
  • Prioritize patching of endpoints and servers where untrusted or low-privileged users can run code.
  • Enforce least privilege and remove unnecessary local admin rights to reduce the pool of accounts that can reach the driver.
  • Monitor for suspicious afd.sys-related activity and unexpected SYSTEM-level process creation from low-privileged contexts.

Detection

  • Alert on process creation where a low-privileged parent spawns a SYSTEM-integrity child, especially involving afd.sys or WinSock-related handles.
  • Track EDR telemetry for anomalous driver interaction and token manipulation on Windows 11 and Server 2022 hosts.
  • Correlate local privilege escalation attempts with subsequent credential access or defense-evasion behavior.
  • Audit patch state of Windows 11 and Windows Server 2022 assets against the January 2023 update.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2023-21768 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2021-40444Microsoft MSHTML remote code execution via malicious Office documentCVE-2021-40444 is a remote code execution flaw in the MSHTML browser rendering engine on Microsoft Windows. An attacker can embed a malicious ActiveX…KEVEPSS 98%analysed8.8CVE-2021-34527Windows Print Spooler privileged file operation RCE (PrintNightmare)The Windows Print Spooler service improperly performs privileged file operations, allowing an attacker to execute arbitrary code as SYSTEM. This is t…KEVEPSS 100%analysed7.8CVE-2021-40449Windows Win32k use-after-free local privilege escalationCVE-2021-40449 is a use-after-free (CWE-416) in the Windows Win32k component that allows a local attacker to elevate privileges. It affects a broad s…KEVEPSS 82%analysed7.8CVE-2021-40450Microsoft Win32k Elevation of Privilege VulnerabilityCVE-2021-40450 is a Win32k elevation of privilege flaw in Microsoft Windows. A local attacker with low privileges can exploit it to gain higher privi…KEVEPSS 1.5%analysed7.8CVE-2021-36955Windows CLFS Driver Elevation of PrivilegeThe Windows Common Log File System (CLFS) driver contains an elevation of privilege flaw. A local attacker with low privileges can exploit it to gain…KEVEPSS 4.1%analysed5.5CVE-2013-3900Windows WinVerifyTrust Authenticode signature verification RCECVE-2013-3900 is a remote code execution flaw in how the Windows WinVerifyTrust function verifies Authenticode signatures on portable executable file…KEVEPSS 45%analysed9.8CVE-2021-43215Microsoft windows 10 out-of-bounds write vulnerabilityiSNS Server Memory Corruption Vulnerability Can Lead to Remote Code ExecutionEPSS 2.9%9.8CVE-2021-43217Microsoft windows 10 vulnerabilityWindows Encrypting File System (EFS) Remote Code Execution VulnerabilityEPSS 6.5%

Source: NIST National Vulnerability Database (record CVE-2023-21768), CISA KEV, FIRST EPSS (scores of 2026-11-24). This page is refreshed as NVD updates the record.