CVE-2026-102734
published medium CVSS 3.1 · 5.5asteval sandbox escape: arbitrary native memory read/write via numpy ctypes in default asteval Interpreter
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| lmfit | — | asteval< 1.0.9 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lmfit | asteval | < 1.0.9 (affected) | GitHub_M · cna |
Weaknesses
3- 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
References
4Provider assertions
2GitHub_M · cna
asteval sandbox escape: arbitrary native memory read/write via numpy ctypes in default asteval Interpreter
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8f162bf6b030aa8b4062bd5e04a583dfcf8043305928e46b3965600016ff13c8
- Ingested
- 13 Oct 2026, 20:47:20 UTC
- Source record
- Official CVE record