CVE-2011-2005: Microsoft Ancillary Function Driver (afd.sys) Improper Input Validation Vulnerability
CVE-2011-2005 is a high-severity flaw (CVSS 7.8) affecting windows server 2003, windows xp, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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."
Why this priority
- High severity
- EPSS top 2%: very likely to be exploited
- Exploited in the wild (CISA KEV)
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 31.8% (top 2%) |
| CISA exploited list | Yes, fix due 2022-04-18 |
| Published | 2011-10-12 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- Exploit-DB: Microsoft Windows - 'AfdJoinLeaf' Local Privilege Escalation (LPE) (MS11-080) (Metasploit)
- Exploit-DB: Microsoft Windows XP/2003 - 'afd.sys' Local Privilege Escalation (LPE) (MS11-080)
- Metasploit: MS11-080 AfdJoinLeaf Privilege Escalation
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2011-2005?
windows server 2003: mitigate or apply the listed mitigation; windows xp: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2011-2005 being exploited?
Yes. CVE-2011-2005 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.
What does CVE-2011-2005 affect?
CVE-2011-2005 affects windows server 2003, windows xp. Severity is high (CVSS 7.8). 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 "A
How urgent is CVE-2011-2005?
Priority 87/100. High severity; EPSS top 2%: very likely to be exploited; Exploited in the wild (CISA KEV); Public exploit reference; On your watchlist
Software pages
Windows vulnerabilities · Windows Server vulnerabilities
Related CVEs
- CVE-2004-0230 MEDIUM 5.0 UPGRADE MITIGATE TCP, when using a large Window Size, makes it easier for remote attackers to guess sequence numbers and cause
- CVE-2017-8487 HIGH 7.8 MITIGATE MITIGATE Windows OLE in Windows XP and Windows Server 2003 allows an attacker to execute code when a victim opens a spe
- CVE-2017-8461 HIGH 7.8 MITIGATE MITIGATE Windows RPC with Routing and Remote Access enabled in Windows XP and Windows Server 2003 allows an attacker to
- CVE-2017-0176 HIGH 8.1 MITIGATE MITIGATE A buffer overflow in Smart Card authentication code in gpkcsp.dll in Microsoft Windows XP through SP3 and Serv
- CVE-2015-2387 HIGH 7.8 EXPLOITED MITIGATE MITIGATE Microsoft ATM Font Driver Privilege Escalation Vulnerability