CVE-2026-100864
Sandbox escape via DotList map/filter allowing arbitrary Python execution.
- CVSS 8.7
- CWE-94
- Input Validation and Sanitization
- Remote
heym before 0.0.91 contains a sandbox escape vulnerability in the expression engine's DotList map/filter and fallback resolver that allows authenticated users to execute arbitrary Python code. Attackers can craft workflow expressions using dunder attribute access through item expressions or the fallback resolver to access os.system and execute commands as the backend process.
- CWE
- CWE-94
- CVSS base score
- 8.7
- Published
- 2026-09-27
- OWASP
- A03 Injection
- Orthogonal defect classification
- Interface
- Code defect classification
- Incorrect Functionality
- Category
- Input Validation and Sanitization
- Subcategory
- Command Injection
- Accessibility scope
- Remote
- Impact
- Arbitrary Code Execution
- Affected component
- heym
- Fixed by upgrading
- Yes
Solution
Upgrade heym to version 0.0.91 or later, which patches the sandbox escape vulnerability.
Vulnerable code sample
import os
def render_expression(expr, data):
"""
Simplified expression engine used by heym before 0.0.91.
Supports dot lookups and filters like `items|map:attr`.
"""
# Very naive resolver that falls back to attribute access
def resolve(value, part):
if isinstance(value, dict) and part in value:
return value[part]
# VULNERABLE: unrestricted dunder attribute access allows code execution
return getattr(value, part) # no whitelist, allows '__class__', '__subclass__', etc.
# Example of a map filter that applies an attribute to each element
def apply_map(seq, attr):
return [resolve(item, attr) for item in seq]
# Parse a minimal expression format: "list|map:attribute"
if '|map:' in expr:
var_name, attr = expr.split('|map:')
seq = data.get(var_name, [])
return apply_map(seq, attr)
else:
# simple dot lookup
parts = expr.split('.')
val = data
for p in parts:
val = resolve(val, p)
return val
# Example usage (vulnerable):
# result = render_expression('users|map:__class__.__mro__[1].__subclasses__', {'users': [object()]})Patched code sample
import os
def render_expression(expr, data):
"""
Simplified expression engine with hardened attribute resolver.
"""
# Safe resolver that blocks dunder attributes and dangerous builtins
def resolve(value, part):
if isinstance(value, dict) and part in value:
return value[part]
# FIX: block attribute names starting with '__' to prevent escape
if isinstance(part, str) and part.startswith('__'):
raise ValueError("Invalid attribute access")
return getattr(value, part)
def apply_map(seq, attr):
return [resolve(item, attr) for item in seq]
if '|map:' in expr:
var_name, attr = expr.split('|map:')
seq = data.get(var_name, [])
return apply_map(seq, attr)
else:
parts = expr.split('.')
val = data
for p in parts:
val = resolve(val, p)
return val
# Example usage (patched):
# result = render_expression('users|map:name', {'users': [{'name': 'alice'}]})Cite this entry
@misc{vaitp:cve2026100864,
title = {{Sandbox escape via DotList map/filter allowing arbitrary Python execution.}},
author = {Bogaerts, Fr\'ed\'eric and Ivaki, Naghmeh and Fonseca, Jos\'e},
year = {2026},
note = {VAITP Python Vulnerability Dataset, entry CVE-2026-100864},
howpublished = {\url{https://netpack.pt/vaitp/vulnerability/CVE-2026-100864/}}
}
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 ::
