Vulnerability · CVE-2026-102734
asteval Sandbox Escape: arbitrary native memory read/write via numpy ctypes in default asteval Interpreter
Published Aug 20, 2026 · catalog updated Oct 14, 2026 · asteval Sandbox Escape: arbitrary
Check if you run it
No confirmed exploitation is on record for CVE-2026-102734. EPSS is 0.13%. Act only if a listed version of asteval Sandbox Escape: arbitrary is installed.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (asteval Sandbox Escape: arbitrary).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Medium5.5
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 0.13%
- Remediation
- Advisory link
- Affected products
- PyPI asteval
### Summary With its default configuration (numpy enabled, disabled), asteval's lets an attacker-controlled expression obtain a raw **arbitrary process-memory read and write** primitive, without using , any attribute, or / / . Arbitrary in-process read/write is equivalent to arbitrary code execution and is a complete escape of the sandbox whose entire purpose is "untrusted string in, no arbitrary execution out." Any application that feeds untrusted input to asteval with numpy installed (the default) is affected. ### Details asteval's attribute filter ( ) blocks every name and blocks objects whose attribute value is *identity-equal* to one of the modules in . The **module** entry was added recently (commit 9d9d430) and correctly blocks . However, the module check is identity-only against the ctypes *module*. It does not cover ctypes **type objects** and their metaclass methods, which are reachable through numpy's wrapper using only ordinary (non-dunder) attribute names: zeros(1, dtype=int32).ctypes.shape._type_ -> exposes (a ctypes array) whose element type is . None of , , is a dunder, none is in , and the returned value is a *type*, not the ctypes module, so permits all of them. On that ctypes type, the metaclass method is reachable (non-dunder, not in ; it is not even listed by , which is likely why it was missed): * **Arbitrary read:** reads 8 bytes at any address. (a permitted builtin) supplies arbitrary object addresses. * **Arbitrary write:** writes 8 bytes to any address. The write half rides asteval's **unfiltered ** in (the branch performs with no attribute-name check). Root cause is two gaps: 1. blocks the ctypes *module* but not ctypes *types* / metaclass methods ( , , , , ) reachable via . 2. performs attribute writes ( ) and deletes ( ) with no attribute-name filtering. This belongs to the known "numpy is a large attack surface" class (the docs already note read and write), but this specific arbitrary memory read/write chain is undocumented and bypasses
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- PyPI asteval0 → 1.0.9
How to fix CVE-2026-102734
Recommended remediation
A patch or advisory reference is linked. Open the original publisher for availability by product version.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
No confirmed exploitation is on record for CVE-2026-102734. EPSS is 0.13%. Act only if a listed version of asteval Sandbox Escape: arbitrary is installed.
Which versions are affected?
Compare what you have installed with 0 → 1.0.9. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
CWE-693: Protection Mechanism Failure; CWE-749; CWE-913: Improper Control of Dynamically-Managed Code Resources. EPSS 0.13%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Code
The project this record applies to. Exploit listings stay in References.
Timeline
Detection, updates, and resolution for this record.
Aug 20, 2026 · Catalog
Detected
### Summary With its default configuration (numpy enabled, disabled), asteval's lets an attacker-controlled expression obtain a raw **arbitrary process-memory read and write** primitive, without using , any attribute, or / / . Arbitrary in-process read/write is equivalent to arbitrary code execution and is a complete escape of the sandbox whose entire purpose is "untrusted string in, no arbitrary
Oct 14, 2026 · Catalog
Fix available
PyPI asteval 0 → 1.0.9
Oct 14, 2026 · GitHub Advisory Database
Fix available
asteval fixed in 1.0.9
Oct 14, 2026 · GitHub Advisory Database
Fix available
asteval fixed in 1.0.9
Oct 14, 2026 · Catalog
Updated
### Summary With its default configuration (numpy enabled, disabled), asteval's lets an attacker-controlled expression obtain a raw **arbitrary process-memory read and write** primitive, without using , any attribute, or / / . Arbitrary in-process read/write is equivalent to arbitrary code execution and is a complete escape of the sandbox whose entire purpose is "untrusted string in, no arbitrary
Sources
- CVE.orgVulnerability recordCVE-2026-102734
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2026-102734
30-day exploitation probability 0.1%
first.org - GitHub Advisory DatabasePackage advisoryGHSA-9w56-46f6-3qhx
GitHub Advisory Database record mirrored by OSV.
github.com - OpenSSF OSV / OSV ScannerPackage advisoryGHSA-9w56-46f6-3qhx
asteval Sandbox Escape: arbitrary native memory read/write via numpy ctypes in default asteval Interpreter
osv.dev
References
Freshness
Last verified in this catalog Oct 18, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.