← Vulnerability feed

Vulnerability record · CVE-2025-21418 · published 11 February 2025

CVE-2025-21418: Windows Ancillary Function Driver for WinSock heap overflow privilege escalation

Microsoft · Windows 10 1607

The Windows Ancillary Function Driver for WinSock (afd.sys) contains a heap-based buffer overflow that allows a local user to elevate privileges. Microsoft rates it 7.8 HIGH, and CISA added it to the Known Exploited Vulnerabilities catalog on the publication date, so it is being used in the wild.

7.8 CVSS 3.1 High CISA KEV since 11 Feb 2025 EPSS 1.6% · top 25.7% CWE-122 · Heap-based buffer overflow
7.8CVSS 3.1 base score
1.6%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
14Affected 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 17 September 2026. Confidence: high.

high priorityIt is a locally exploitable privilege escalation flaw with confirmed in-the-wild exploitation per CISA KEV, though it requires local access and low privileges rather than being remotely reachable.

What it is

The Windows Ancillary Function Driver for WinSock (afd.sys) contains a heap-based buffer overflow that allows a local user to elevate privileges. Microsoft rates it 7.8 HIGH, and CISA added it to the Known Exploited Vulnerabilities catalog on the publication date, so it is being used in the wild.

Impact

A local attacker who triggers the overflow can execute code with higher privileges, up to SYSTEM, giving full control of the affected host.

Attack surface

The CVSS vector is local (AV:L) with low privileges required (PR:L) and no user interaction (UI:N), so any logged-on user who can reach the WinSock driver interface can attempt it. No remote or network path is described in the record.

Exploitation

CISA added it to KEV on 2025-02-11 with a remediation due date of 2025-03-04, confirming known exploitation; EPSS is 0.01568 (74th percentile), which is modest but consistent with a locally exploited, targeted flaw. No ransomware campaign use is documented.

What to do

  • Apply the Microsoft February 2025 security update for all listed Windows client and server versions immediately, prioritizing internet-facing and multi-user systems.
  • Restrict interactive logon and local privilege assignment to only users who need it, reducing the pool of accounts that can reach the driver.
  • Enable and monitor Windows Defender and EDR detections for local privilege escalation behavior on afd.sys.
  • If patching cannot be completed by the KEV due date, follow CISA guidance to apply vendor mitigations or discontinue use of the affected product.

Detection

  • Alert on unexpected processes loading or interacting with afd.sys outside normal WinSock activity.
  • Monitor for processes that spawn with SYSTEM integrity from a non-system parent, especially shortly after a user logon.
  • Correlate local privilege escalation telemetry with known post-exploitation tooling behavior on endpoints.
  • Track patch state of the listed Windows builds against the KEV due date of 2025-03-04.

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

Exploitation in the wild

CISA added CVE-2025-21418 to the Known Exploited Vulnerabilities catalog on 11 February 2025 as "Microsoft Windows Ancillary Function Driver for WinSock Heap-Based Buffer Overflow Vulnerability". Required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. Federal deadline 4 March 2025.

Affected products

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

References

Track CVE-2025-21418 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.

9.8CVE-2026-33824Double free in Windows IKE Extension enables remote code executionA double free flaw (CWE-415) exists in the Windows IKE Extension, reachable over the network by an unauthenticated attacker. Successful exploitation …KEVEPSS 1.6%analysed9.8CVE-2017-8543Windows Search memory handling flaw allows remote code executionWindows Search fails to properly handle objects in memory, allowing an unauthenticated remote attacker to execute code on affected Windows systems. T…KEVEPSS 74%analysed8.8CVE-2026-21510Windows Shell protection mechanism failure allows security feature bypassWindows Shell contains a protection mechanism failure (CWE-693) that lets an unauthorized attacker bypass a security feature over a network. The flaw…KEVEPSS 24%analysed8.8CVE-2026-21513Microsoft MSHTML security feature bypass on WindowsCVE-2026-21513 is a protection mechanism failure (CWE-693) in the Microsoft MSHTML Framework that lets an unauthorized attacker bypass a security fea…KEVEPSS 16%analysed8.8CVE-2025-33073Windows SMB improper access control allows privilege elevationWindows SMB contains an improper access control flaw (CWE-284) that lets an authorized attacker elevate privileges over the network. Microsoft rates …KEVEPSS 83%analysed8.8CVE-2025-33053Microsoft Windows WebDAV Internet Shortcut File Path Control RCEWindows Internet Shortcut (.url) files allow external control of a file name or path, which an unauthorized attacker can abuse to execute code over a…KEVEPSS 87%analysed8.8CVE-2024-49039Windows Task Scheduler elevation of privilege via improper authenticationCVE-2024-49039 is an elevation of privilege flaw in the Windows Task Scheduler, classified as improper authentication (CWE-287). A local attacker wit…KEVEPSS 14%analysed8.8CVE-2024-43461Windows MSHTML Platform spoofing flaw enables code executionCVE-2024-43461 is a spoofing vulnerability in the Windows MSHTML platform, the legacy rendering engine still reachable through Windows components. Th…KEVEPSS 54%analysed

Source: NIST National Vulnerability Database (record CVE-2025-21418), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.