Sandbox escape in asteval allows arbitrary process memory access
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-693.
Summary
asteval, a Python expression evaluator for restricted execution, is affected before 1.0.9. The default Interpreter with numpy enabled exposes a ctypes type that permits from_address memory access, and attribute assignments use unfiltered setattr (CWE-693). An attacker who controls the evaluated expression, with user interaction required, can read or corrupt arbitrary process memory, escape the sandbox, or crash the host process.
Written with Claude Haiku 5.5 from the sources below · 2026-10-27
Description from the CNA
asteval is a Python expression evaluator designed for restricted execution. Prior to 1.0.9, in asteval/astutils.py, the default Interpreter with numpy enabled exposes a ctypes type and permits from_address memory access. safe_getattr blocks the ctypes module but not reachable ctypes type objects, while attribute assignments use unfiltered setattr instead of safe_setattr. An attacker-controlled expression can derive an address with id, read memory through from_address, and write through an attribute assignment. The expression can read or corrupt arbitrary process memory, escape the intended sandbox, execute code, disclose secrets, or crash the host process. This issue is fixed in version 1.0.9.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade asteval to version 1.0.9, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-10-27
- Fix · CNA asteval (lmfit) Fixed in 1.0.9
Timeline
- 2026-10-13 Threatist record created from CVE-2026-102734
- 2026-10-13 CISA SSVC decision points changed
- 2026-10-13 Priority changed: MEDIUM → LOW
References
More lmfit vulnerabilities
- TI-2025-18102 ASTEVAL Vulnerable to Maliciously Crafted Format Strings Leading to Sandbox Escape CVSS 3.1HIGH 8.4
- TI-2026-39918 ASTEVAL: Sandbox Escape via BaseException Subclasses CVSS 3.1MEDIUM 5.0
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences