CVEfocus › CVE database › CVE-2026-102734

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

CVSS 5.5 MediumEPSS 0.2% (higher than 5% of CVEs)Published 2026-10-13Updated 2026-10-13Assigner: GitHub_M

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.

CWE-693CWE-749CWE-913

What to do

Fixed builds are available from PyPI: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fixed
5Fix pending
3Under investigation

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10python-astevalFix pendingUBUNTU-CVE-2026-102734
Ubuntu 26.04python-astevalUnder investigationUBUNTU-CVE-2026-102734
Ubuntu 24.04python-astevalUnder investigationUBUNTU-CVE-2026-102734
Ubuntu 22.04python-astevalUnder investigationUBUNTU-CVE-2026-102734
Ubuntu 20.04python-astevalFix pendingUBUNTU-CVE-2026-102734
Debian 14python-astevalFix pendingDEBIAN-CVE-2026-102734
Debian 13python-astevalFix pendingDEBIAN-CVE-2026-102734
Debian 12python-astevalFix pendingDEBIAN-CVE-2026-102734
PyPI libraryastevalFixed1.0.9GHSA-9w56-46f6-3qhx

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.