CVE-2026-55244ASTEVAL: Sandbox Escape via BaseException Subclasses
ASTEVAL is an evaluator of Python expressions and statements. Prior to 1.0.9, FROM_PY in asteval/astutils.py exposes BaseException, SystemExit, KeyboardInterrupt, and GeneratorExit to expressions evaluated by asteval.Interpreter.eval(), while run() and eval() in asteval/asteval.py catch Exception rather than these non-Exception BaseException subclasses. When an attacker-controlled expression raises one of these classes, on_raise() passes the class to raise_exception(), and the resulting exception bypasses the interpreter's safety handlers and propagates into the calling application. A consuming service that evaluates untrusted expressions can therefore be terminated or have signal and cleanup handling disrupted, causing denial of service. The separately documented read-only open() capability is not part of this vulnerability. This issue is fixed in version 1.0.9.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | python-asteval | Fix pending | UBUNTU-CVE-2026-55244 | |
| Ubuntu 26.04 | python-asteval | Under investigation | UBUNTU-CVE-2026-55244 | |
| Ubuntu 24.04 | python-asteval | Under investigation | UBUNTU-CVE-2026-55244 | |
| Ubuntu 22.04 | python-asteval | Under investigation | UBUNTU-CVE-2026-55244 | |
| Ubuntu 20.04 | python-asteval | Fix pending | UBUNTU-CVE-2026-55244 | |
| Debian 14 | python-asteval | Fix pending | DEBIAN-CVE-2026-55244 | |
| Debian 13 | python-asteval | Fix pending | DEBIAN-CVE-2026-55244 | |
| Debian 12 | python-asteval | Fix pending | DEBIAN-CVE-2026-55244 | |
| PyPI library | asteval | Fixed | 1.0.9 | PYSEC-2026-3807 |
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.
- lmfit asteval: affected: < 1.0.9
References
- https://github.com/lmfit/asteval/security/advisories/GHSA-89v8-rhwq-hf77
- https://github.com/lmfit/asteval/pull/153
- https://github.com/lmfit/asteval/commit/9c625b3674f8d05f206708bb85afca17a87694a4
- https://github.com/lmfit/asteval/commit/c49c99a67acb63eb7410231932250bd820380e45
- https://github.com/lmfit/asteval/releases/tag/1.0.9
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.