asteval sandbox escape: arbitrary native memory read/write via numpy ctypes in default asteval Interpreter
Summary
| CVE | CVE-2026-102734 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-13 16:17:09 UTC |
| Updated | 2026-10-16 20:04:29 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 5.5 MEDIUM from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS: 0.001280000 probability, percentile 0.021870000 (date 2026-10-16)
Problem Types: CWE-693 | CWE-749 | CWE-913 | CWE-693 CWE-693: Protection Mechanism Failure | CWE-749 CWE-749: Exposed Dangerous Method or Function | CWE-913 CWE-913: Improper Control of Dynamically-Managed Code Resources
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| 3.1 | CNA | DECLARED | 5.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
NoneIntegrity
NoneAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/lmfit/asteval/security/advisories/GHSA-9w56-46f6-3qhx | [email protected] | github.com | |
| github.com/lmfit/asteval/releases/tag/1.0.9 | [email protected] | github.com | |
| github.com/lmfit/asteval/pull/153 | [email protected] | github.com | |
| github.com/lmfit/asteval/commit/a3e56e7f8ed567a4817684d94213b290359077b4 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.