Vulnerability record · CVE-2011-2005 · published 12 October 2011
CVE-2011-2005: Microsoft Windows afd.sys input validation privilege escalation
Microsoft · Windows Server 2003
The Ancillary Function Driver (afd.sys) in Windows XP SP2/SP3 and Server 2003 SP2 fails to properly validate user-mode input passed to kernel mode. A local attacker can exploit this to elevate privileges to kernel level. The flaw is old but is listed in CISA KEV, so it remains relevant for unpatched legacy systems.
Description
afd.sys in the Ancillary Function Driver in Microsoft Windows XP SP2 and SP3 and Server 2003 SP2 does not properly validate user-mode input passed to kernel mode, which allows local users to gain privileges via a crafted application, aka "Ancillary Function Driver Elevation of Privilege Vulnerability."
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Automated analysis
high priorityThe vulnerability is in CISA KEV with high EPSS and allows full kernel privilege escalation, though it requires local access and user interaction on legacy systems.
What it is
The Ancillary Function Driver (afd.sys) in Windows XP SP2/SP3 and Server 2003 SP2 fails to properly validate user-mode input passed to kernel mode. A local attacker can exploit this to elevate privileges to kernel level. The flaw is old but is listed in CISA KEV, so it remains relevant for unpatched legacy systems.
Impact
An attacker who can run code on the host gains kernel-level privileges, allowing full control of the affected system. This can lead to credential theft, disabling of security controls, and further lateral movement.
Attack surface
The vulnerability is local (AV:L) and requires user interaction (UI:R), meaning an attacker must already have a foothold or convince a user to run a crafted application. No authentication is needed beyond local access.
Exploitation
CVE-2011-2005 is in CISA KEV (added 2022-03-28) and has a high EPSS probability of 0.318 (98th percentile), indicating active exploitation in the wild. No ransomware campaign use is documented.
What to do
- Apply the Microsoft security update MS11-080 immediately on affected Windows XP and Server 2003 systems.
- If patching is not possible, isolate or decommission legacy XP/2003 hosts from untrusted networks.
- Restrict local interactive logon and application execution to trusted users only.
- Monitor for and block execution of untrusted binaries that attempt to interact with afd.sys.
- Migrate remaining workloads off Windows XP and Server 2003 to supported operating systems.
Detection
- Monitor for suspicious local process creation events that load or interact with afd.sys unexpectedly.
- Audit Windows Security logs for privilege escalation attempts or token manipulation on legacy hosts.
- Use EDR to detect crafted applications exploiting kernel input validation flaws in afd.sys.
- Check for known exploit artifacts or unusual child processes spawned from user-writable directories on XP/2003 systems.
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-2011-2005 to the Known Exploited Vulnerabilities catalog on 28 March 2022 as "Microsoft Ancillary Function Driver (afd.sys) Improper Input Validation Vulnerability". Required action: Apply updates per vendor instructions. Federal deadline 18 April 2022.
Affected products
2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
Track CVE-2011-2005 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.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2011-2005), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.