Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. asteval
  4. ›
  5. GHSA-9w56-46f6-3qhx

GHSA-9w56-46f6-3qhx: asteval Sandbox Escape: arbitrary native memory read/write via numpy ctypes in default asteval Interpreter

August 20, 2026

With its default configuration (numpy enabled, import disabled), asteval’s Interpreter lets an attacker-controlled expression obtain a raw arbitrary process-memory read and write primitive, without using import, any __dunder__ attribute, or eval/exec/getattr. 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.

References

  • github.com/advisories/GHSA-9w56-46f6-3qhx
  • github.com/lmfit/asteval/commit/a3e56e7f8ed567a4817684d94213b290359077b4
  • github.com/lmfit/asteval/pull/153
  • github.com/lmfit/asteval/releases/tag/1.0.9
  • github.com/lmfit/asteval/security/advisories/GHSA-9w56-46f6-3qhx

Code Behaviors & Features

Detect and mitigate GHSA-9w56-46f6-3qhx with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.0.9

Fixed versions

  • 1.0.9

Solution

Upgrade to version 1.0.9 or above.

Impact 5.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-693: Protection Mechanism Failure
  • CWE-749: Exposed Dangerous Method or Function
  • CWE-913: Improper Control of Dynamically-Managed Code Resources

Source file

pypi/asteval/GHSA-9w56-46f6-3qhx.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 11 Sep 2026 00:17:00 +0000.