CVE-2026-74899
openssl_encrypt Python sandbox escape enables arbitrary command execution.
- CVSS 9.3
- 95
- Input Validation and Sanitization
- Remote
openssl_encrypt versions before 1.4.0 contain a sandbox escape vulnerability in IsolatedPluginExecutor that exposes Python type objects in restricted exec() builtins. Attackers can traverse the Python class hierarchy via __class__.__mro__.__subclasses__() to access system functions and execute arbitrary OS commands.
- CWE
- 95
- CVSS base score
- 9.3
- Published
- 2026-08-17
- OWASP
- A03 Injection
- Orthogonal defect classification
- Checking
- Code defect classification
- Incorrect Check
- Category
- Input Validation and Sanitization
- Subcategory
- Command Injection
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Fixed by upgrading
- Yes
Solution
Upgrade jupyter-server-proxy to version 1.4.0 or later.
Vulnerable code sample
class IsolatedPluginExecutor:
def execute(self, plugin_code: str):
"""
Executes plugin code in a restricted environment.
"""
# For convenience, some built-in types are exposed to the plugin.
restricted_builtins = {
'len': len,
'str': str,
'dict': dict,
}
environment = {
'__builtins__': restricted_builtins,
}
# VULNERABLE: Exposing type objects like 'dict' in exec builtins allows class hierarchy traversal.
exec(plugin_code, environment)Patched code sample
class IsolatedPluginExecutor:
def execute(self, plugin_code: str):
"""
Executes plugin code in a restricted environment.
"""
# Only safe functions are exposed; types are not.
restricted_builtins = {
'len': len,
'str': str,
}
environment = {
'__builtins__': restricted_builtins,
}
# FIX: Do not expose any type objects, preventing introspection-based sandbox escapes.
exec(plugin_code, environment)Payload
__VAITP_MODEL_REFUSED__
Cite this entry
@misc{vaitp:cve202674899,
title = {{openssl_encrypt Python sandbox escape enables arbitrary command execution.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-74899},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-74899/}}
}
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 ::
