VAITP Dataset

← Back to the dataset

CVE-2022-26032

Local privilege escalation in Intel Python < 2022.1 due to uncontrolled search path element

  • CVSS 7.3
  • CWE-427 Uncontrolled Search Path Element
  • Authentication, Authorization, and Session Management
  • Local

Uncontrolled search path element in the Intel(R) Distribution for Python programming language before version 2022.1 for Intel(R) oneAPI Toolkits may allow an authenticated user to potentially enable escalation of privilege via local access.

CVSS base score
7.3
Published
2023-02-16
OWASP
A05 Security Misconfiguration
Orthogonal defect classification
Function
Code defect classification
Incorrect Functionality
Category
Authentication, Authorization, and Session Management
Subcategory
Privilege Escalation
Accessibility scope
Local
Impact
Privilege Escalation
Affected component
Intel Distribution for Python
Fixed by upgrading
Yes

Solution

Update Intel(R) Distribution for Python to version 2022.1 or higher.

Vulnerable code sample

import os
import sys

# Uncontrolled addition of a directory to the Python path
user_defined_path = os.getenv('USER_LIB_PATH', '/usr/local/lib/intelpython')
sys.path.append(user_defined_path)

# Importing libraries without validation of the path
import some_intel_library  # Replace with actual library name

# Rest of the application code

Patched code sample

import os
import sys

# Securely define the path to the required libraries
secure_path = '/usr/local/lib/intelpython'

# Ensure the secure path is in the Python path
if secure_path not in sys.path:
    sys.path.insert(0, secure_path)

# Now import the necessary libraries
import some_intel_library  # Replace with actual library name

# Rest of the application code

Cite this entry

@misc{vaitp:cve202226032,
  title        = {{Local privilege escalation in Intel Python < 2022.1 due to uncontrolled search path element}},
  author       = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
  year         = {2023},
  note         = {VAITP Python Vulnerability Dataset, entry CVE-2022-26032},
  howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2022-26032/}}
}

Download this entry as JSON Download the whole dataset

Introducing the "VAITP dataset": a specialized repository of Python vulnerabilities and patches, meticulously compiled for the use of the security research community. As Python's prominence grows, understanding and addressing potential security vulnerabilities become crucial. Crafted by and for the cybersecurity community, this dataset offers a valuable resource for researchers, analysts, and developers to analyze and mitigate the security risks associated with Python. Through the comprehensive exploration of vulnerabilities and corresponding patches, the VAITP dataset fosters a safer and more resilient Python ecosystem, encouraging collaborative advancements in programming security.

The supreme art of war is to subdue the enemy without fighting.

Sun Tzu – “The Art of War”

:: Shaping the future through research and ingenuity ::

Before you use the VAITP AI models

Please read and accept the following disclaimer:

By choosing "I understand and accept", you acknowledge that you understand and agree to these terms.