CVEfocus › CVE database › CVE-2026-55244

CVE-2026-55244ASTEVAL: Sandbox Escape via BaseException Subclasses

CVSS 5.0 MediumEPSS 0.2% (higher than 4% of CVEs)Published 2026-09-14Updated 2026-09-16Assigner: GitHub_M

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.

CWE-248

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-55244
Ubuntu 26.04python-astevalUnder investigationUBUNTU-CVE-2026-55244
Ubuntu 24.04python-astevalUnder investigationUBUNTU-CVE-2026-55244
Ubuntu 22.04python-astevalUnder investigationUBUNTU-CVE-2026-55244
Ubuntu 20.04python-astevalFix pendingUBUNTU-CVE-2026-55244
Debian 14python-astevalFix pendingDEBIAN-CVE-2026-55244
Debian 13python-astevalFix pendingDEBIAN-CVE-2026-55244
Debian 12python-astevalFix pendingDEBIAN-CVE-2026-55244
PyPI libraryastevalFixed1.0.9PYSEC-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.

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.