Vulnerability · Published Oct 13, 2026 · Assigned by GitHub_M

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

Medium 5.5

In plain English

A medium-severity security flaw in asteval from lmfit. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.1%top 97.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12python-astevalno fix listedDEBIAN-CVE-2026-102734
Debian:13python-astevalno fix listedDEBIAN-CVE-2026-102734
Debian:14python-astevalno fix listedDEBIAN-CVE-2026-102734
PyPIasteval1.0.9GHSA-9w56-46f6-3qhx
Ubuntu:22.04:LTSpython-astevalno fix listedUBUNTU-CVE-2026-102734
Ubuntu:24.04:LTSpython-astevalno fix listedUBUNTU-CVE-2026-102734
Ubuntu:26.04:LTSpython-astevalno fix listedUBUNTU-CVE-2026-102734
Ubuntu:26.10python-astevalno fix listedUBUNTU-CVE-2026-102734

Affected products (as reported)

VendorProductVersions
lmfit asteval < 1.0.9

Weakness: CWE-693, CWE-749, CWE-913 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

References