asteval sandbox escape: arbitrary native memory read/write via numpy ctypes in default asteval Interpreter

Summary

CVECVE-2026-102734
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-13 16:17:09 UTC
Updated2026-10-16 20:04:29 UTC
Descriptionasteval 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


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary5.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
3.1CNADECLARED5.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Lmfit Asteval affected < 1.0.9 Not specified

References

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report